1var JALAN = JALAN || {}; 2 3JALAN.CURRENCY = { 4 init : function(){ 5 this.setParameters(); 6 this.saveStorage(); 7 this.checkSession(); 8 }, 9 setParameters : function(){ 10 this.$ancer = $('a'); 11 }, 12 saveStorage : function(){ 13 var test = location.href.match(/\?crcyCd=(.{3})/); 14 sessionStorage.setItem('currency', RegExp.$1); 15 }, 16 checkSession : function(){ 17 this.$ancer.on('click', function(){ 18 var href = $(this).attr('href'); 19 if(sessionStorage.getItem('currency') != '' && 20 href.match(/\_Accommodation\//) != null || 21 href.match(/\_Hotels\//) !=null || 22 href.match(/\_Ryokan\//) !=null || 23 href.match(/\_Villa\//) !=null || 24 href.match(/\_public-inn\//) !=null || 25 href.match(/\_pension-minshuku-lodge\//) !=null || 26 href.match(/hotel\_reviews\//) !=null || 27 href.match(/hotel\_reviews\/detail\_/) !=null){ 28 $(this).attr('href',href + '&crcyCd=' + sessionStorage.getItem('currency')); 29 } 30 }); 31 } 32} 33 34$(function(){ 35 JALAN.CURRENCY.init(); 36});
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.