1$(document).ready(function () { 2 $(document).bind("contextmenu",function(e){ return false; }); 3 pageLoad(); 4}); 5function pageLoad() { 6 menuScroll(); 7 if ($('.mainnav').position().top > $(window).scrollTop() && screen.width > 1200) { 8 $('#navlogo, .menu > ul').css({'padding-top': '1em','padding-bottom':'1em'}); 9 $('.hamburger').css({'margin-top': '1em','margin-bottom':'1em'}); 10 $('.ultop5').removeClass('ultop3'); 11 } 12 $(window).resize(function () { 13 $('#navlogo, .menu, .menu > ul').removeAttr('style'); 14 $('.hamburger').removeAttr('style').removeClass('is-active'); 15 menuScroll(); 16 /*resizeQuickLinks();*/ 17 }); 18 $('.mainscrolldown').on('click touch', function() { 19 $('html, body').animate({ 20 scrollTop: $("#mainnav").offset().top + 60 21 }, 1000); 22 }); 23 $('.adhelp').on('click touch', function() { 24 $('html, body').animate({ 25 scrollTop: $("#adappeal").offset().top + 60 26 }, 1000); 27 }); 28 $(".hamburger").on('click touch', function(){ 29 $(this).toggleClass("is-active"); 30 }); 31 32 /*var rellax = new Rellax('.rellax');*/ 33 $('.quicklinks').slick({ 34 infinite: true, 35 slidesToShow: 4, 36 autoplay: true, 37 autoplaySpeed: 5000, 38 arrows: true, 39 dots: true, 40 responsive: [ 41 { 42 breakpoint: 1250, 43 settings: { 44 slidesToShow: 4 45 } 46 }, 47 { 48 breakpoint: 980, 49 settings: { 50 slidesToShow: 3 51 } 52 }, 53 { 54 breakpoint: 610, 55 settings: { 56 slidesToShow: 1 57 } 58 } 59 ] 60 }); 61 /*$('.quicklinksmobile').slick({ 62 infinite: true, 63 slidesToShow: 3, 64 autoplay: true, 65 autoplaySpeed: 5000, 66 arrows: true, 67 dots: true 68 });*/ 69 $('.testimslider').slick({ 70 infinite: true, 71 slidesToShow: 1, 72 autoplay: true, 73 autoplaySpeed: 7000, 74 arrows: false, 75 dots: false, 76 fade: true, 77 cssEase: 'linear' 78 }); 79 $('.topslides').slick({ 80 infinite: true, 81 slidesToShow: 1, 82 autoplay: true, 83 autoplaySpeed: 5000, 84 arrows: false, 85 dots: false, 86 fade: true, 87 cssEase: 'linear', 88 pauseOnHover: false 89 }); 90 $('.hamburger').on('click',function() { 91 $('.menu').toggle(300); 92 $('.menu ul ul').removeClass('menuhover'); 93 }); 94 /*$('.menu ul li').on('click',function() { 95 if($('.hamburger').is(':visible')) { 96 $(this).siblings().children('ul').removeClass('menuhover'); 97 $(this).children('ul').toggleClass('menuhoveronecolumn'); 98 } 99 });*/ 100 $('.menu ul li').on('mouseover', function() { 101 if ($(this).hasClass('menuonecolumn')) { 102 $(this).children('ul').addClass('menuhoveronecolumn'); 103 } else { 104 $(this).children('ul').addClass('menuhover'); 105 } 106 }); 107 $('.menu ul li').on('mouseout', function() { 108 if ($(this).hasClass('menuonecolumn')) { 109 $(this).children('ul').removeClass('menuhoveronecolumn'); 110 } else { 111 $(this).children('ul').removeClass('menuhover'); 112 } 113 }); 114 $('.menu ul li').on('click touch', function() { 115 $(this).siblings().children('ul').removeClass('menuhover').removeClass('menuhoveronecolumn'); 116 if($(this).children('ul').is(':hidden')) { 117 if ($(this).hasClass('menuonecolumn')) { 118 $(this).children('ul').addClass('menuhoveronecolumn'); 119 } else { 120 $(this).children('ul').addClass('menuhover'); 121 } 122 } else { 123 if ($(this).hasClass('menuonecolumn')) { 124 $(this).children('ul').removeClass('menuhoveronecolumn'); 125 } else { 126 $(this).children('ul').removeClass('menuhover'); 127 } 128 } 129 }); 130 $('.menu a').on('click', function() { 131 $('.menu').hide(300); 132 }); 133 $(window).on("orientationchange", function() { 134 if (window.orientation == 0) { 135 $('.govtable').hide(); 136 $('.govtaberror').show(); 137 } else { 138 $('.govtable').show(); 139 $('.govtaberror').hide(); 140 } 141 }); 142 $('.accordian').children('li').on('click touch', function() { 143 $(this).siblings().children('ul').hide(300); 144 $(this).siblings().removeClass('accselected'); 145 $(this).toggleClass('accselected'); 146 $(this).children('ul').toggle(500); 147 }); 148 $('a[href^="#"]').on('click touch', function(event) { 149 event.preventDefault(); 150 $('html, body').animate({ 151 scrollTop: $($.attr(this, 'href')).offset().top - $('.menu').height() 152 }, 500); 153 }); 154 $('.subjecttab').on('click touch', function() { 155 $(this).siblings('div').hide(); 156 $('.subjectprog').hide(); 157 var name = $(this).data('name'); 158 $('.' + name).show(); 159 }); 160 $('.edulinkheading, .edulinkicon').on('click touch', function() { 161 $(this).parent().siblings('.edulinkcontent').hide(100); 162 if ($(this).parent().next('.edulinkcontent').is(':visible')) { 163 $(this).parent().next('.edulinkcontent').hide(500); 164 } else { 165 $(this).parent().next('.edulinkcontent').show(300); 166 } 167 }); 168 $('.edulinksubheading').on('click touch', function() { 169 $(this).siblings('.edulinkcontent').hide(100); 170 if ($(this).next('.edulinkcontent').is(':visible')) { 171 $(this).next('.edulinkcontent').hide(500); 172 } else { 173 $(this).next('.edulinkcontent').show(300); 174 } 175 }); 176 $('#doclink').on('click touch', function(e) { 177 e.preventDefault(); 178 $('.nopdf').remove(); 179 data = $('.policypage').html(); 180 $.ajax({
181 type: "POST", 182 url: "/includes/output.cfm", 183 data: {data}, 184 success: function(res) { 185 window.open("/includes/download.cfm") 186 }, 187 error: function (e) { 188 console.log(e); 189 }, 190 dataType: "HTML" 191 }); 192 }); 193 $('.popupclose').on('click touch', function() { 194 $('#popup').hide(300); 195 $.ajax({ 196 type: "POST", 197 url: "/includes/popupclose.cfm", 198 success: function(res) { 199 }, 200 error: function (e) { 201 console.log(e); 202 } 203 }); 204 }); 205 $('.rckie').on('click touch', function() { 206 $('.cookiepopup').hide(300); 207 }); 208 $('.ackie').on('click touch', function() { 209 $('.cookiepopup').hide(300); 210 $.ajax({ 211 type: "POST", 212 url: "/includes/cookieaccept.cfm", 213 success: function(res) { 214 }, 215 error: function (e) { 216 console.log(e); 217 } 218 }); 219 }); 220 $('.linkind').on('click touch', function() { 221 url = $(this).data('url'); 222 window.open(url, '_blank').focus(); 223 }); 224 225} 226/*function resizeQuickLinks() { 227 if (screen.width > 1249) { 228 $('.quicklinks').slick({ 229 infinite: true, 230 slidesToShow: 4, 231 autoplay: true, 232 autoplaySpeed: 5000, 233 arrows: true, 234 dots: true 235 }); 236 } else if (screen.width > 980) { 237 $('.quicklinks').slick({ 238 infinite: true, 239 slidesToShow: 3, 240 autoplay: true, 241 autoplaySpeed: 5000, 242 arrows: true, 243 dots: true 244 }); 245 246 } else { 247 $('.quicklinks').slick({ 248 infinite: true, 249 slidesToShow: 1, 250 autoplay: true, 251 autoplaySpeed: 5000, 252 arrows: true, 253 dots: true 254 }); 255 } 256}*/ 257 258 259function menuScroll() { 260 $(window).scroll(function() { 261 /*$('.menu ul ul').hide();*/ 262 /*if($('.hamburger').is(':visible')) { 263 $('#navlogo, .menu, .menu > ul').removeAttr('style'); 264 $('.hamburger').removeAttr('style').removeClass('is-active'); 265 }*/ 266 if ($('.mainnav').position().top <= $(window).scrollTop() && screen.width > 1250) { 267 if (!$('.mainnav').hasClass('sticky')) { 268 $('#navlogo, .menu > ul').stop().animate({ 269 paddingTop: "0", 270 paddingBottom: "0" 271 }, 300); 272 $('.hamburger').stop().animate({ 273 marginTop: "0", 274 marginBottom: "0" 275 }, 300); 276 $('.mainnav').addClass('sticky'); 277 $('.ultop5').addClass('ultop3'); 278 279 } 280 } else if (screen.width > 1027) { 281 if ($('.mainnav').hasClass('sticky')) { 282 $('#navlogo, .menu > ul').stop().animate({ 283 paddingTop: "1em", 284 paddingBottom: "1em" 285 }, 300); 286 $('.hamburger').stop().animate({ 287 marginTop: "1em", 288 marginBottom: "1em" 289 }, 300); 290 $('.mainnav').removeClass('sticky'); 291 $('.ultop5').removeClass('ultop3'); 292 } 293 } else { 294 $('#navlogo, .menu > ul').removeAttr('style'); 295 $('.hamburger').removeAttr('style'); 296 } 297 }) 298} 299function admissions() { 300 $('#parentno').on('keyup', function() { 301 $('#parentno').val($('#parentno').val().replace(/\D/g,'')); 302 }); 303 $('input').on('keyup', function() { 304 $(this).removeClass('error'); 305 }); 306 $('select').on('click', function() { 307 $(this).removeClass('error'); 308 }); 309 $('.ofstedreport').on('click touch', function() { 310 window.open('https://lanfranc.org.uk/welcome-secondary/ofsted/'); 311 }); 312 $('#opendaybutton').on('click touch', function() { 313 pname = $('#parentname').val(); 314 pno = $('#parentno').val(); 315 pemail = $('#parentemail').val(); 316 pevent = $('#parentevent').val(); 317 validated = 0; 318 if (pname == "") { 319 $('#parentname').addClass('error'); 320 validated = false; 321 } else {validated++} 322 if (pno == "") { 323 $('#parentno').addClass('error'); 324 validated = false; 325 } else {validated++} 326 if(!isEmail(pemail)) { 327 $('#parentemail').addClass('error'); 328 validated = false; 329 } else {validated++} 330 if (pevent == "") { 331 $('#parentevent').addClass('error'); 332 validated = false; 333 } else {validated++} 334 if (validated == 4) { 335 $('.openregister').hide(); 336 $('.loading').show(); 337 $.ajax({ 338 type: "POST", 339 url: "submit.cfm", 340 data: { 341 pname: $('#parentname').val(), 342 pno: $('#parentno').val(), 343 pemail: $('#parentemail').val(), 344 pevent: $('#parentevent').val() 345 }, 346 success: function(res) { 347 $('.loading').hide(); 348 $('.confirmation').show(); 349 $('.close').on('click touch', function() { 350 $('.confirmation').hide(300);
351 }); 352 }, 353 error: function (e) { 354 console.log(e); 355 }, 356 dataType: "HTML" 357 }); 358 } 359 }); 360} 361function isEmail(email) { 362 var regex = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; 363 return regex.test(email); 364}
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.