PageSourceSearch

https://mobo.co.uk/news/wp-content/themes/jumpstart/style/js/wp-scripts.js?ver=1.0.10

js mobo.co.uk collected 2026-09-26 05:39:45 UTC 3,731 bytes, 124 lines download raw bytes

1window.addEventListener("load", function () {
2  document.querySelector('body').classList.add('loaded');
3});
4
5jQuery(document).ready(function(){
6	"use strict";
7	
8	jQuery( 'footer select' ).addClass( 'custom-select' ).wrap( '<div class="form-group" />' );
9	
10	jQuery( '.wp-block-embed__wrapper' ).fitVids();
11	
12	// Quick Form Styling
13	jQuery( 'input, textarea' ).not( 'input[type="submit"]' ).not( 'input[type="checkbox"]' ).addClass( 'form-control' );
14	jQuery( 'input[type="submit"]:not([class])' ).addClass( 'btn btn-primary' );
15
16	//Login form
17	jQuery('#loginform input').each(function(){
18		
19		var $this = jQuery(this);
20		
21		if( 'user_pass' == $this.attr('id') || 'user_login' == $this.attr('id') ){
22			$this.attr('placeholder', $this.prev().text());
23		}
24		
25	});
26	
27	jQuery( 'blockquote' ).addClass( 'blockquote' );
28
29	jQuery('section.elementor-element .decoration-wrapper-block:first-of-type').each(function(){
30		jQuery(this).closest('section.elementor-section:not(.elementor-inner-section)').find('.elementor-element:not(.elementor-widget-tommusrhodus-decorations-block)').addClass('layer-2');
31		jQuery(this).closest('section.elementor-section').addClass('o-hidden').append(this);
32		jQuery(this).appendTo(jQuery(this).closest('section.elementor-section:not(.elementor-inner-section)') );
33	});
34
35	jQuery('.decoration-block').each(function(){
36		jQuery(this).unwrap();
37		jQuery(this).closest('.elementor-element').siblings().addClass('layer-2');		
38		jQuery(this).appendTo(jQuery(this).closest('.elementor-column-wrap') );
39	});
40
41	jQuery('.job_filters .search_jobs input').each(function(){
42		jQuery(this).addClass('form-control');
43	});
44
45	jQuery('.custom-select').after('<svg class="icon icon-sm" width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.416 14.376C12.2181 14.6728 11.7819 14.6728 11.584 14.376L8.51823 9.77735C8.29672 9.44507 8.53491 9 8.93426 9L15.0657 9C15.4651 9 15.7033 9.44507 15.4818 9.77735L12.416 14.376Z" fill="#2C3038"/></svg>');
46 
47  	jQuery('body').on('click', 'a[href*=#]', function() {
48	    var modalID = jQuery(this).attr('href');
49	    if ( jQuery(modalID + '.modal').length > 0 ) {
50		    jQuery(modalID).modal({show: true});
51		}
52	});
53	
54	/**
55	 * Handle documentation upvoting.
56	 */
57	jQuery('body').on('click', '.btn-upvote', function(e){
58
59		e.preventDefault();
60		
61		let $this = jQuery(this);
62		
63		if( $this.hasClass('disabled') ){
64			return false;
65		}
66		
67		jQuery.ajax({
68			type: "POST",
69			url: jumpstart_data.ajax_url,
70			data: {
71				action: 'tommusrhodus_update_docs_upvotes',
72				docs_id: $this.attr('data-id'),
73				nonce: jumpstart_data.ajax_nonce
74			},
75			error: function( response ) {
76				 console.log( response );
77			},
78			success: function( response ) {
79				jQuery( '[data-js-upvote-count]' ).attr( 'data-js-upvote-count', response ).text( response );
80				$this.addClass( 'disabled' );
81			}
82		});
83		
84	});
85	
86	/**
87	 * Handle documentation downvoting.
88	 */
89	jQuery('body').on('click', '.btn-downvote', function(e){
90
91		e.preventDefault();
92		
93		let $this = jQuery(this);
94		
95		if( $this.hasClass('disabled') ){
96			return false;
97		}
98		
99		jQuery.ajax({
100			type: "POST",
101			url: jumpstart_data.ajax_url,
102			data: {
103				action: 'tommusrhodus_update_docs_downvotes',
104				docs_id: $this.attr('data-id'),
105				nonce: jumpstart_data.ajax_nonce
106			},
107			error: function( response ) {
108				 console.log( response );
109			},
110			success: function( response ) {
111				jQuery( '[data-js-downvote-count]' ).attr( 'data-js-downvote-count', response ).text( response );
112				$this.addClass( 'disabled' );
113			}
114		});
115		
116	});
117	
118});
119
120jQuery(window).bind("pageshow", function(event) {
121    if (event.originalEvent.persisted) {
122        jQuery( 'body' ).removeClass( 'fade-page' );
123    }
124});

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.