1<!DOCTYPE html> 2<html> 3 4 5 6<head> 7 <meta name="viewport" content="width=device-width, initial-scale=1"> 8 <link rel="stylesheet" media="all" href="/assets/navbar-ed7689c841a6d32df4faa3db68f71e0cc8359bb6f2e1b481bcb34f411e5c8c93.css" data-turbolinks-track="reload" /> 9 <link rel="stylesheet" media="all" href="/assets/front_page-435bc0d308e6302eef80069876c87013e92375a61f8519b334225d6a43345f97.css" data-turbolinks-track="reload" /> 10 11 12 <!--Base EditorJS Tool--> 13
13<script src="/assets/editor-d274272ad57d497def1981cbc1eb5b3b53555e985cce8193980423b29af9ed07.js" data-turbolinks-track="true"></script>
13 14 15 <!--EditorJs Alert Tool--> 16
16<script src="https://cdn.jsdelivr.net/npm/editorjs-alert@latest"></script>
16 17 18 <!--Code Tool--> 19
19<script src="https://cdn.jsdelivr.net/npm/@editorjs/code@latest"></script>
19 20 21 <!--Header Tool--> 22
22<script src="https://cdn.jsdelivr.net/npm/@editorjs/header@latest"></script>
22 23 24 <!--List--> 25
25<script src="https://cdn.jsdelivr.net/npm/@editorjs/list@latest"></script>
25 26 27 <!--Link--> 28
28<script src="https://cdn.jsdelivr.net/npm/@editorjs/link@latest"></script>
28 29 30 <!--Table (src needed, no cdn deliver)--> 31
31<script src="/assets/table-33c78447914679cf14c9fd8e2261222598adf011300f78f362f21f0ec364d5eb.js" data-turbolinks-track="true"></script>
31 32 33 <!--Font size (src needed, no cdn deliver)--> 34 <!--https://github.com/arwazjamal/editorjs-inline-font-size--> 35
35<script src="/assets/fontsize-baacdd138cbcdf8e27cd6983bc72fe3a928f60575c4411b86c7e37906ab33a96.js" data-turbolinks-track="true"></script>
35 36 37 <!--Image editor tool, custom src file I edited to supress ruby on rails upload error I can't solve--> 38
38<script src="/assets/image-99758355b418f115b7855ed600f121035b33af947c9cc227c2105b0761510b65.js" data-turbolinks-track="true"></script>
38 39 40 <!--Embed Tool--> 41
41<script src="https://cdn.jsdelivr.net/npm/@editorjs/embed@latest"></script>
41 42 43 <!--Simple image tool--> 44
44<script src="https://cdn.jsdelivr.net/npm/@editorjs/simple-image@latest"></script>
44 45 46 47 48 <link href='https://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet'> 49
49<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
49 50 <link rel="stylesheet" type="text/css" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"> 51 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> 52
52<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.6/umd/popper.min.js"></script>
52 53 <link href='https://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet'> 54 <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> 55 <link href='https://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet'> 56 57 <title>John Philip Sousa Foundation</title> 58 <meta name="csrf-param" content="authenticity_token" /> 59<meta name="csrf-token" content="UjU9iwHr7tuSMTe/L9dVnMKczlrzkkeBYdz38IpFKs7tBfQSOx9cBHWSLbE34mFkALAgWWKE+92mGcQ+elqqrQ==" /> 60 61 <link href="https://fonts.googleapis.com/css?family+Work+Sans: 600"> 62 <link rel="stylesheet" media="all" href="/assets/application-9e22e787a25eb918c03c4945b575039bc0ce3790dcae22c5db008a754fe3bfdd.css" data-turbolinks-track="reload" /> 63 <link rel="stylesheet" media="all" href="/assets/navbar-ed7689c841a6d32df4faa3db68f71e0cc8359bb6f2e1b481bcb34f411e5c8c93.css" data-turbolinks-track="reload" /> 64
64<script src="/packs/js/application-81e5b2e3e7eaeaf896af.js" data-turbolinks-track="reload"></script>
64 65 <link rel="shortcut icon" type="image/x-icon" href="/assets/favicon-bf70354965f6745159e52abbad2296eb16e3e918d23ac4d9d7cf7a1a97b6e963.ico" /> 66 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> 67
67<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.6/umd/popper.min.js"></script>
67 68
68<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
68 69</head> 70 71 72 73<header data-turbolinks="false"style="background-color:black;"> 74 <nav id="navbar" style="margin-top:-1.0vw;height: auto;"> 75 <ul id="navbarlist"style="margin-top:0.3vw"> 76 <!--************************************************************** 77 *******************BEGIN NAVBAR SECTION*************************** 78 **************************************************************--> 79 <li> 80 <a data-turbolinks='false' id="homeLink" href="/">Home</a> 81 </li> 82 <li class="dropdown" id="aboutDropDown"> 83 <a class="dropdown-toggle" data-toggle="dropdown">The Foundation 84 <span class="caret"> 85 </span> 86 </a> 87 <ul class="dropdown-menu" > 88 <li> 89 <a data-turbolinks='false' id="aboutSousaLink" href="/#about_1">About Sousa</a> 90 </li> 91 <li> 92 <a data-turbolinks='false' href="/#about_2">About the Foundation</a> 93 </li> 94 <li id="contactLink"> 95 <a data-turbolinks='false' href="/#contact">Contact</a> 96 </li> 97 <li> 98 <a data-toggle="modal" data-target="#exampleModalCenter"id="modalButton"> 99 Statement of Solidarity 100 </a> 101 </li> 102 </ul> 103 </li> 104 105 <li> 106 <form style="display: block; margin: 0 auto;" target="_blank" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"> 107 <input type="hidden" name="cmd" value="_s-xclick" /> 108 <input type="hidden" name="hosted_button_id" value="8R5E6VESU8US8" /> 109 <input style="vertical-align: middle !important;"type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" /> 110 <img alt="Donate Button" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" /> 111 </form> 112 </li> 113 <li id="signin"> 114 <a> 115 <a href="/users/sign_in">Sign in</a> 116 <span class="glyphicon glyphicon-log-in white"></span> 117 </a> 118 </li> 119 120 </ul> 121</nav> 122 123</header> 124 125 126
126<script> 127 function escapeHtml(unsafe) { 128 return unsafe 129 .replace(/&/g, "&") 130 .replace(/</g, "<") 131 .replace(/>/g, ">") 132 .replace(/"/g, """) 133 .replace(/'/g, "'"); 134 } 135 136 function insertAfter(newNode, referenceNode) { 137 referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling); 138 } 139 140 function createElementFromHTML(htmlString) { 141 var div = document.createElement('div'); 142 div.innerHTML = htmlString.trim(); 143 144 // Change this to div.childNodes to support multiple top-level nodes 145 return div.firstChild; 146 } 147 148 function set_navbar_data() 149 { 150 var json_menus = { 151 "The Sudler Projects" : [ 1, 152 [18, 153 "The Sudler Flag of Honor", 154 "false", 155 "false", 156 "", 157 "", 158 ], 159 [5, 160 "The Sousa Foundation Sudler Cup", 161 "false", 162 "false", 163 "sudlercupapp.pdf", 164 "Sudler Cup App/pdf", 165 ], 166 [3, 167 "The Sousa Foundation Sudler Silver Scroll", 168 "false", 169 "false", 170 "", 171 "", 172 ], 173 [2, 174 "The Sousa Foundation Sudler Shield", 175 "false", 176 "false", 177 "", 178 "", 179 ], 180 [1, 181 "The Sousa Foundation Sudler Trophy", 182 "false", 183 "false", 184 "", 185 "http://www.sousafoundation.net/", 186 ], 187 [4, 188 "Historic Roll of Honor", 189 "false", 190 "false", 191 "", 192 "", 193 ], 194 [16, 195 "Legion of Honor", 196 "false", 197 "false", 198 "", 199 "", 200 ], 201 ], 202 "Other Projects" : [ 4, 203 [11, 204 "National Young Artists", 205 "false", 206 "true", 207 "2020 November Update 1.pdf", 208 "https://www.sousanhsband.com/national-young-artists-solo-competition", 209 ], 210 [12, 211 "Hawkins Scholarship", 212 "false", 213 "false", 214 "002023thejohnphilipsousafoundationscholarshipaward.pdf", 215 "", 216 ], 217 [15, 218 "Photo Gallery", 219 "false", 220 "true", 221 "", 222 "http://bandworld.org/html/John_Philip_Sousa_Foundation/John%20Philip%20Sousa%20Foundation%202018/album/index.html", 223 ], 224 [13, 225 "The Historical Marker", 226 "false", 227 "false", 228 "", 229 "", 230 ], 231 [14, 232 "Sousa Statue", 233 "false", 234 "false", 235 "", 236 "", 237 ], 238 ], 239 "Honors Bands and Tours" : [ 3, 240 [44, 241 "Kansas John Philip Sousa Honor Band", 242 "true", 243 "false", 244 "kansashonorband2025.pdf", 245 "", 246 ], 247 [9, 248 "National Community Band", 249 "false", 250 "false", 251 "binder1.pdf", 252 "", 253 ], 254 [10, 255 "Junior Honor Band Project", 256 "false", 257 "false", 258 "Pictures.jpg", 259 "", 260 ], 261 [8, 262 "National High School Honor Band", 263 "false", 264 "true", 265 "", 266 "https://www.sousanhsband.com/", 267 ], 268 ], 269 " Awards" : [ 2, 270 [31, 271 "Sousa-ABA-Ostwald Composition Contest", 272 "true", 273 "false", 274 "2026saorulesandregulations.pdf", 275 "http://www.americanbandmasters.org/sousa-aba-ostwald-composition-contest/", 276 ], 277 [41, 278 "Al & Gladys Wright Band Lifetime Achievement Award", 279 "false", 280 "false", 281 "", 282 "", 283 ], 284 [17, 285 "The Howard Citation", 286 "true", 287 "false", 288 "howardcitation1.pdf", 289 "", 290 ], 291 ], 292 } 293 console.log(json_menus) 294 return json_menus; 295 }; 296 297 function set_signed_out_navbar(json_menus) 298 { 299 300 var parent_list = document.getElementById("navbarlist"); 301 while(parent_list.children.length > 4) 302 { 303 parent_list.children[2].innerHTML = ''; 304 parent_list.removeChild(parent_list.children[2]); 305 } 306 var more_dropdown_list = document.createElement("li"); 307 more_dropdown_list.id = "moreDropDown"; 308 more_dropdown_list.style.marginTop="-2vw"; 309 more_dropdown_list.className = "dropdown"; 310 311 var more_a_tag = document.createElement("a"); 312 more_a_tag.dataToggle="dropdown"; 313 more_a_tag.className = "dropdown-toggle"; 314 more_a_tag.id="more_dropdown_toggle"; 315 more_a_tag.innerHTML = "MORE"; 316 317 var more_span = document.createElement("span"); 318 more_span.className = "caret"; 319 320 more_a_tag.appendChild(more_span); 321 322 323 var more_dropdown_menu = document.createElement("ul"); 324 more_dropdown_menu.className = "dropdown-menu"; 325 326 more_dropdown_list.appendChild(more_a_tag); 327 insertAfter(more_dropdown_list, parent_list.children[parent_list.children.length-3]); 328 329 for (var menu_title in json_menus) { 330 331 in_more = false;
332 var dropdown_list = document.createElement("li"); 333 dropdown_list.className = "dropdown"; 334 dropdown_list.id = "navItem" + json_menus[menu_title][0]; 335 dropdown_list.style.marginTop="-2vw"; 336 337 var a_tag = document.createElement("a"); 338 a_tag.dataToggle="dropdown"; 339 a_tag.className = "dropdown-toggle"; 340 a_tag.id="dropdown_toggle" + json_menus[menu_title][0]; 341 a_tag.innerHTML = menu_title; 342 343 var span = document.createElement("span"); 344 span.className = "caret"; 345 346 a_tag.appendChild(span); 347 348 dropdown_list.appendChild(a_tag); 349 350 if(parent_list.scrollWidth < window.innerWidth - screen.width/8) 351 { 352 insertAfter(dropdown_list, parent_list.children[parent_list.children.length-4]); 353 } 354 else 355 { 356 in_more = true; 357 more_dropdown_menu.appendChild(dropdown_list); 358 } 359 var child_list = document.createElement("ul"); 360 child_list.className = "dropdown-menu" 361 child_list.id = "dropdownList" + json_menus[menu_title][0]; 362 child_list.style.position = "absolute"; 363 child_list.style.left = "-3vw"; 364 if (json_menus.hasOwnProperty(menu_title)) { 365 for(var i = 1; i < json_menus[menu_title].length;++i){ 366 child_list_elem = document.createElement("li"); 367 child_list_elem.id = "childListElem" + json_menus[menu_title][i][0]; 368 child_a_tag = document.createElement("a"); 369 child_a_tag.dataTurbolinks="false"; 370 child_a_tag.style.display="inline-block"; 371 result = null 372 if(json_menus[menu_title][i][6]) 373 { 374 result = json_menus[menu_title][i][6][0].map(x => Number.parseInt(x, 10)); 375 } 376 if(result == null || (!(result.includes(json_menus[menu_title][i][0]) || result.includes(-1)))) 377 { 378 379 if(json_menus[menu_title][i][2] == "true") //is_pdf 380 { 381 child_a_tag.href="https://sousafoundation.net/"+json_menus[menu_title][i][4]; 382 child_a_tag.setAttribute('target', '_blank'); 383 } 384 else if(json_menus[menu_title][i][3] == "true") //is_link 385 { 386 child_a_tag.href = json_menus[menu_title][i][5]; 387 child_a_tag.setAttribute('target', '_blank'); 388 } 389 else 390 { 391 child_a_tag.href="/sub_menu_items/" + json_menus[menu_title][i][0]; 392 } 393 } 394 else 395 { 396 child_a_tag.href="/sub_menu_items/" + json_menus[menu_title][i][0]; 397 } 398 child_a_tag.innerHTML = json_menus[menu_title][i][1]; 399 400 child_list_elem.appendChild(child_a_tag); 401 child_list.appendChild(child_list_elem); 402 } 403 } 404 if(in_more) 405 { 406 child_list.style.left = "10vw"; 407 child_list.style.top = "0%"; 408 } 409 dropdown_list.appendChild(child_list); 410 } 411 if(more_dropdown_menu.children.length > 0) 412 { 413 more_dropdown_list.appendChild(more_dropdown_menu); 414 } 415 else 416 { 417 parent_list.removeChild(more_dropdown_list); 418 } 419 420 count = window.innerWidth > 500 ? window.innerWidth / 86.4 : window.innerWidth /200; 421 var css = 'nav li { display: inline-block; margin-left:'+count.toString()+'px !important; margin-right: '+count.toString()+'px !important; padding-bottom: 2vw; padding-top: 3vw!important; position: relative; }' 422 --count; 423 head = document.head || document.getElementsByTagName('head')[0], 424 style = document.createElement('style'); 425 426 head.appendChild(style); 427 428 style.type = 'text/css'; 429 if (style.styleSheet){ 430 // This is required for IE8 and below. 431 style.styleSheet.cssText = css; 432 } else { 433 style.appendChild(document.createTextNode(css)); 434 } 435 } 436 437 438 439 440 function set_signed_in_navbar(json_menus) 441 { 442 443 for(let menu_title in json_menus) 444 { 445 ul_list = document.getElementById("dropdownList" + json_menus[menu_title][0]); 446 447 nav_item = document.getElementById("navItem" + json_menus[menu_title][0]); 448 del_div = createElementFromHTML(`<div id=menu_edit_del`+json_menus[menu_title][0]+`> 449 <button id="edit_menu_${json_menus[menu_title][0]}" style="padding: 0 0 0 0;;color:black;max-height:100px;float:left;margin-right:10px;" class="btn btn-warning">EDIT</button> 450 <a href="/menu_items/delete/`+json_menus[menu_title][0]+`" data-confirm="Are you sure?" data-method="get" class="btn btn-danger" style="display:inline-block;padding: 0 0 0 0;color:black;max-height:100px;float:left;">DELETE</a></div>`) 451 menu_arrow_div = createElementFromHTML(`<div style="display: inline-block"> 452 <a class="dropdown-toggle" style="background-color: black!important;"data-toggle="dropdown"id="dropdown_toggle`+json_menus[menu_title][0]+`"> 453 <button id="move_menu_left_${json_menus[menu_title][0]}" class="btn btn-outline" style="z-index:10;width:5px;height:30px;padding-right:15px;padding-left:0px; background-color: black!important;" onclick="move_menu_left(`+json_menus[menu_title][0]+`)"> 454 <svg width="1em" style="color:white" height="1em" viewBox="0 0 16 16" class="bi bi-arrow-left-circle" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> 455 <path fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/> 456 <path fill-rule="evenodd" d="M12 8a.5.5 0 0 1-.5.5H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708
456L5.707 7.5H11.5a.5.5 0 0 1 .5.5z"/> 457 </svg> 458 </button> 459 <button id="move_menu_right_${json_menus[menu_title][0]}" class="btn btn-outline" style="z-index:10;width:5px;height:30px;padding-left:0px; background-color: black!important;"onclick="move_menu_right(`+json_menus[menu_title][0]+`)"> 460 <svg width="1em" style="color:white" height="1em" viewBox="0 0 16 16" class="bi bi-arrow-right-circle" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> 461 <path fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/> 462 <path fill-rule="evenodd" d="M4 8a.5.5 0 0 0 .5.5h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5H4.5A.5.5 0 0 0 4 8z"/> 463 </svg> 464 </button> 465 `+menu_title+` 466 <span class="caret"> 467 </span> 468 469 </a> 470 471 </div>`) 472 del_div.addEventListener('click', function(){ 473 update_menu(menu_title,json_menus[menu_title][0]); 474 }); 475 nav_item.replaceChild(menu_arrow_div,nav_item.children[0]) 476 nav_item.insertBefore(del_div,nav_item.children[0]) 477 478 479 /*SECTION TO SET SUBMENU ARROWS*/ 480 for(let i = 0; i < ul_list.children.length; ++i) 481 { 482 li_elem = ul_list.children[i]; 483 l_button = createElementFromHTML(`<button id="move_sub_menu_left_${li_elem.id}"class="btn btn-outline" style="display:inline-block;z-index:10;width:5px;height:30px;padding-left:0px"onclick="move_sub_menu_left(`+li_elem.id.replace('childListElem','')+`)"> 484 <svg width="1em" style="width:100% !important" height="1em" viewBox="0 0 16 16" class="bi bi-arrow-left-circle" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> 485 <path fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/> 486 <path fill-rule="evenodd" d="M12 8a.5.5 0 0 1-.5.5H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5H11.5a.5.5 0 0 1 .5.5z"/> 487 </svg> 488 </button>`) 489 r_button = createElementFromHTML(`<button id="move_sub_menu_left_${li_elem.id}" class="btn btn-outline" style="display:inline-block;z-index:10;width:5px;height:30px;padding-left:5px;padding-right:12px;margin-right:5px;margin-left:5px"onclick="move_sub_menu_right(`+li_elem.id.replace('childListElem','')+`)"> 490 <svg width="1em" style="" height="1em" viewBox="0 0 16 16" class="bi bi-arrow-right-circle" fill="currentColor" xmlns="http://www.w3.org/2000/svg"> 491 <path fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/> 492 <path fill-rule="evenodd" d="M4 8a.5.5 0 0 0 .5.5h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5H4.5A.5.5 0 0 0 4 8z"/> 493 </svg> 494 </button>`) 495 del_edit = createElementFromHTML(`<div style="width: 100%;float:left"> 496 <button id="sub_edit${json_menus[menu_title][i+1][0]}"style="padding: 0 0 0 0;color:white;max-height:100px;float:left;margin-right:10px;display:inline-block" class="btn btn-warning">EDIT</button> 497 <a href="/sub_menu_items/delete/`+json_menus[menu_title][i+1][0]+`" data-confirm="Are you sure?" class="btn btn-danger" style="display:inline-block;padding: 0 0 0 0;color:black;max-height:100px;float:left;">DELETE</a> 498 </div>`) 499 del_edit.getElementsByTagName("button")[0].addEventListener('click', function(){ 500 update_submenu(json_menus[menu_title][i+1][1],json_menus[menu_title][i+1][0]); 501 }); 502 503 li_elem.insertBefore(r_button,li_elem.children[0]); 504 li_elem.insertBefore(l_button,li_elem.children[0]); 505 li_elem.insertBefore(del_edit,li_elem.children[0]); 506 } 507 add_submenu_button = createElementFromHTML(`<li id="subButtonLiElem`+json_menus[menu_title][0]+`"> 508 <button id="add_submenu_${json_menus[menu_title][0]}"onclick="add_submenu_input(`+json_menus[menu_title][0]+`)"style=" content: none;" class="btn btn-primary">+</button> 509 </li>`) 510 ul_list.appendChild(add_submenu_button) 511 } 512 add_button = createElementFromHTML(`<li id="buttonLiElem"> 513 <button id="add_menu" onclick="add_menu_input()"style=" content: none;" class="btn btn-primary">+</button> 514 </li>`) 515 iL = document.getElementById("infoList"); 516 iL.parentNode.insertBefore(add_button,iL); 517 518 519 520 521 } 522 523 524 $(window).resize(function(){ 525 json_menus = set_navbar_data(); 526 set_signed_out_navbar(json_menus); 527 }); 528 529 530 $( document ).ready(function() { 531 json_menus = set_navbar_data(); 532 533 set_signed_out_navbar(json_menus); 534 if((/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) )) 535 { 536 $('.dropdown > ul').css("margin","auto"); 537 $('.dropdown > ul').css("margin-left","auto"); 538 $('.dropdown > ul').css("position","fixed"); 539 $('.dropdown > ul').css("top","20vw"); 540 $('.dropdown > ul > .dropdown > ul').css("top","60vw"); 541 } 542 }) 543 544 </script>
544 545 546 547 548 549 <body> 550 <link rel="stylesheet" media="all" href="/assets/devise-5d5a1cf788c574c5e734198e27c1beb6d56fe6894e6c3dcd439c011b910499bc.css" data-turbolinks-track="reload" /> 551<br><br><br><br> 552<body class="login"style="background-color:rgb(238,245,250);width:100%;"> 553<h1 style=" width:50% !important; 554margin-left: auto !important; 555margin-right: auto !important; 556margin-top: 7vw !important; 557display:block !important; 558float:none !important; 559text-align: center; 560;color:white; text-shadow: 2px 2px 5px #000;">Welcome Back</h1><br> 561 562<form class="new_user" id="new_user" action="/users/sign_in" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="99HY37UN3G3QDli2yuyFZnKfaiDMjyWBtVBPzl5RVPdy+f1Kd0494oJ2iGiOFCVhIopPQtYW4k2ByvJbDlbEdg==" /> 563<div class="field ",style="width:800px;"> 564 <input autofocus="autofocus" autocomplete="email" class="elem" style="position: relative; 565 display: block;margin-left: auto; margin-right: auto;width:350px;" placeholder="Email" type="email" value="" name="user[email]" id="user_email" /> 566</div> 567<br> 568<div class="field"> 569 <input autocomplete="current-password" class="elem" style="position: relative; 570 display: block;margin-left: auto; margin-right: auto;width:350px;" placeholder="Password" type="password" name="user[password]" id="user_password" /> 571</div> 572 573<div class="actions"style="width:100;"> 574 <br> 575 <input type="submit" name="commit" value="Log in" id="login" class="elem btn btn-primary" style="position: relative; 576 display: block;margin-left: auto; margin-right: auto;width:350px;" data-disable-with="Log in" /> 577</div> 578</form> 579<p class="notice"></p> 580<p class="alert"></p> 581 582<div> 583 <link rel="stylesheet" media="all" href="/assets/devise-5d5a1cf788c574c5e734198e27c1beb6d56fe6894e6c3dcd439c011b910499bc.css" data-turbolinks-track="reload" /> 584 585 586 <br /> 587 588 <a class="elem" style="margin-left:45%;" href="/users/password/new">Forgot your password?</a><br /> 589 590 591 592 593</div> 594</body> 595 </body> 596 597
597<script> 598 599 function update_menu(title,id_to_edit) 600 { 601 navList = document.getElementById("navItem" + id_to_edit); 602 var navListHtml = navList.innerHTML; 603 var mySpan = document.createElement("a"); 604 mySpan.innerHTML = `<li id="navItem`+id_to_edit+`" class="dropdown" style="margin-top:-2vw;"> 605 <form action="/menu_items/update/`+id_to_edit+`" accept-charset="UTF-8" data-remote="true" method="post"><input type="hidden" name="_method" value="put"><input type="hidden" name="authenticity_token" value="R+DX9OX5NTLquGXOEzVEDScTM078oTJZcW0ma3yTcHT40B5t3w2H7Q0bf8ALAHD15T/dTW23jgW2qBWljIzwFw=="> 606 <input type="submit" onclick="reset_menu()"name="commit" value="SAVE" style="padding: 0 0 0 0;color:white;max-height:100px;max-width:40px;" class="btn btn-primary" data-disable-with="SAVE"> 607 <a class="dropdown-toggle" data-toggle="dropdown" id="dropdown_toggle1"> 608 <input style="margin-top:1vw;color:black;" type="text" value="`+title+`" name="menu_item[title]" id="menu_item_title"> 609 </a> 610 </form> 611 </li>` 612 613 navList.parentNode.replaceChild(mySpan, navList); 614 } 615 616 function add_menu_input() 617 { 618 button = document.getElementById("buttonLiElem"); 619 button.innerHTML = ` 620 <form autocomplete="off" action="/menu_items" accept-charset="UTF-8" data-remote="true" method="post"><input type="hidden" name="authenticity_token" value="otshboweY8ZpAQUzBfbYckNIDJEelB40o+Ty2E34vmAd6+j3turRGY6iHz0dw+yKgWTiko+ComhkIcEWvec+Aw=="> 621 <input placeholder="Type Menu Item Name" type="text" name="menu_item[title]" id="menu_item_title"> 622 <input type="submit" onclick="reset_menu()"name="commit" value="SAVE" style="padding: 0 0 0 0;color:white;max-height:100px;max-width:40px;" class="btn btn-primary" data-disable-with="SAVE"> 623 <input type="reset" onclick="reset_menu()" "name="commit" value="CANCEL" style="padding: 0 0 0 0;color:white;max-height:100px;max-width:80px;" class="btn btn-danger"> 624 </form>` 625 } 626 627 function add_submenu_input(menu_id) 628 { 629 button = document.getElementById("subButtonLiElem"+menu_id); 630 button.innerHTML = `<form autocomplete="off" action="/sub_menu_items" accept-charset="UTF-8" data-remote="true" method="post"><input type="hidden" name="authenticity_token" value="fs+3iSzpNlhmt+m+iWjUI6xEZv9J9pKnBx8hHrDptIsRYA6HqM2kBulJf9w5j7/Ca71XP8JYRanQilzY3MbBHQ=="> 631 <input type="hidden" name="menu_id" id="menu_id" value=`+menu_id+`> 632 <input placeholder="Type Page Name" type="text" name="sub_menu_item[title]" id="sub_menu_item_title"> 633 <input type="submit" onclick="reset_menu()" name="commit" value="CREATE" class="btn btn-primary" data-disable-with="CREATE"> 634 <input type="reset" onclick="reset_menu()" "name="commit" value="CANCEL" style="padding: 0 0 0 0;color:white;max-height:100px;max-width:80px;" class="btn btn-danger"> 635 </form>` 636 } 637 638 function update_submenu(title,id_to_edit) 639 { 640 listElem = document.getElementById("childListElem" + id_to_edit); 641 var mySpan = document.createElement("a"); 642 643 mySpan.innerHTML = `<li id="navItem`+id_to_edit+`" class="dropdown" style="margin-top:-2vw;"> 644 <form action="/sub_menu_items/update/`+id_to_edit+`" accept-charset="UTF-8" data-remote="true" method="post"><input type="hidden" name="_method" value="put"><input type="hidden" name="authenticity_token" value="YgcaHhIkSDUbLxFrcaPSQIkU/dl6OvZf0fROhlgSuQbdN9OHKND66vyMC2Vplua4SzgT2ussSgMWMX1IqA05ZQ=="> 645 <input type="submit" onclick="reset_menu()"name="commit" value="SAVE" style="padding: 0 0 0 0;color:white;max-height:100px;max-width:40px;" class="btn btn-primary" data-disable-with="SAVE"> 646 <a class="dropdown-toggle" data-toggle="dropdown" id="dropdown_toggle1"> 647 <input style="margin-top:1vw;color:black;" type="text" value="`+title+`" name="sub_menu_item[title]" id="sub_menu_item_title"> 648 </a> 649 </form> 650 </li>` 651 652 listElem.parentNode.replaceChild(mySpan, listElem); 653 } 654 655 function reset_menu() 656 { 657 location.reload() 658 } 659 660 function save_update() 661 { 662 } 663 664 665 window.addEventListener('resize', function() { 666 $(".dropdown").hover( 667 function () { 668 $(this).addClass("open"); 669 }, 670 function () { 671 $(this).removeClass("open"); 672 } 673 ); 674 }) 675 document.addEventListener("turbolinks:load", function() { 676 $(".dropdown").hover( 677 function () { 678 $(this).addClass("open"); 679 }, 680 function () { 681 $(this).removeClass("open"); 682 } 683 ); 684 685 }) 686 </script>
686 687</html> 688
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.