PageSourceSearch

https://childrightsmanifesto.eu/wp-content/plugins/themographics_core/js/functions.js?ver=7.1.2

js childrightsmanifesto.eu collected 2026-10-03 20:39:37 UTC 9,389 bytes, 117 lines download raw bytes

1"use strict";
2jQuery(document).ready(function (e) {
3	
4	/*
5	 * @Contact Form
6	 * @return{}
7	*/
8	jQuery('.contact_wrap').on('click','.contact_now',function(e){
9		e.preventDefault();
10		var $this 	= jQuery(this);
11		
12		var success	= $this.parents('.contact_form').find('.form-data').data('success');
13		var error	= $this.parents('.contact_form').find('.form-data').data('error');
14		var email	= $this.parents('.contact_form').find('.form-data').data('email');
15		
16		var serialize_data	= $this.parents('.contact_wrap').find('.contact_form').serialize();
17		var dataString = serialize_data+'&success='+success+'&error='+error+'&email='+email+'&action=child_guardian_submit_contact';
18		
19		$this.parents('.contact_wrap').find('.message_contact').html('').hide();
20		$this.parents('form').append("<i class='fa fa-refresh fa-spin'></i>");
21		$this.parents('.contact_wrap').find('.message_contact').removeClass('alert-success');
22		$this.parents('.contact_wrap').find('.message_contact').removeClass('alert-danger');
23
24		jQuery.ajax({
25			type: "POST",
26			url: scripts_vars.ajaxurl,
27			data: dataString,
28			dataType:"json",
29			success: function(response) {
30				$this.parents('form').find('i').remove();
31				jQuery('.message_contact').show();
32				if( response.type == 'error' ) {
33					$this.parents('.contact_wrap').find('.message_contact').addClass('alert alert-danger').show();
34					$this.parents('.contact_wrap').find('.message_contact').html(response.message);
35				} else{
36					$this.parents('.contact_wrap').find('.contact_form').get(0).reset();
37					$this.parents('.contact_wrap').find('.message_contact').addClass('alert alert-success').show();
38					$this.parents('.contact_wrap').find('.message_contact').html(response.message);
39				}
40			}
41		});
42		
43		return false;
44		
45	});
46	
47	
48	
49
50});
51
52/*
53 * @Add Vlueprint Image
54 * @return{}
55*/
56function add_blueprint(){
57	jQuery('.blueprint-loading').html("<i class='fa fa-refresh fa-spin'></i>");
58	var $this = jQuery(this);
59	var fd = new FormData();
60	var file_data = fd.append('user_blueprint', jQuery('input[type=file]')[0].files[0]); 
61	var other_data = jQuery('#form_blueprint').serializeArray();
62		
63	jQuery.each(other_data,function(key,input){
64		fd.append(input.name,input.value);
65	});
66
67	jQuery.ajax({
68		url: scripts_vars.ajaxurl,
69		data: fd,
70		contentType: false,
71		processData: false,
72		dataType : "json",
73		type: 'POST',
74		success: function(response){
75			jQuery('.blueprint_image').html(response.src).show();
76			jQuery(".bok_attachment").val(response.file);
77		}
78	});
79}
80
81/*
82 * @get absolute path
83 * @return{}
84*/
85function getAbsolutePath() {
86    var loc = window.location;
87    var pathName = loc.pathname.substring(0, loc.pathname.lastIndexOf('/') + 1);
88    return loc.href.substring(0, loc.href.length - ((loc.pathname + loc.search + loc.hash).length - pathName.length));
89}
90
91
92/* -------------------------------------
93 Map Styles
94 -------------------------------------- */
95function child_guardian_get_map_styles(style){
96		
97	var styles = '';
98	if(style == 'view_1'){
99		var styles = [{"featureType":"administrative.country","elementType":"geometry","stylers":[{"visibility":"simplified"},{"hue":"#ff0000"}]}];
100	}else if(style == 'view_2'){
101		var styles = [{"featureType":"water","elementType":"all","stylers":[{"hue":"#7fc8ed"},{"saturation":55},{"lightness":-6},{"visibility":"on"}]},{"featureType":"water","elementType":"labels","stylers":[{"hue":"#7fc8ed"},{"saturation":55},{"lightness":-6},{"visibility":"off"}]},{"featureType":"poi.park","elementType":"geometry","stylers":[{"hue":"#83cead"},{"saturation":1},{"lightness":-15},{"visibility":"on"}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"hue":"#f3f4f4"},{"saturation":-84},{"lightness":59},{"visibility":"on"}]},{"featureType":"landscape","elementType":"labels","stylers":[{"hue":"#ffffff"},{"saturation":-100},{"lightness":100},{"visibility":"off"}]},{"featureType":"road","elementType":"geometry","stylers":[{"hue":"#ffffff"},{"saturation":-100},{"lightness":100},{"visibility":"on"}]},{"featureType":"road","elementType":"labels","stylers":[{"hue":"#bbbbbb"},{"saturation":-100},{"lightness":26},{"visibility":"on"}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"hue":"#ffcc00"},{"saturation":100},{"lightness":-35},{"visibility":"simplified"}]},{"featureType":"road.highway","elementType":"geometry","stylers":[{"hue":"#ffcc00"},{"saturation":100},{"lightness":-22},{"visibility":"on"}]},{"featureType":"poi.school","elementType":"all","stylers":[{"hue":"#d7e4e4"},{"saturation":-60},{"lightness":23},{"visibility":"on"}]}];
102	}else if(style == 'view_3'){
103		var styles = [{"featureType":"water","stylers":[{"saturation":43},{"lightness":-11},{"hue":"#0088ff"}]},{"featureType":"road","elementType":"geometry.fill","stylers":[{"hue":"#ff0000"},{"saturation":-100},{"lightness":99}]},{"featureType":"road","elementType":"geometry.stroke","stylers":[{"color":"#808080"},{"lightness":54}]},{"featureType":"landscape.man_made","elementType":"geometry.fill","stylers":[{"color":"#ece2d9"}]},{"featureType":"poi.park","elementType":"geometry.fill","stylers":[{"color":"#ccdca1"}]},{"featureType":"road","elementType":"labels.text.fill","stylers":[{"color":"#767676"}]},{"featureType":"road","elementType":"labels.text.stroke","stylers":[{"color":"#ffffff"}]},{"featureType":"poi","stylers":[{"visibility":"off"}]},{"featureType":"landscape.natural","elementType":"geometry.fill","stylers":[{"visibility":"on"},{"color":"#b8cb93"}]},{"featureType":"poi.park","stylers":[{"visibility":"on"}]},{"featureType":"poi.sports_complex","stylers":[{"visibility":"on"}]},{"featureType":"poi.medical","stylers":[{"visibility":"on"}]},{"featureType":"poi.business","stylers":[{"visibility":"simplified"}]}];
104	
105	}else if(style == 'view_4'){
106		var styles = [{"elementType":"geometry","stylers":[{"hue":"#ff4400"},{"saturation":-68},{"lightness":-4},{"gamma":0.72}]},{"featureType":"road","elementType":"labels.icon"},{"featureType":"landscape.man_made","elementType":"geometry","stylers":[{"hue":"#0077ff"},{"gamma":3.1}]},{"featureType":"water","stylers":[{"hue":"#00ccff"},{"gamma":0.44},{"saturation":-33}]},{"featureType":"poi.park","stylers":[{"hue":"#44ff00"},{"saturation":-23}]},{"featureType":"water","elementType":"labels.text.fill","stylers":[{"hue":"#007fff"},{"gamma":0.77},{"saturation":65},{"lightness":99}]},{"featureType":"water","elementType":"labels.text.stroke","stylers":[{"gamma":0.11},{"weight":5.6},{"saturation":99},{"hue":"#0091ff"},{"lightness":-86}]},{"featureType":"transit.line","elementType":"geometry","stylers":[{"lightness":-48},{"hue":"#ff5e00"},{"gamma":1.2},{"saturation":-23}]},{"featureType":"transit","elementType":"labels.text.stroke","stylers":[{"saturation":-64},{"hue":"#ff9100"},{"lightness":16},{"gamma":0.47},{"weight":2.7}]}];
107	
108	}else if(style == 'view_5'){
109		var styles = [{"featureType":"water","elementType":"geometry","stylers":[{"color":"#e9e9e9"},{"lightness":17}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#f5f5f5"},{"lightness":20}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#ffffff"},{"lightness":17}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#ffffff"},{"lightness":29},{"weight":0.2}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#ffffff"},{"lightness":18}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#ffffff"},{"lightness":16}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#f5f5f5"},{"lightness":21}]},{"featureType":"poi.park","elementType":"geometry","stylers":[{"color":"#dedede"},{"lightness":21}]},{"elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#ffffff"},{"lightness":16}]},{"elementType":"labels.text.fill","stylers":[{"saturation":36},{"color":"#333333"},{"lightness":40}]},{"elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"geometry","stylers":[{"color":"#f2f2f2"},{"lightness":19}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#fefefe"},{"lightness":20}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#fefefe"},{"lightness":17},{"weight":1.2}]}];
110	
111	}else if(style == 'view_6'){
112		var styles = [{"featureType":"landscape","stylers":[{"hue":"#FFBB00"},{"saturation":43.400000000000006},{"lightness":37.599999999999994},{"gamma":1}]},{"featureType":"road.highway","stylers":[{"hue":"#FFC200"},{"saturation":-61.8},{"lightness":45.599999999999994},{"gamma":1}]},{"featureType":"road.arterial","stylers":[{"hue":"#FF0300"},{"saturation":-100},{"lightness":51.19999999999999},{"gamma":1}]},{"featureType":"road.local","stylers":[{"hue":"#FF0300"},{"saturation":-100},{"lightness":52},{"gamma":1}]},{"featureType":"water","stylers":[{"hue":"#0078FF"},{"saturation":-13.200000000000003},{"lightness":2.4000000000000057},{"gamma":1}]},{"featureType":"poi","stylers":[{"hue":"#00FF6A"},{"saturation":-1.0989010989011234},{"lightness":11.200000000000017},{"gamma":1}]}];
113	} else{
114		var styles = [{"featureType":"administrative.country","elementType":"geometry","stylers":[{"visibility":"simplified"},{"hue":"#ff0000"}]}];
115	}
116	return styles;
117}

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.