1$(document).ready(function() 2{ 3 ////////////////////////////åºæ¬è¨å®//////////////////////////// 4 /*------å ±é宣è¨------*/ 5 var WIDTH=$(window).width(); 6 var HEIGHT=$(window).height(); 7 var URL=location.pathname; 8 var ID=$("body").attr("id"); 9 var CLASS=$("body").attr("class"); 10 var TAB=768;//ã¿ãã¬ããçã®å¹ è¨å® 11 var SP=400;//ã¹ãã¼ããã©ã³çã®å¹ è¨å® 12 13 var $scroll_click_offset = 0; //ã¹ã¯ãã¼ã«é 14 15 /*------ãã³ãã¼ã¬ã¼ã¡ãã¥ã¼ã®å¶å¾¡------*/ 16 $('.humberger a').click(function() 17 { 18 $('.openbtn').toggleClass('on'); 19 $('body').toggleClass('nav_on'); 20 $scroll_click_offset = $(window).scrollTop(); 21 }); 22 23 /*------ã¹ã¯ãã¼ã«æã®å¶å¾¡------*/ 24 $(window).scroll(function() 25 { 26 //ãã³ãã¼ã¬ã¼ã®å±éã®è§£é¤ 27 let $scroll_top = $(window).scrollTop(); 28 let $move = 300; 29 if(($scroll_top < $scroll_click_offset - $move) || ($scroll_top > $scroll_click_offset + $move)) 30 { 31 $('body').removeClass('nav_on'); 32 $('.openbtn').removeClass('on'); 33 } 34 }); 35 36 /*------ããããã¤ã------*/ 37 // $("ã»ã¯ã¿ã¼").matchHeight({remove: true}); 38 // $(".voice_list ul li").matchHeight(); 39 40 41 /*------ããã¼ã¢ã¯ã·ã§ã³------*/ 42 /* 43 $(document).on( 44 { 45 mouseenter: function() 46 { 47 48 }, 49 mouseleave: function() 50 { 51 52 } 53 }, '.header_inner_block > .right > ul > li'); 54 */ 55 56 /*------AJAX------*/ 57 /* 58 //PHPå®è¡ 59 $.ajax 60 ({ 61 url: "/xml.php", 62 type: "post" 63 }) 64 .done 65 (function (response) 66 { 67 68 }); 69 //ãã¼ã¿ã®éåä¿¡ 70 $.ajax 71 ({ 72 type: 'POST', 73 dataType: 'html', 74 async: false, 75 data: 76 { 77 'files' : $files, 78 }, 79 url: '/dbsys/design.php', 80 success : function($data) 81 { 82 $($thum).html($data); 83 } 84 }); 85 */ 86 87 /*------ã¿ãåãæ¿ã------*/ 88 $("[data-click]").click(function() 89 { 90 $val = $(this)[0].dataset.click; 91 $group = $(this)[0].dataset.group; 92 93 $("[data-group='" + $group + "'][data-click]").removeClass("on"); 94 $(this).addClass("on"); 95 96 $("[data-group='" + $group + "'][data-box]").removeClass("on"); 97 $("[data-box='" + $val + "']").addClass("on"); 98 }); 99 100 /*------ãã¼ã«ã«ã¹ãã¬ã¼ã¸------*/ 101 if(window.localStorage) 102 { 103 $("#login_form [name=\"loginid\"]").val(localStorage.getItem('loginid')); 104 $("#login_form [name=\"loginid\"]").blur(function(){ 105 localStorage.setItem('loginid', $(this).val()); 106 }); 107 } 108 109 /*------ãã¡ã³ã·ã¼ããã¯ã¹------*/ 110 if($('.fancy').length != 0) 111 { 112 $(".fancy a").fancybox 113 ({ 114 'autoSize' : false, 115 'width': '70%', 116 'height': '75%', 117 'type' : 'iframe' 118 }); 119 } 120 121 /*------ã¹ã ã¼ã¹å¾ã®URLã®åãæ¿ã------*/ 122 $(".smooth a").click(function() 123 { 124 $url=$(this).attr('href'); 125 setTimeout(function() 126 { 127 window.location = $url; 128 }, 300); 129 }); 130 131 ////////////////////////////RWDç対å¿//////////////////////////// 132 /*------PCã®ã¿------*/ 133 if(WIDTH>=TAB+1) 134 { 135 //ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 136 $(".smooth a").each(function(){$(this).smoothScroll({offset:-150});}); 137 138 // å¹ãåºãã³ã¡ã³ã 139 // pop_comment="ããã¹ã" 140 // pop_comment-width="å¹ " 141 $(document).on 142 ( 143 {'mouseenter' : function() 144 { 145 var $text = $(this).data('pop_comment'); 146 var $width = $(this).data('pop_comment-width'); 147 if($width) 148 { 149 $width = 'style="width:' + $width + 'px;"'; 150 } 151 $(this).append('<div data-dom="pop_comment" ' + $width + '>' + $text + '</div>'); 152 }, 153 'mouseleave' : function() 154 { 155 $('[data-dom="pop_comment"]').remove(); 156 }}, 157 '[data-pop_comment]' 158 ); 159 $(document).on 160 ( 161 {'mouseenter' : function() 162 { 163 $('[data-dom="pop_comment"]').remove(); 164 }, 165 'mouseleave' : function() 166 { 167 168 }}, 169 '[data-dom="pop_comment"]' 170 ); 171 } 172 173 /*------ã¿ãã¬ãã&SP------*/ 174 if(WIDTH<=TAB) 175 { 176 //ã¿ãã¬ãã&SPã®ãµã¤ãºæã«ãªãã¼ãå¦ç 177// $(window).resize(function() 178// { 179// WIDTH=$(window).width(); 180// if(WIDTH<=TAB && WIDTH>(TAB-50)) 181// { 182// location.reload(); 183// } 184// }); 185 186 } 187 188 /*------ã¿ãã¬ããã®ã¿------*/ 189 if(WIDTH<=TAB && WIDTH>=SP+1) 190 { 191 //ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 192 $(".smooth a").each(function(){$(this).smoothScroll({offset:-120});}); 193 194 } 195 196 /*------SPã®ã¿------*/ 197 if(WIDTH<=SP) 198 { 199 //ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 200 $(".smooth a").each(function(){$(this).smoothScroll({offset:-120});}); 201 202 // //ã¢ã³ããã¤ãã§ã¹ã¯ãã¼ã«åºæ¥ãããã«ãã 203 // $(".add_upload_menu .content"). overflowScroll(); 204 205 } 206 207 208 209 210 211 212 213}); 214 215 216 217////////////////////////////ã¢ã¯ã·ã§ã³è¨å®//////////////////////////// 218//ã¢ã¯ã·ã§ã³ã®å®è¡ 219$(document).off('click');
219$(document).on('click', '[data-action]', function(){do_action($(this));});$(document).off('change');$(document).on('change', '[data-change]', function(){do_action($(this));}); 220 221function do_action($this, $e) 222{ 223 var $action = $this.data('action'); 224 if(!$action) 225 { 226 $action = $this.data('change'); 227 } 228 var $value = $this.data('value'); 229 var $value2 = $this.data('value2'); 230 var $value3 = $this.data('value3'); 231 var $value4 = $this.data('value4'); 232 var $val = $this.val(); 233 234 //ã¡ã¢ã®éé 235 if($action == 'open_note') 236 { 237 if($this.hasClass('on')) 238 { 239 $('[data-dom="' + $value + '"]').show(); 240 $this.addClass('on'); 241 } 242 else 243 { 244 $('[data-dom="' + $value + '"]').hide(); 245 $this.removeClass('on'); 246 } 247 $e.preventDefault(); //親è¦ç´ ã®ã¯ãªãã¯ãç¡å¹ã«ãã 248 $e.stopPropagation(); //親è¦ç´ ã®ã¯ãªãã¯ãç¡å¹ã«ãã 249 return false; 250 } 251} 252 253 254 255////////////////////////////å®è¡é¢æ°è¨å®//////////////////////////// 256/*------åå¨å¤å®------*/ 257is = function($str) 258{ 259 if($str == '' || $str == null || $str == undefined) 260 { 261 return false; 262 } 263 else 264 { 265 return true; 266 } 267} 268 269/*------ç¦æ¢ã¯ã¼ã------*/ 270block_word = function($string) 271{ 272 const NG_WORDS = /ã´ã|ãã¿|ã·ã|æ»ã|馬鹿|ãã«|www|ï½ï½ï½|ãã»|ã¢ã|ãã|ã¯ãº|ããã|ã¬ã¤ã¸|ãã¤|ä¹|ãã®ã|ç¡è½/i; 273 274 if(NG_WORDS.test($string)) 275 { 276 var $error = 'ãå ¥åããã ããå 容ã«ç¦æ¢ã¯ã¼ããå«ã¾ãã¦ãã¾ããã'; 277 if(navigator.userAgent.indexOf('msie') >= 0 || navigator.userAgent.indexOf('Trident') >= 0) 278 { 279 alert($error); 280 } 281 else 282 { 283 Swal.fire 284 ({ 285 title: 'ã¨ã©ã¼', 286 html: $error, 287 icon: 'error' 288 }); 289 } 290 return false; 291 } 292 else 293 { 294 return true; 295 } 296} 297 298/*------ã¯ãã¹ãµã¤ãã¹ã¯ãªãã対ç------*/ 299anti_xss = function($string) 300{ 301 if($string != '' && $string != undefined) 302 { 303 return $string.replace(/\&/g, '&') 304 .replace(/\</g, '<') 305 .replace(/\>/g, '>') 306 .replace(/\"/g, '"') 307 .replace(/\'/g, ''') 308 .replace(/<br>/g, '<br />') 309 .replace(/<br> \/;/g, '<br />'); 310 } 311 else 312 { 313 return ''; 314 } 315} 316 317/*------Ajax(é å»¶å¦çå¯)------*/ 318//颿°å®ç¾© 319/*------Ajax(é å»¶å¦çå¯)------*/ 320myAjax = function(opt){return $.ajax(opt).done(function(data){}).fail(function(){}
320).always(function(){});} 321 322// //æå¾ã«å¦çããè¨è¿°ãå ããå ´åã¯ä¸è¨ãåç § 323// var $deffered_list = []; 324// $deffered_list.push($ajax1); 325// $.when.apply(null, $deffered_list).done(function() 326// { 327 328// }); 329 330/*------Cookieã®æä½------*/ 331//Cookieã®åé¤ 332reset_cookie = function($key) 333{ 334 var $date = new Date('1999-12-31T23:59:59Z'); // éå»ã®æ¥ä»ãGMTå½¢å¼ã«å¤æ 335 document.cookie = $key + '=; expires=' + $date.toUTCString(); 336 document.cookie = $key + '=; max-age=0'; 337} 338 339//Cookieã®ã»ãã 340set_cookie = function($key, $val) 341{ 342 document.cookie = $key + '=' + JSON.stringify($val) + ';max-age=600'; 343} 344 345//Cookieã®åå¾ 346get_cookie = function($target) 347{ 348 var $cookie = document.cookie.split(';'); 349 var $cookie_list = {}; 350 var $return_data; 351 352 var $arg = $target; 353 $cookie.some(function (value) 354 { 355 var $arr = value.split('='); 356 var $key = $arr[0]; 357 var $val = $arr[1]; 358 359 $key = $key.replace(/"/g, ''); 360 $key = $key.replace(/ /g, ''); 361 362 if($key == $arg) 363 { 364 if($arg != '' && $arg != undefined) 365 { 366 if($val != '' && $val != undefined) 367 { 368 $return_data = parseJson($val); 369 } 370 else 371 { 372 $return_data = ''; 373 } 374 return true; 375 } 376 } 377 378 $cookie_list[$key] = $val; 379 }); 380 381 if($target) 382 { 383 return $return_data; 384 } 385 else 386 { 387 return $cookie_list; 388 } 389} 390 391/*------ã¨ã³ã¿ã¼ãæ¼ããæã«éãå ´æãã¯ãªãã¯ããã------*/ 392enter_move_click = function($form, $button) 393{ 394 document.getElementById($form).onkeypress = function(e) 395 { 396 const key = e.keyCode || e.charCode || 0; 397 if (key == 13) 398 { 399 $($button).click(); 400 e.preventDefault(); 401 return false; 402 } 403 } 404} 405 406/*------ãã©ã¼ã ãã¼ã¿éä¿¡------*/ 407function send_submit() 408{ 409 $form = $('#form1'); 410 $.ajax 411 ({ 412 type: $form.attr('method'), 413 url: $form.attr('action'), 414 data: $form.serialize(), 415 timeout: 10000, 416 }); 417} 418 419/*------CSRF対çç¨ãã¼ã¯ã³åå¾------*/ 420get_token = function($id, $home_url) 421{ 422 if($home_url == undefined) 423 { 424 $home_url = ''; 425 } 426 if($('#' + $id).length > 0) 427 { 428 $.ajax 429 ({ 430 type: 'GET', 431 dataType: 'html', 432 data: 433 { 434 'token_id' : $id, 435 }, 436 url: $home_url + '/dbsys/Controller/get_token.php', 437 success : function($result) 438 { 439 $('#' + $id).val($result); 440 }, 441 error: function ($result, $error) 442 { 443 // if(!is($result)) 444 // { 445 // header('HTTP/1.1 500 Internal Server Error'); 446 // echo "ãããããæ³¨æãã¼ã¿ããããã¾ããã"; 447 // exit(); 448 // } 449 if($result.responseText) 450 { 451 alert($result.responseText); 452 } 453 else 454 { 455 alert('ã·ã¹ãã ã¨ã©ã¼ã«ãªãã¾ããã'); 456 } 457 //location.reload(); //ãµã¼ãã³ã³ã½ã¼ã«ã§ã¨ã©ã¼ã«ãªã 458 } 459 }); 460 } 461}; 462 463/*------çªå·ã®ãã©ã¼ããã------*/ 464number_format = function(number,decimals,dec_point,thousands_sep) 465{ 466 number = number*1;//makes sure `number` is numeric value 467 var str = number.toFixed(decimals?decimals:0).toString().split('.'); 468 var parts = []; 469 for ( var i=str[0].length; i>0; i-=3 ) { 470 parts.unshift(str[0].substring(Math.max(0,i-3),i)); 471 } 472 str[0] = parts.join(thousands_sep?thousands_sep:','); 473 return str.join(dec_point?dec_point:'.'); 474}; 475 476/*------Jsonãã¼ã¹------*/ 477parseJson = function(jsonString) 478{ 479 var converted = convertNl(jsonString); 480 return JSON.parse(converted); 481}; 482 483convertNl = function(jsonString) 484{ 485 return jsonString 486 .replace(/(\r\n)/g, '\n') 487 .replace(/(\r)/g, '\n') 488 .replace(/(\n)/g, '\\n'); 489}; 490 491/*------URLã®ã¯ã¨ãªåå¾------*/ 492get_params = function() 493{ 494 var date = ''; 495 let paramList = new Object; 496 let param = location.search.substring(1).split('&'); 497 let paramSplit; 498 for (let i = 0; param[i]; i++) { 499 paramSplit = param[i].split('='); 500 paramList[paramSplit[0]] = paramSplit[1]; 501 } 502 503 return paramList; 504} 505 506/*------æ¥ä»åå¾------*/ 507get_date = function($date) 508{ 509 if($date == undefined) 510 { 511 var $Detetime = new Date(); 512 } 513 else 514 { 515 var $Detetime = new Date($date); 516 } 517 518 var $yyyy = $Detetime.getFullYear(); 519 var $yy = ('' + $Detetime.getFullYear()).slice(-2); 520 var $mm = ('0' + ($Detetime.getMonth() + 1)).slice(-2); 521 var $dd = ('0' + $Detetime.getDate()).slice(-2); 522 var $hh = ('0' + $Detetime.getHours()).slice(-2); 523 var $mi = ('0' + $Detetime.getMinutes()).slice(-2); 524 525 var $date_hash = {}; 526 $date_hash['date'] = $yyyy + '-' + $mm + '-' + $dd; 527 $date_hash['datetime'] = $yyyy + '-' + $mm + '-' + $dd + ' ' + $hh + ':' + $mi; 528 $date_hash['yyyy'] = $yyyy; 529 $date_hash['yy'] = $yy; 530 $date_hash['mm'] = $mm; 531 $date_hash['dd'] = $dd; 532 $date_hash['hh'] = $hh; 533 $date_hash['mi'] = $mi; 534 535 return $date_hash; 536} 537
538////////////////////////////ãã©ã°ã¤ã³&å ±éè¨å®//////////////////////////// 539/*------SPç IOSã¿ãããã°å¯¾ç------*/ 540$(function(){var ua =navigator.userAgent;if(ua.indexOf('iPhone') > -1 || ua.indexOf('iPad') > -1){$("body").attr("ontouchend","");}}); 541 542// /*------SPç æ¨ªã«åããéã«ãªãã¼ã------*/ 543// $(window).on('orientationchange resize', function() {if (Math.abs(window.orientation) === 90) {$(window).load();} else {$(window).load();}}); 544 545/*------ã¹ã ã¼ã¹ã¹ã¯ãã¼ã«------*/ 546(function(e){var c="1.4.10",f={exclude:[],excludeWithin:[],offset:0,direction:"top",scrollElement:null,scrollTarget:null,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficent:2},a=function(i){var j=[],h=false,g=i.dir&&i.dir=="left"?"scrollLeft":"scrollTop";this.each(function(){if(this==document||this==window){return}var k=e(this);if(k[g]()>0){j.push(this)}else{k[g](1);h=k[g]()>0;if(h){j.push(this)}k[g](0)}});if(!j.length){this.each(function(k){if(this.nodeName==="BODY"){j=[this]}})}if(i.el==="first"&&j.length>1){j=[j[0]]}return j},b="ontouchend" in document;e.fn.extend({scrollable:function(g){var h=a.call(this,{dir:g});return this.pushStack(h)},firstScrollable:function(g){var h=a.call(this,{el:"first",dir:g});return this.pushStack(h)},smoothScroll:function(g){g=g||{};var h=e.extend({},e.fn.smoothScroll.defaults,g),i=e.smoothScroll.filterPath(location.pathname);this.unbind("click.smoothscroll").bind("click.smoothscroll",function(k){var s=this,r=e(this),m=h.exclude,p=h.excludeWithin,t=0,o=0,l=true,u={},n=((location.hostname===s.hostname)||!s.hostname),j=h.scrollTarget||(e.smoothScroll.filterPath(s.pathname)||i)===i,q=d(s.hash);if(!h.scrollTarget&&(!n||!j||!q)){l=false}else{while(l&&t<m.length){if(r.is(d(m[t++]))){l=false}}while(l&&o<p.length){if(r.closest(p[o++]).length){l=false}}}if(l){k.preventDefault();e.extend(u,h,{scrollTarget:h.scrollTarget||q,link:s});e.smoothScroll(u)}});return this}});e.smoothScroll=function(r,n){var g,h,q,j,p=0,k="offset",m="scrollTop",o={},l={},i=[];if(typeof r==="number"){g=e.fn.smoothScroll.defaults;q=r}else{g=e.extend({},e.fn.smoothScroll.defaults,r||{});if(g.scrollElement){k="position";if(g.scrollElement.css("position")=="static"){g.scrollElement.css("position","relative")}}}g=e.extend({link:null},g);m=g.direction=="left"?"scrollLeft":m;if(g.scrollElement){h=g.scrollElement;p=h[m]()}else{h=e("html, body").firstScrollable()}g.beforeScroll.call(h,g);q=(typeof r==="number")?r:n||(e(g.scrollTarget)[k]()&&e(g.scrollTarget)[k]()[g.direction])||0;o[m]=q+p+g.offset;j=g.speed;if(j==="auto"){j=o[m]||h.scrollTop();j=j/g.autoCoefficent}l={duration:j,easing:g.easing,complete:function(){g.afterScroll.call(g.link,g)}};if(g.step){l.step=g.step}if(h.length){h.stop().animate(o,l)}else{g.afterScroll.call(g.link,g)}};e.smoothScroll.version=c;e.smoothScroll.filterPath=function(g){return g.replace(/^\//,"").replace(/(index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")};e.fn.smoothScroll.defaults=f;function d(g){return g.replace(/(:|\.)/g,"\\$1")}})(jQuery); 547 548/*------ããããã¤ã------*/ 549(function(l){var k=-1,i=-1,e=function(b){return parseFloat(b)||0},d=function(f){var c=null,g=[];l(f).each(function(){var m=l(this),n=m.offset().top-e(m.css("margin-top")),b=0<g.length?g[g.length-1]:null;null===b?g.push(m):1>=Math.floor(Math.abs(c-n))?g[g.length-1]=b.add(m):g.push(m);c=n});return g},j=function(f){var c={byRow:!0,property:"height",target:null,remove:!1};if("object"===typeof f){return l.extend(c,f)}"boolean"===typeof f?c.byRow=f:"remove"===f&&(c.remove=!0);return c},a=l.fn.matchHeight=function(b){b=j(b);if(b.remove){var c=this;this.css(b.property,"");l.each(a._groups,function(g,f){f.elements=f.elements.not(c)});return this}if(1>=this.length&&!b.target){return this}a._groups.push({elements:this,options:b});a._apply(this,b);return this};a._groups=[];a._throttle=80;a._maintainScroll=!1;a._beforeUpdate=null;a._afterUpdate=null;a._apply=function(g,q){var r=j(q),o=l(g),n=[o],c=l(window).scrollTop(),p=l("html").outerHeight(!0),b=o.parents().filter(":hidden");b.each(function(){var f=l(this);f.data("style-cache",f.attr("style"))});b.css("display","block");r.byRow&&!r.target&&(o.each(function(){var m=l(this),f="inline-block"===m.css("display")?"inline-block":"block";m.data("style-cache",m.attr("style"));m.css({display:f,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px"})}),n=d(o),o.each(function(){var f=l(this);f.attr("style",f.data("style-cache")||"")}));l.each(n,function(s,m){var u=l(m),t=0;if(r.target){t=r.target.outerHeight(!1)}else{if(r.byRow&&1>=u.length){u.css(r.property,"");return}u.each(function(){var v=l(this),f={display:"inline-block"===v.css("display")?"inline-block":"block"};f[r.property]="";v.css(f);v.outerHeight(!1)>t&&(t=v.outerHeight(!1));v.css("display","")})}u.each(function(){var v=l(this),f=0;r.target&&v.is(r.target)||("border-box"!==v.css("box-sizing")&&(f+=e(v.css("border-top-width"))+e(v.css("border-bottom-width")),f+=e(v.css("padding-top"))+e(v.css("padding-bottom"))),v.css(r.property,t-f))})});b.each(function(){var f=l(this);f.attr("style",f.data("style-cache")||null)});a._maintainScroll&&l(window).scrollTop(c/p*l("html").outerHeight(!0));return this};a._applyDataApi=function(){var b={};l("[data-match-height], [data-mh]").each(function(){var c=l(this),f=c.attr("data-mh")||c.attr("data-match-height");b[f]=f in b?b[f].add(c):c});l.each(b,function(){this.matchHeight(!0)})};var h=function(b){a._beforeUpdate&&a._beforeUpdate(b,a._groups);l.each(a._groups,function(){a._apply(this.elements,this.options)});a._afterUpdate&&a._afterUpdate(b,a._groups)};a._update=function(b,c){if(c&&"resize"===c.type){var f=l(window).width();if(f===k){return}k=f}b?-1===i&&(i=setTimeout(function(){h(c);i=-1},a._throttle)):h(c)};l(a._applyDataApi);l(window).bind("load",function(b){a._update(!1,b)}
549);l(window).bind("resize orientationchange",function(b){a._update(!0,b)})})(jQuery); 550 551 552/*------ã¢ã³ããã¤ãã§ã¹ã¯ãã¼ã«åºæ¥ãããã«ãã------*/ 553// (function(e){var c=20,g=16,d=0.98,h=10,b=1,f="data-jquery-overflow-scroll";e.fn.overflowScroll=function(){this.each(function(){a(e(this))})};function a(n){if(n.attr(f)){return}n.attr(f,1);var u=false,j=false,x,B=0,z=0,k=0,i=0,v=0,t=0,s=0,r=0,q=0,p=0,C=(n.get(0).scrollWidth||n.get(0).clientWidth)-n.width(),A=(n.get(0).scrollHeight||n.get(0).clientHeight)-n.height();function m(){return !j}function l(D){D=D.originalEvent;j=false;clearInterval(x);u=true;var E=D.touches[0];B=v=E.pageX;z=t=E.pageY;k=n.scrollLeft();i=n.scrollTop()}function y(H){H=H.originalEvent;H.preventDefault();var I=H.touches[0];v=I.pageX;t=I.pageY;var G=Math.abs(B-v),F=Math.abs(z-t);if(!j&&(G>c||F>c)){j=true}var E=k+(B-v),D=i+(z-t);n.scrollLeft(E);n.scrollTop(D)}function o(F){F=F.originalEvent;clearInterval(x);var I=F.changedTouches[0];u=false;s=(v-I.pageX);r=(t-I.pageY);v=I.pageX;t=I.pageY;var E=k+(B-v),D=i+(z-t),H=n.scrollLeft(),G=n.scrollTop();if(H>q&&H<C){n.scrollLeft(E)}else{s=0}if(G>p&&G<A){n.scrollTop(D)}else{r=0}x=setInterval(w,g)}n.on("click","a",m);n.on("touchstart",l);n.on("touchmove",y);n.on("touchend touchcancel",o);function w(){if(u){clearInterval(x);return}if((Math.abs(s)<b&&Math.abs(r)<b)){j=false;clearInterval(x);return}var E=n.scrollLeft(),D=n.scrollTop();s*=d;r*=d;n.scrollLeft(E+Math.round(Math.min(h,Math.max(-h,s))));n.scrollTop(D+Math.round(Math.min(h,Math.max(-h,r))))}}})(jQuery);
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.