1var app_name; 2var get_param1, get_param2, get_param3; 3 4//normale seiten 5crossroads.addRoute( 6 "{page}/{param1}/:param2:/:param3:", 7 function (page, param1, param2, param3) { 8 app_name = page; 9 10 get_param1 = param1; 11 get_param2 = param2; 12 get_param3 = param3; 13 14 if (page == "events") { 15 showEvent(page); 16 } else if (page == "konakt") { 17 console.log(page); 18 } else { 19 showContent(page); 20 } 21 $("body").removeAttr("class"); 22 $("body").addClass(app_name); 23 } 24); 25 26//normale seiten 27crossroads.addRoute("{page}/{param1}", function (page, param1) { 28 app_name = page; 29 30 get_param1 = param1; 31 32 if (page == "events") { 33 showEvent(page); 34 } else if (page == "konakt") { 35 console.log(page); 36 } else { 37 showContent(page); 38 } 39 $("body").removeAttr("class"); 40 $("body").addClass(app_name); 41}); 42 43crossroads.addRoute("{page}", function (page) { 44 app_name = page; 45 get_param1 = null; 46 47 if (page == "events") { 48 window.scrollTo(0, 0); 49 showEvent(page); 50 showKontakt(page); 51 } else { 52 showContent(page); 53 window.scrollTo(0, 0); 54 } 55 56 $("body").removeAttr("class"); 57 $("body").addClass(app_name); 58 $(".floating_footer_container").removeClass("dofixed"); 59 $(".footer-section").removeClass("add_bottom_margin"); 60 if (page == "home") { 61 window.scrollTo(0, 0); 62 $(".floating_footer_container").addClass("dofixed"); 63 $(".footer-section").addClass("add_bottom_margin"); 64 } 65}); 66 67//keine route passt 68crossroads.bypassed.add(function (request) { 69 app_name = "home"; 70 $("body").removeAttr("class"); 71 $("body").addClass(app_name); 72 showContent("home"); 73}); 74 75function showContent(page) { 76 CMS.getContent(null, page, function (data) { 77 el("subBanner").innerHTML = ""; 78 79 if (data.MESSAGE.length > 0) { 80 el("mainContent").innerHTML = CMS.createContent(data.MESSAGE); 81 CMS.nodeScriptReplace(elq("#mainContent")); 82 handelSwiper() 83 } else { 84 $("#mainContent").load("APPS/notfound/index.html"); 85 } 86 }); 87} 88 89function showKontakt(page) { 90 CMS.getContent(null, page, function (data) { 91 el("subBanner").innerHTML = ""; 92 93 if (data.MESSAGE.length > 0) { 94 let htm = CMS.createContent(data.MESSAGE); 95 htm += ` 96 <style> 97 /* space for own styles */ 98 </style> 99 100 <div class="dm-forms-widget" data-view="forms" data-formid="551" data-profileid="7273" data-getfields="true" data-bootstrap="true" data-apikey="pJcufkowCPK70slkO96fCv6cyYoaXAdmhfYGphQLQ0LoUoV2IUMEHZD5iy3xtmGV" data-askemail="true" data-callback="myFunction" data-uploadfolderid="1" data-recaptcha="false"></div> 101 102 <script> 103 !function(){var e,t,r,i,s,n;e=document,t="script",r="dokume_formswidget",i="https://plugin.dokume.net/forms/plugin.js",n=e.getElementsByTagName("script")[0],e.getElementById(r)||((s=e.createElement(t)).id=r,"script"===t?(s.src=i,s.defer="defer",s.async=!1):(s.href=i,s.rel="stylesheet"),n.parentNode.insertBefore(s,n))}(); 104 </script>`; 105 el("mainContent").innerHTML = htm; 106 107 CMS.nodeScriptReplace(elq("#mainContent")); 108 TriggerParallaxBg(); 109 VideoSlider(); 110 triggerMblNav(); 111 showNavbar(); 112 } else { 113 $("#mainContent").load("APPS/notfound/index.html"); 114 TriggerParallaxBg(); 115 VideoSlider(); 116 triggerMblNav(); 117 showNavbar(); 118 } 119 }); 120} 121 122function showProperty(page) { 123 CMS.getContent(null, page, function (data) { 124 el("subBanner").innerHTML = ""; 125 126 if (data.MESSAGE.length > 0) { 127 el("mainContent").innerHTML = CMS.createContent(data.MESSAGE); 128 CMS.showPropertyInner(get_param1, (html) => { 129 elq(".propertiesBar").innerHTML = html; 130 }); 131 132 CMS.nodeScriptReplace(elq("#mainContent")); 133 checkNav(); 134 showNavbar(); 135 } else { 136 $("#mainContent").load("APPS/notfound/index.html"); 137 checkNav(); 138 showNavbar(); 139 } 140 }); 141 if (!get_param1) { 142 window.scrollTo(0, 0); 143 } else if ($("." + get_param1).length > 0) { 144 $("html, body").animate({ 145 scrollTop: $("." + get_param1).offset().top, 146 }); 147 } 148} 149 150function showEvent(page) { 151 CMS.getContent(null, page, function (data) { 152 el("subBanner").innerHTML = ""; 153 154 if (data.MESSAGE.length > 0) { 155 el("mainContent").innerHTML = CMS.createContent(data.MESSAGE); 156 157 CMS.showEventsInner(get_param1, function (html) { 158 elq(".eventWrapper").innerHTML = html; 159 }); 160 161 CMS.nodeScriptReplace(elq("#mainContent")); 162 showNavbar(); 163 } else { 164 $("#mainContent").load("APPS/notfound/index.html"); 165 showNavbar(); 166 } 167 168 if (!get_param1) { 169 window.scrollTo(0, 0); 170 } else if ($("." + get_param1).length > 0) { 171 $("html, body").animate({ 172 scrollTop: $("." + get_param1).offset().top, 173 }); 174 } 175 }); 176} 177 178function show_event_parser_ergebnisse_rennrodel(page) { 179 CMS.showEventsInner(get_param1, function (html) { 180 // elq(".eventWrapper").innerHTML = html; 181 }); 182 183 $("#mainContent").html(`<div> 184 <div 185 class="default_banner" 186 id="parallax1" 187 style=" 188 background-image: url(https://gos3.io/dokume-storage/user-7273/cms/400974.jpg); 189 " 190 ></div> 191</div> 192<div class="header_section_container"> 193 <div class="section_content"> 194 <div class="top_content_logo"> 195 <img src="" /> 196 </div> 197 <h1 198 class="presidium_top_heading" 199 style="text-align: right; margin-top: 75px" 200 >
201 <span style="color: #3a4052" 202 ><span>------------</span> 203 <span style="color: #3a4052; letter-spacing: 5px">RENNRODEL</span> 204 </span> 205 <span class="presidium_top_heading_top">ERGEBNISSE<br /></span> 206 </h1> 207 </div> 208</div> 209<div class="purple_rect_block" style="margin-top: 160px"></div> 210`); 211} 212 213/*****************setup hasher*******************/ 214function parseHash(newHash, oldHash) { 215 crossroads.parse(newHash); 216} 217 218hasher.initialized.add(parseHash); 219//parse initial hash 220hasher.changed.add(parseHash); 221//parse hash changes 222hasher.init(); 223//start listening for history change 224 225//update URL fragment generating new history record 226//hasher.setHash('dashboard');
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.