77 < link rel ="stylesheet " href ="//fonts.googleapis.com/icon?family=Material+Icons ">
88 < link rel ="stylesheet " href ="//fonts.googleapis.com/css?family=Roboto:300,400,500 ">
99 < link rel ="stylesheet " href ="//cdnjs.cloudflare.com/ajax/libs/noty/3.1.4/noty.min.css "/>
10+ < link rel ="stylesheet " href ="//cdnjs.cloudflare.com/ajax/libs/tooltipster/3.3.0/css/tooltipster.min.css "/>
11+ < link rel ="stylesheet "
12+ href ="//cdnjs.cloudflare.com/ajax/libs/tooltipster/3.3.0/css/themes/tooltipster-light.min.css "/>
1013 < link rel ="stylesheet " href ="/css/pyx-reloaded.css ">
1114 < link rel ="stylesheet " href ="/css/cards.css ">
1215 < link rel ="stylesheet " href ="/css/game.css ">
@@ -54,6 +57,14 @@ <h3 class="mdc-typography mdc-typography--title">Chat</h3>
5457 </ div >
5558 </ section >
5659
60+ < section class ="mdc-toolbar__section mdc-toolbar__section--shrink-to-fit ">
61+ < nav id ="tabs " class ="mdc-tab-bar ">
62+ < a class ="mdc-tab mdc-tab--active "> Game</ a >
63+ < a class ="mdc-tab "> Other stuff</ a >
64+ < span class ="mdc-tab-bar__indicator "> </ span >
65+ </ nav >
66+ </ section >
67+
5768 < section class ="mdc-toolbar__section mdc-toolbar__section--align-end ">
5869 < button class ="material-icons align-icons mdc-toolbar__icon " style ="display: none; " id ="startGame ">
5970 done
@@ -65,9 +76,34 @@ <h3 class="mdc-typography mdc-typography--title">Chat</h3>
6576 </ header >
6677
6778 < main class ="mdc-toolbar-fixed-adjust " style ="display: flex; flex-flow: row ">
68- < div id ="blackCard "> </ div >
69- < div id ="whiteCards ">
70- < div class ="list "> </ div >
79+ < div id ="gameLayout " style ="display: none ">
80+ < h1 class ="message mdc-typography--display1 "> Game hasn't started yet.</ h1 >
81+ < div id ="blackCard "> </ div >
82+ < div id ="whiteCards ">
83+ < div class ="list "> </ div >
84+ </ div >
85+ </ div >
86+ < div id ="otherStuffLayout " class ="mdc-layout-grid " style ="display: none ">
87+ < div class ="mdc-layout-grid__inner ">
88+ < div id ="spectatorsList " class ="mdc-card mdc-layout-grid__cell ">
89+ < div class ="mdc-card__primary ">
90+ < h1 class ="mdc-card__title mdc-typography--title "> Spectators</ h1 >
91+ </ div >
92+ < section class ="mdc-card__supporting-text ">
93+ < ul class ="mdc-list list mdc-list--non-interactive "> </ ul >
94+ < h1 class ="message mdc-typography--headline "> No spectators.</ h1 >
95+ </ section >
96+ </ div >
97+ < div id ="suggestedGameOptions " class ="mdc-card mdc-layout-grid__cell ">
98+ < div class ="mdc-card__primary ">
99+ < h1 class ="mdc-card__title mdc-typography--title "> Suggested game options modifications</ h1 >
100+ </ div >
101+ < section class ="mdc-card__supporting-text ">
102+ < ul class ="mdc-list list mdc-list--non-interactive "> </ ul >
103+ < h1 class ="message mdc-typography--headline "> No suggested game options.</ h1 >
104+ </ section >
105+ </ div >
106+ </ div >
71107 </ div >
72108 </ main >
73109</ div >
@@ -117,27 +153,54 @@ <h4 class="mdc-typography--subheading1">Draw <span class="_draw"></span></h4>
117153 </ h4 >
118154 </ section >
119155 </ div >
156+
157+ < li id ="spectatorTemplate " class ="mdc-list-item ">
158+ < span class ="_name "> </ span >
159+ </ li >
160+
161+ < li id ="suggestedGameOptionsTemplate " class ="mdc-list-item ">
162+ < span class ="material-icons _info " style ="margin-right: 8px "> info</ span >
163+ < span class ="_suggester " style ="flex-grow: 1 "> {{Suggester}}</ span >
164+ < button class ="mdc-button _accept "> Accept</ button >
165+ < button class ="mdc-button _decline "> Decline</ button >
166+ </ li >
167+
168+ < div id ="gameOptionsDiffTooltipTemplate ">
169+ < h1 class ="_goal mdc-typography--body1 "> </ h1 >
170+ < h1 class ="_playersLimit mdc-typography--body1 "> </ h1 >
171+ < h1 class ="_spectatorsLimit mdc-typography--body1 "> </ h1 >
172+ < h1 class ="_blanksLimit mdc-typography--body1 "> </ h1 >
173+ < h1 class ="_timeMultiplier mdc-typography--body1 "> </ h1 >
174+ < h1 class ="_winBy mdc-typography--body1 "> </ h1 >
175+ < h1 class ="_password mdc-typography--body1 "> </ h1 >
176+ < h1 class ="_decks mdc-typography--body1 "> </ h1 >
177+ </ div >
120178</ div >
121179
122180< script src ="//code.jquery.com/jquery-latest.min.js "> </ script >
123181< script src ="//unpkg.com/material-components-web@0.30.0/dist/material-components-web.min.js "> </ script >
124182< script src ="//cdnjs.cloudflare.com/ajax/libs/list.js/1.5.0/list.min.js "> </ script >
125183< script src ="//unpkg.com/masonry-layout@4/dist/masonry.pkgd.min.js "> </ script >
126184< script src ="//cdnjs.cloudflare.com/ajax/libs/noty/3.1.4/noty.min.js "> </ script >
185+ < script src ="//cdnjs.cloudflare.com/ajax/libs/tooltipster/3.3.0/js/jquery.tooltipster.min.js "> </ script >
127186< script src ="/js/utils.js "> </ script >
128187< script src ="/js/bottom_sheet.js "> </ script >
188+ < script src ="/js/tabs.helper.js "> </ script >
129189< script src ="/js/cardcast.helper.js "> </ script >
130190< script src ="/js/notifs.helper.js "> </ script >
131191< script src ="/js/events.helper.js "> </ script >
132192< script src ="/game_options/dialog.js "> </ script >
133193< script src ="/js/game.js "> </ script >
194+ < script src ="/js/game.other_stuff.js "> </ script >
134195< script >
135196 window . mdc . autoInit ( ) ;
197+ TabsManager . init ( "tabs" , [ "gameLayout" , "otherStuffLayout" ] ) ;
198+
136199 const gameManager = new GameManager ( getLastPathSegment ( ) ) ;
137200 if ( gameManager . id === null ) {
138201 window . location = "/games/" ;
139202 } else {
140- setupGameOptionsDialog ( $ ( '#gameOptions' ) , "Game options" , false , "Apply " , ( go ) => {
203+ setupGameOptionsDialog ( $ ( '#gameOptions' ) , "Game options" , false , "?? " , ( go ) => {
141204 gameManager . changeGameOptions ( go ) ;
142205 } , ( gameOptionsDialog ) => {
143206 loadUI ( gameManager , gameOptionsDialog ) ;
0 commit comments