PageSourceSearch

https://www.fremontmazda.com/v9/media/js/ddc/v1/modules/googleplusone.js

js fremontmazda.com collected 2026-09-24 12:20:37 UTC 1,210 bytes, 39 lines download raw bytes

1/*jslint regexp: true, browser: true, confusion: true, sloppy: true, white: true, forin: true, nomen: true, plusplus: true, maxerr: 50, indent: 4 */
2(function () {
3	var window = this,
4		$ = window.jQuery,
5		DDC = (window.DDC = (window.DDC || {}));
6		
7	DDC.modules.googlePlusOne.refresh = function () {
8		var gapi = window.gapi;
9		$(DDC.modules.googlePlusOne.selector).not('google-plus-one-initialized').each(function () {
10			$(this).addClass('google-plus-one-initialized');
11			var data = $.getDataAttributes(this)
12			data.callback = 'googlePlusOne_callback';
13			gapi.plusone.render(this, data);
14		});
15	};
16}());
17
18// Google PlusOne callback must be in the global namespace
19// https://developers.google.com/+/plugins/+1button/
20function googlePlusOne_callback(result){
21	var state;
22	
23	if ( result.state == 'on' ) {
24		state = 'plus one';
25	} else if ( result.state == 'off' ) {
26		state = 'minus one';
27	}
28	
29	var data = {
30		network: 'google',
31		socialAction: state,
32		opt_target: ''	// TODO:  allow for this to be a custom title, specified in the markup
33	};
34	data.opt_pagePath = document.location.pathname+document.location.search;
35
36	if (state && state !== '') {
37		$(document).trigger('trackSocialEvent', [data]);
38	}
39}

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.