PageSourceSearch

https://www.gfa.se/content/js/common.js?v=1688650942

js gfa.se collected 2026-10-08 03:18:52 UTC 2,648 bytes, 81 lines download raw bytes

1// --------------------------------------------------------------------------------------------- //
2Bliss.UpdateQueryString = function( uri, key, value ) {
3	var re = new RegExp( "([?&])" + key + "=.*?(&|$)", "i" );
4	var separator = uri.indexOf('?') !== -1 ? "&" : "?";
5	if( uri.match(re) ) {
6		return uri.replace( re, '$1' + key + "=" + value + '$2' );
7		
8	} else {
9		return uri + separator + key + "=" + value;
10		
11	}
12};
13
14// --------------------------------------------------------------------------------------------- //
15Bliss.GetQueryString = function( sParam ) {
16	var sPageURL		= window.location.search.substring(1);
17	var sURLVariables	= sPageURL.split('&');
18	for( var i = 0; i < sURLVariables.length; i++ ) {
19		var sParameterName = sURLVariables[i].split('=');
20		if( sParameterName[0] == sParam ) {
21			return sParameterName[1];
22		}
23	}
24	return null;
25}
26
27// --------------------------------------------------------------------------------------------- //
28jQuery.fn.exists = function() {
29	return this.length > 0;
30};
31
32// --------------------------------------------------------------------------------------------- //
33Bliss.ShowLoading = function(){
34	var markup ='<div class="fancybox-loading" style="position:fixed;z-index:90000;top:50%;color: #63ad31;width:100%;text-align:center;"><i class="fa fa-circle-o-notch fa-spin" style="font-size:62px"></i></div>';
35	$("body").append(markup);
36}
37
38// --------------------------------------------------------------------------------------------- //
39Bliss.HideLoading = function(){
40	$(".fancybox-loading").slideDown().remove();
41}
42/* --------------------------------------------------------------------------------------------- */
43$.fn.sortSelect = function( )
44{
45	var list = $(this);
46	if( !list.length ) {
47		return false;
48	}
49	var options = $("option", list);
50	var selected = list.val();
51	
52	options.sort(function(a,b) {
53	    if (a.text.toUpperCase() > b.text.toUpperCase()) return 1;
54	    else if (a.text.toUpperCase() < b.text.toUpperCase()) return -1;
55	    else return 0
56	})
57
58	list.empty().append( options );
59	list.val(selected);
60};
61
62/* --------------------------------------------------------------------------------------------- */
63$.fn.serializeObject = function()
64{
65   var o = {};
66   var a = this.serializeArray();
67   $.each(a, function() {
68       if (o[this.name]) {
69           if (!o[this.name].push) {
70               o[this.name] = [o[this.name]];
71           }
72           o[this.name].push(this.value || '');
73       } else {
74           o[this.name] = this.value || '';
75       }
76   });
77   return o;
78};
79
80
81// --------------------------------------------------------------------------------------------- //

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.