PageSourceSearch

https://www.ntccthailand.org/sites/default/files/js/optimized/js_D…-K3LBg2cFm4QQo0JpqroYxn-QuXuxx0.js?v=10.5.4

js ntccthailand.org collected 2026-09-25 00:09:06 UTC 1,857 bytes, 3 lines download raw bytes

1/* Source and licensing information for the line(s) below can be found at https://www.ntccthailand.org/modules/contrib/webform/js/webform.element.details.save.js. */
2(function($,Drupal,once){'use strict';var hasLocalStorage=(function(){try{localStorage.setItem('webform','webform');localStorage.removeItem('webform');return true}catch(e){return false}}());Drupal.behaviors.webformDetailsSave={attach:function(context){if(!hasLocalStorage)return;$(once('webform-details-summary-save','details > summary',context)).on('click',function(){var $details=$(this).parent();if($details[0].hasAttribute('data-webform-details-nosave'))return;var name=Drupal.webformDetailsSaveGetName($details);if(!name)return;var open=($details.attr('open')!=='open')?'1':'0';localStorage.setItem(name,open)});$(once('webform-details-save','details',context)).each(function(){var $details=$(this),name=Drupal.webformDetailsSaveGetName($details);if(!name)return;var open=localStorage.getItem(name);if(open===null)return;if(open==='1'){$details.attr('open','open')}else $details.removeAttr('open')})}};Drupal.webformDetailsSaveGetName=function($details){if(!hasLocalStorage)return'';if($details.hasClass('vertical-tabs__pane'))return'';var webformId=$details.attr('data-webform-element-id');if(webformId)return'Drupal.webform.'+webformId.replace('--','.');var detailsId=$details.attr('id');if(!detailsId)return'';var $form=$details.parents('form');if(!$form.length||!$form.attr('id'))return'';var formId=$form.attr('id');if(!formId)return'';formId=formId.replace(/--.+?$/,'').replace(/-/g,'_');detailsId=detailsId.replace(/--.+?$/,'').replace(/-/g,'_');return'Drupal.webform.'+formId+'.'+detailsId}})(jQuery,Drupal,once)
3/* Source and licensing information for the above line(s) can be found at https://www.ntccthailand.org/modules/contrib/webform/js/webform.element.details.save.js. */

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.