PageSourceSearch

https://dai-labor.de/wp-content/plugins/power-builder/framework/assets/js/tm-hash.js?ver=1.4.0

js dai-labor.de collected 2026-10-02 08:17:32 UTC 2,224 bytes, 73 lines download raw bytes

1var tm_hash_module_seperator = '||',
2  tm_hash_module_param_seperator = '|';
3
4function process_tm_hashchange( hash ) {
5  if ( ( hash.indexOf( tm_hash_module_seperator, 0 ) ) !== -1 ) {
6    modules = hash.split( tm_hash_module_seperator );
7    for ( var i = 0; i < modules.length; i++ ) {
8      var module_params = modules[i].split( tm_hash_module_param_seperator );
9      var element = module_params[0];
10      module_params.shift();
11      if ( $('#' + element ).length ) {
12        $('#' + element ).trigger({
13          type: "tm_hashchange",
14          params: module_params
15        });
16      }
17    }
18  } else {
19    module_params = hash.split( tm_hash_module_param_seperator );
20    var element = module_params[0];
21    module_params.shift();
22    if ( $('#' + element ).length ) {
23      $('#' + element ).trigger({
24        type: "tm_hashchange",
25        params: module_params
26      });
27    }
28  }
29}
30
31function tm_set_hash( module_state_hash ) {
32  module_id = module_state_hash.split( tm_hash_module_param_seperator )[0];
33  if ( !$('#' + module_id ).length ) {
34    return;
35  }
36
37  if ( window.location.hash ) {
38    var hash = window.location.hash.substring(1), //Puts hash in variable, and removes the # character
39      new_hash = [];
40
41    if ( ( hash.indexOf( tm_hash_module_seperator, 0 ) ) !== -1 ) {
42      modules = hash.split( tm_hash_module_seperator );
43      var in_hash = false;
44      for ( var i = 0; i < modules.length; i++ ) {
45        var element = modules[i].split( tm_hash_module_param_seperator )[0];
46        if ( element === module_id ) {
47          new_hash.push( module_state_hash );
48          in_hash = true;
49        } else {
50          new_hash.push( modules[i] );
51        }
52      }
53      if ( !in_hash ) {
54        new_hash.push( module_state_hash );
55      }
56    } else {
57      module_params = hash.split( tm_hash_module_param_seperator );
58      var element = module_params[0];
59      if ( element !== module_id ) {
60        new_hash.push( hash );
61      }
62      new_hash.push( module_state_hash );
63    }
64
65    hash = new_hash.join( tm_hash_module_seperator );
66  } else {
67    hash = module_state_hash;
68  }
69
70  var yScroll = document.body.scrollTop;
71  window.location.hash = hash;
72  document.body.scrollTop = yScroll;
73}

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.