1let myCommon; 2 3$(function(){ 4 myCommon = new Common(); 5}); 6window.onpageshow = function(event) { 7 if (event.persisted) { 8 $('.loading').css('display', 'block'); 9 } 10}; 11 12/***** ***** ***** floorã®æ¤ç´¢ ***** ***** *****/ 13let Common = function Common(){ 14 let _this = this; 15}; 16$(document).on("click", function (event) { 17 // ã¯ãªãã¯ããè¦ç´ ã対象è¦ç´ ã§ã¯ãªãå ´åã«ã®ã¿é表示ã«ãã 18 if (!$(event.target).closest(".list-features__contents, .list-features__heading--open").length) { 19 $(".list-features__heading--open").trigger("click"); // 対象è¦ç´ ãé表示ã«ãã 20 } 21}); 22 23Common.prototype = { 24 25 /**** floorã®è£½å ****/ 26 /** floorã®dataãçºãã¦æ´æ°ãã **/ 27 checkup:function () { 28 var insertarray = []; 29 var updatatarray = []; 30 var deletedarray = []; 31 //ãã¹ã¦ã®ãã§ãã¯æ¸ã¿valueå¤ãåå¾ãã 32 $('input[name="insert"]:checked').each(function() { 33 var r = $(this).val(); 34 insertarray.push(r) 35 }); 36 $('input[name="updata"]:checked').each(function() { 37 var r = $(this).val(); 38 updatatarray.push(r) 39 }); 40 $('input[name="deleted"]:checked').each(function() { 41 var r = $(this).val(); 42 deletedarray.push(r) 43 }); 44 var type = $('input[name="type"]').val(); 45 $.ajax({
46 method: "POST", 47 async: true, 48 url: base_url + "update/ajax_check_updata", 49 cache: false, 50 data: { 51 'insert': insertarray, 52 'updata': updatatarray, 53 'deleted': deletedarray, 54 'type': type, 55 }, 56 }).done(function (data) { 57 location.reload(); 58 }).fail(function () { 59 alert('失æ'); 60 }); 61 }, 62 63 /** floorã®dataãinsetãã **/ 64 insertproducts:function (id) { 65 var type = $('input[name="type"]').val(); 66 $.ajax({ 67 method: "POST", 68 async: true, 69 url: base_url + "update/ajax_insert_products", 70 cache: false, 71 data: { 72 'products_id': id, 73 'type': type, 74 }, 75 }).done(function (data) { 76 location.reload(); 77 }).fail(function () { 78 alert('失æ'); 79 }); 80 }, 81 82 /** floorã®dataãupãã **/ 83 updataproducts:function(id) { 84 var type = $('input[name="type"]').val(); 85 $.ajax({
86 method: "POST", 87 async : true, 88 url: base_url+"update/ajax_updata_products", 89 cache: false, 90 data : { 91 'products_id':id, 92 'type': type, 93 }, 94 }).done(function (data) { 95 location.reload(); 96 }).fail(function () { 97 alert('失æ'); 98 }); 99 }, 100 101 /** floorã®dataãdeletedãã **/ 102 deletedproducts:function (id) { 103 var type = $('input[name="type"]').val(); 104 $.ajax({ 105 method: "POST", 106 async : true, 107 url: base_url+"update/ajax_deleted_products", 108 cache: false, 109 data : { 110 'id':id, 111 'type': type, 112 }, 113 }).done(function (data) { 114 location.reload(); 115 }).fail(function () { 116 alert('失æ'); 117 }); 118 }, 119 120 /**** floorã®åçª ****/ 121 /** floorã®dataãçºãã¦æ´æ°ãã **/ 122 checknum:function () { 123 var insertarray = []; 124 var updatatarray = []; 125 var deletedarray = []; 126 //ãã¹ã¦ã®ãã§ãã¯æ¸ã¿valueå¤ãåå¾ãã 127 $('input[name="insert"]:checked').each(function() { 128 var r = $(this).val(); 129 insertarray.push(r) 130 }); 131 $('input[name="updata"]:checked').each(function() { 132 var r = $(this).val(); 133 updatatarray.push(r) 134 }); 135 $('input[name="deleted"]:checked').each(function() { 136 var r = $(this).val(); 137 deletedarray.push(r) 138 }); 139 var type = $('input[name="type"]').val(); 140 $.ajax({
141 method: "POST", 142 async: true, 143 url: base_url + "update/ajax_check_num", 144 cache: false, 145 data: { 146 'insert': insertarray, 147 'updata': updatatarray, 148 'deleted': deletedarray, 149 'type': type, 150 }, 151 }).done(function (data) { 152 location.reload(); 153 }).fail(function () { 154 alert('失æ'); 155 }); 156 }, 157 /** floorã®dataãinsetãã **/ 158 insertnumbers:function(id) { 159 var type = $('input[name="type"]').val(); 160 $.ajax({ 161 method: "POST", 162 async : true, 163 url: base_url+"update/ajax_insert_numbers", 164 cache: false, 165 data : { 166 'id':id, 167 'type': type, 168 }, 169 }).done(function (data) { 170 location.reload(); 171 }).fail(function () { 172 alert('失æ'); 173 }); 174 }, 175 176 /** floorã®dataãupãã **/ 177 updatanumbers:function(id) { 178 var type = $('input[name="type"]').val(); 179 $.ajax({
180 method: "POST", 181 async : true, 182 url: base_url+"update/ajax_updata_numbers", 183 cache: false, 184 data : { 185 'id':id, 186 'type': type, 187 }, 188 }).done(function (data) { 189 location.reload(); 190 }).fail(function () { 191 alert('失æ'); 192 }); 193 }, 194 195 /** floorã®dataãdeletedãã **/ 196 deletednumbers:function(id) { 197 var type = $('input[name="type"]').val(); 198 $.ajax({ 199 method: "POST", 200 async : true, 201 url: base_url+"update/ajax_deleted_numbers", 202 cache: false, 203 data : { 204 'id':id, 205 'type': type, 206 }, 207 }).done(function (data) { 208 location.reload(); 209 }).fail(function () { 210 alert('失æ'); 211 }); 212 }, 213 214 /***** ***** ***** ***** ããããæ¤ç´¢ãã¼ã¸ ***** ***** ***** *****/ 215 loadingShow:function() { 216 $('.loading').css('display', 'block'); 217 }, 218}; 219 220/* ç»åãåãæ¿ããéã«ååãåãæ¿ãã */ 221$('.image-name-text a').click(function(){ 222 $('.image-name').text($(this).attr('image-name')); 223}); 224 225$('.stock_none').click(function(){ 226 $('.stock').css('display', 'none'); 227}); 228$('.stock_view').click(function(){ 229 $('.stock').css('display', 'inline-block'); 230}); 231 232 233 234/* ãã¸ã¿ã«ãã㯠*/ 235$('.digital_view').click(function(){ 236 $('.digital_bg').css('display', 'block'); 237 $('.digital_modal').css('display', 'block'); 238}); 239$('.digital_bg').click(function(){ 240 $('.digital_bg').css('display', 'none'); 241 $('.digital_modal').css('display', 'none'); 242}); 243$('.close_btn').click(function(){ 244 $('.digital_bg').css('display', 'none'); 245 $('.digital_modal').css('display', 'none'); 246}); 247
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.