PageSourceSearch

https://www.samaterials.es/js/collapsible-text.js?v=1788571303

js samaterials.es collected 2026-10-02 20:47:22 UTC 742 bytes, 24 lines download raw bytes

1$(function () {
2  let firstTabTitle = ''
3
4  var $tabs = $('.pdf-tabs .pdf-tabs-header .pdf-tab')
5  var $panels = $('.pdf-tabs .pdf-tabs-content .pdf-panel')
6
7  if ($tabs.length > 0) {
8    $tabs.removeClass('active').first().addClass('active')
9    $panels.removeClass('active').first().addClass('active')
10    // 获取第一个data-tab
11    firstTabTitle = $tabs.first().data('tab')
12    $('.collapsible-title').text(firstTabTitle)
13  }
14
15  $tabs.click(function () {
16    var target = $(this).data('tab')
17    firstTabTitle = target
18    $('.collapsible-title').text(firstTabTitle)
19    $tabs.removeClass('active')
20    $(this).addClass('active')
21    $panels.removeClass('active')
22    $('#' + target).addClass('active')
23  })
24})

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.