31
31
integrity ="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm "
32
32
crossorigin ="anonymous "
33
33
/>
34
+
35
+ < link rel ="stylesheet " href ="https://use.fontawesome.com/releases/v5.8.2/css/all.css ">
36
+ <!-- Google Fonts -->
37
+ < link rel ="stylesheet " href ="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap ">
38
+ <!-- Bootstrap core CSS -->
39
+ < link href ="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css " rel ="stylesheet ">
40
+ <!-- Material Design Bootstrap -->
41
+ < link href ="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.19.1/css/mdb.min.css " rel ="stylesheet ">
34
42
< link rel ="stylesheet " href ="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css " integrity ="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN " crossorigin ="anonymous ">
35
43
<!-- Font Awesome -->
36
44
< link rel ="stylesheet " href ="https://use.fontawesome.com/releases/v5.8.2/css/all.css ">
@@ -79,8 +87,8 @@ <h1 class="heading">Brain Teaser</h1>
79
87
</ div >
80
88
< div class ="hidden krr ">
81
89
<!--solve buttons-->
82
- Solve: < button type ="button " class ="js-solve-step-btn "> One Step</ butto > < button type ="button " class ="js-solve-all-btn "> All</ button >
83
- < br >
90
+ Solve: < button type ="button " class ="js-solve-step-btn "> One Step</ button > < button type ="button " class ="js-solve-all-btn "> All</ button >
91
+ < br / >
84
92
<!--clear board btn-->
85
93
< button type ="button " class ="js-clear-board-btn "> Clear Board</ button >
86
94
@@ -153,6 +161,7 @@ <h2>Enter Username</h2>
153
161
< button class ="ask-room-submit " type ="submit "> Submit</ button >
154
162
</ form >
155
163
< div class ="after_room ">
164
+ < div class ="roomIDFill "> </ div >
156
165
< div class ="video-grid "> </ div >
157
166
158
167
</ div >
@@ -168,99 +177,92 @@ <h2>Enter Username</h2>
168
177
</ p >
169
178
</ footer >
170
179
</ div >
171
- <!-- The core Firebase JS SDK is always required and must be listed first -->
172
- < script src ="https://www.gstatic.com/firebasejs/7.21.1/firebase-app.js "> </ script >
173
- < script src ="https://www.gstatic.com/firebasejs/7.21.1/firebase-auth.js "> </ script >
174
- < script src ="https://www.gstatic.com/firebasejs/8.0.1/firebase-analytics.js "> </ script >
180
+ <!-- The core Firebase JS SDK is always required and must be listed first -->
181
+ < script src ="https://www.gstatic.com/firebasejs/7.21.1/firebase-app.js "> </ script >
182
+ < script src ="https://www.gstatic.com/firebasejs/7.21.1/firebase-auth.js "> </ script >
183
+ < script src ="https://www.gstatic.com/firebasejs/8.0.1/firebase-analytics.js "> </ script >
175
184
176
- < script src ="https://www.gstatic.com/firebasejs/7.21.1/firebase-database.js "> </ script >
177
- < script src ="https://www.gstatic.com/firebasejs/7.21.1/firebase-firestore.js "> </ script >
178
- <!-- TODO: Add SDKs for Firebase products that you want to use
179
- https://firebase.google.com/docs/web/setup#available-libraries -->
185
+ < script src ="https://www.gstatic.com/firebasejs/7.21.1/firebase-database.js "> </ script >
186
+ < script src ="https://www.gstatic.com/firebasejs/7.21.1/firebase-firestore.js "> </ script >
187
+ <!-- TODO: Add SDKs for Firebase products that you want to use
188
+ https://firebase.google.com/docs/web/setup#available-libraries -->
180
189
181
- < script >
182
- // Your web app's Firebase configuration
183
- // For Firebase JS SDK v7.20.0 and later, measurementId is optional
184
- var firebaseConfig = {
185
- apiKey : "AIzaSyDqFVL5he87qI8hg20ngdkls9jTRXCIX7M" ,
186
- authDomain : "brain-teaser-77a8d.firebaseapp.com" ,
187
- databaseURL : "https://brain-teaser-77a8d.firebaseio.com" ,
188
- projectId : "brain-teaser-77a8d" ,
189
- storageBucket : "brain-teaser-77a8d.appspot.com" ,
190
- messagingSenderId : "367467694538" ,
191
- appId : "1:367467694538:web:e6acd6456f7e0cdb372733" ,
192
- measurementId : "G-1HBCV05JGG"
193
- } ;
194
- // Initialize Firebase
195
- firebase . initializeApp ( firebaseConfig ) ;
196
- firebase . analytics ( ) ;
197
- </ script >
198
- < script src ="js/auth.js "> </ script >
199
- < script >
200
- var $candidateToggle = $ ( ".js-candidate-toggle" ) ,
201
- $generateBoardBtnEasy = $ ( ".js-generate-board-btn--easy" ) ,
202
- $generateBoardBtnMedium = $ ( ".js-generate-board-btn--medium" ) ,
203
- $generateBoardBtnHard = $ ( ".js-generate-board-btn--hard" ) ,
204
- $generateBoardBtnVeryHard = $ ( ".js-generate-board-btn--very-hard" ) ,
190
+ < script >
191
+ // Your web app's Firebase configuration
192
+ // For Firebase JS SDK v7.20.0 and later, measurementId is optional
193
+ var firebaseConfig = {
194
+ apiKey : "AIzaSyDqFVL5he87qI8hg20ngdkls9jTRXCIX7M" ,
195
+ authDomain : "brain-teaser-77a8d.firebaseapp.com" ,
196
+ databaseURL : "https://brain-teaser-77a8d.firebaseio.com" ,
197
+ projectId : "brain-teaser-77a8d" ,
198
+ storageBucket : "brain-teaser-77a8d.appspot.com" ,
199
+ messagingSenderId : "367467694538" ,
200
+ appId : "1:367467694538:web:e6acd6456f7e0cdb372733" ,
201
+ measurementId : "G-1HBCV05JGG"
202
+ } ;
203
+ // Initialize Firebase
204
+ firebase . initializeApp ( firebaseConfig ) ;
205
+ firebase . analytics ( ) ;
206
+ </ script >
207
+ < script src ="js/script.js "> </ script >
208
+ < script defer src ="js/auth.js "> </ script >
209
+ < script >
210
+ var $candidateToggle = $ ( ".js-candidate-toggle" ) ,
211
+ $generateBoardBtnEasy = $ ( ".js-generate-board-btn--easy" ) ,
212
+ $generateBoardBtnMedium = $ ( ".js-generate-board-btn--medium" ) ,
213
+ $generateBoardBtnHard = $ ( ".js-generate-board-btn--hard" ) ,
214
+ $generateBoardBtnVeryHard = $ ( ".js-generate-board-btn--very-hard" ) ,
205
215
206
- $solveStepBtn = $ ( ".js-solve-step-btn" ) ,
207
- $solveAllBtn = $ ( ".js-solve-all-btn" ) ,
208
- $clearBoardBtn = $ ( ".js-clear-board-btn" ) ,
216
+ $solveStepBtn = $ ( ".js-solve-step-btn" ) ,
217
+ $solveAllBtn = $ ( ".js-solve-all-btn" ) ,
218
+ $clearBoardBtn = $ ( ".js-clear-board-btn" ) ,
209
219
210
- mySudokuJS = $ ( "#sudoku" ) . sudokuJS ( {
211
- difficulty : "very hard"
212
- //change state of our candidate showing checkbox on change in sudokuJS
213
- , candidateShowToggleFn : function ( showing ) {
214
- $candidateToggle . prop ( "checked" , showing ) ;
215
- }
216
- } ) ;
217
- mySudokuJS2 = $ ( "#sudoku2" ) . sudokuJS ( {
218
- difficulty : "very hard"
219
- //change state of our candidate showing checkbox on change in sudokuJS
220
- , candidateShowToggleFn : function ( showing ) {
221
- $candidateToggle . prop ( "checked" , showing ) ;
222
- }
223
- } ) ;
224
- mySudokuJS2 . generateBoard ( "medium" ) ;
220
+ mySudokuJS = $ ( "#sudoku" ) . sudokuJS ( {
221
+ difficulty : "very hard"
222
+ //change state of our candidate showing checkbox on change in sudokuJS
223
+ , candidateShowToggleFn : function ( showing ) {
224
+ $candidateToggle . prop ( "checked" , showing ) ;
225
+ }
226
+ } ) ;
227
+ mySudokuJS2 = $ ( "#sudoku2" ) . sudokuJS ( {
228
+ difficulty : "very hard"
229
+ //change state of our candidate showing checkbox on change in sudokuJS
230
+ , candidateShowToggleFn : function ( showing ) {
231
+ $candidateToggle . prop ( "checked" , showing ) ;
232
+ }
233
+ } ) ;
234
+ mySudokuJS2 . generateBoard ( "medium" ) ;
225
235
226
- $solveStepBtn . on ( "click" , mySudokuJS . solveStep ) ;
227
- $solveAllBtn . on ( "click" , mySudokuJS . solveAll ) ;
228
- $clearBoardBtn . on ( "click" , mySudokuJS . clearBoard ) ;
236
+ $solveStepBtn . on ( "click" , mySudokuJS . solveStep ) ;
237
+ $solveAllBtn . on ( "click" , mySudokuJS . solveAll ) ;
238
+ $clearBoardBtn . on ( "click" , mySudokuJS . clearBoard ) ;
229
239
230
- $generateBoardBtnEasy . on ( "click" , function ( ) {
231
- mySudokuJS . generateBoard ( "easy" ) ;
232
- } ) ;
233
- $generateBoardBtnMedium . on ( "click" , function ( ) {
234
- mySudokuJS . generateBoard ( "medium" ) ;
235
- } ) ;
236
- $generateBoardBtnHard . on ( "click" , function ( ) {
237
- mySudokuJS . generateBoard ( "hard" ) ;
238
- } ) ;
239
- $generateBoardBtnVeryHard . on ( "click" , function ( ) {
240
- mySudokuJS . generateBoard ( "very hard" ) ;
241
- } ) ;
240
+ $generateBoardBtnEasy . on ( "click" , function ( ) {
241
+ mySudokuJS . generateBoard ( "easy" ) ;
242
+ } ) ;
243
+ $generateBoardBtnMedium . on ( "click" , function ( ) {
244
+ mySudokuJS . generateBoard ( "medium" ) ;
245
+ } ) ;
246
+ $generateBoardBtnHard . on ( "click" , function ( ) {
247
+ mySudokuJS . generateBoard ( "hard" ) ;
248
+ } ) ;
249
+ $generateBoardBtnVeryHard . on ( "click" , function ( ) {
250
+ mySudokuJS . generateBoard ( "very hard" ) ;
251
+ } ) ;
242
252
243
- $candidateToggle . on ( "change" , function ( ) {
244
- if ( $candidateToggle . is ( ":checked" ) )
245
- mySudokuJS . showCandidates ( ) ;
246
- else
247
- mySudokuJS . hideCandidates ( ) ;
248
- } ) ;
249
- $candidateToggle . trigger ( "change" ) ;
250
- </ script >
253
+ $candidateToggle . on ( "change" , function ( ) {
254
+ if ( $candidateToggle . is ( ":checked" ) )
255
+ mySudokuJS . showCandidates ( ) ;
256
+ else
257
+ mySudokuJS . hideCandidates ( ) ;
258
+ } ) ;
259
+ $candidateToggle . trigger ( "change" ) ;
260
+ </ script >
251
261
252
262
<!-- Font Awesome -->
253
-
254
- < link rel ="stylesheet " href ="https://use.fontawesome.com/releases/v5.8.2/css/all.css ">
255
- <!-- Google Fonts -->
256
- < link rel ="stylesheet " href ="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap ">
257
- <!-- Bootstrap core CSS -->
258
- < link href ="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/css/bootstrap.min.css " rel ="stylesheet ">
259
- <!-- Material Design Bootstrap -->
260
- < link href ="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.19.1/css/mdb.min.css " rel ="stylesheet ">
263
+
261
264
262
265
263
- < script src ="js/script.js "> </ script >
264
266
</ body >
265
267
266
268
</ html>
0 commit comments