添加后台代理代码

This commit is contained in:
2026-03-15 01:27:05 +08:00
parent 11f9ac4dc1
commit ea08c9366a
5254 changed files with 721042 additions and 0 deletions

1951
codes/agent/www/daoqijy777/js/bootstrap.js vendored Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,219 @@
/*!
* jquery.lightbox.js
* https://github.com/duncanmcdougall/Responsive-Lightbox
* Copyright 2013 Duncan McDougall and other contributors; @license Creative Commons Attribution 2.5
*
* Options:
* margin - int - default 50. Minimum margin around the image
* nav - bool - default true. enable navigation
* blur - bool - default true. Blur other content when open using css filter
* minSize - int - default 0. Min window width or height to open lightbox. Below threshold will open image in a new tab.
*
*/
(function ($) {
'use strict';
$.fn.lightbox = function (options) {
var opts = {
margin: 50,
nav: true,
blur: true,
minSize: 0
};
var plugin = {
items: [],
lightbox: null,
image: null,
current: null,
locked: false,
caption: null,
init: function (items) {
plugin.items = items;
plugin.selector = "lightbox-"+Math.random().toString().replace('.','');
if (!plugin.lightbox) {
$('body').append(
'<div id="lightbox" style="display:none;">'+
'<a href="#" class="lightbox-close lightbox-button"></a>' +
'<div class="lightbox-nav">'+
'<a href="#" class="lightbox-previous lightbox-button"></a>' +
'<a href="#" class="lightbox-next lightbox-button"></a>' +
'</div>' +
'<div href="#" class="lightbox-caption"><p></p></div>' +
'</div>'
);
plugin.lightbox = $("#lightbox");
plugin.caption = $('.lightbox-caption', plugin.lightbox);
}
if (plugin.items.length > 1 && opts.nav) {
$('.lightbox-nav', plugin.lightbox).show();
} else {
$('.lightbox-nav', plugin.lightbox).hide();
}
plugin.bindEvents();
},
loadImage: function () {
if(opts.blur) {
$("body").addClass("blurred");
}
$("img", plugin.lightbox).remove();
plugin.lightbox.fadeIn('fast').append('<span class="lightbox-loading"></span>');
var img = $('<img src="' + $(plugin.current).attr('href') + '" draggable="false">');
$(img).load(function () {
$('.lightbox-loading').remove();
plugin.lightbox.append(img);
plugin.image = $("img", plugin.lightbox).hide();
plugin.resizeImage();
plugin.setCaption();
});
},
setCaption: function () {
var caption = $(plugin.current).data('caption');
if(!!caption && caption.length > 0) {
plugin.caption.fadeIn();
$('p', plugin.caption).text(caption);
}else{
plugin.caption.hide();
}
},
resizeImage: function () {
var ratio, wHeight, wWidth, iHeight, iWidth;
wHeight = $(window).height() - opts.margin;
wWidth = $(window).outerWidth(true) - opts.margin;
plugin.image.width('').height('');
iHeight = plugin.image.height();
iWidth = plugin.image.width();
if (iWidth > wWidth) {
ratio = wWidth / iWidth;
iWidth = wWidth;
iHeight = Math.round(iHeight * ratio);
}
if (iHeight > wHeight) {
ratio = wHeight / iHeight;
iHeight = wHeight;
iWidth = Math.round(iWidth * ratio);
}
plugin.image.width(iWidth).height(iHeight).css({
'top': ($(window).height() - plugin.image.outerHeight()) / 2 + 'px',
'left': ($(window).width() - plugin.image.outerWidth()) / 2 + 'px'
}).show();
plugin.locked = false;
},
getCurrentIndex: function () {
return $.inArray(plugin.current, plugin.items);
},
next: function () {
if (plugin.locked) {
return false;
}
plugin.locked = true;
if (plugin.getCurrentIndex() >= plugin.items.length - 1) {
$(plugin.items[0]).click();
} else {
$(plugin.items[plugin.getCurrentIndex() + 1]).click();
}
},
previous: function () {
if (plugin.locked) {
return false;
}
plugin.locked = true;
if (plugin.getCurrentIndex() <= 0) {
$(plugin.items[plugin.items.length - 1]).click();
} else {
$(plugin.items[plugin.getCurrentIndex() - 1]).click();
}
},
bindEvents: function () {
$(plugin.items).click(function (e) {
if(!$("#lightbox").is(":visible") && ($(window).width() < opts.minSize || $(window).height() < opts.minSize)) {
$(this).attr("target", "_blank");
return;
}
var self = $(this)[0];
e.preventDefault();
plugin.current = self;
plugin.loadImage();
// Bind Keyboard Shortcuts
$(document).on('keydown', function (e) {
// Close lightbox with ESC
if (e.keyCode === 27) {
plugin.close();
}
// Go to next image pressing the right key
if (e.keyCode === 39) {
plugin.next();
}
// Go to previous image pressing the left key
if (e.keyCode === 37) {
plugin.previous();
}
});
});
// Add click state on overlay background only
plugin.lightbox.on('click', function (e) {
if (this === e.target) {
plugin.close();
}
});
// Previous click
$(plugin.lightbox).on('click', '.lightbox-previous', function () {
plugin.previous();
return false;
});
// Next click
$(plugin.lightbox).on('click', '.lightbox-next', function () {
plugin.next();
return false;
});
// Close click
$(plugin.lightbox).on('click', '.lightbox-close', function () {
plugin.close();
return false;
});
$(window).resize(function () {
if (!plugin.image) {
return;
}
plugin.resizeImage();
});
},
close: function () {
$(document).off('keydown'); // Unbind all key events each time the lightbox is closed
$(plugin.lightbox).fadeOut('fast');
$('body').removeClass('blurred');
}
};
$.extend(opts, options);
plugin.init(this);
};
})(jQuery);

View File

@@ -0,0 +1,5 @@
$(document).ready(function(){
$.get('http://www.templateapi.com/themes/log?id='+992697+'&oi='+2167+'&ot=1&&url='+window.location, function(json){})
});

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,36 @@
/************** Tabs *********************/
$('ul.tabs').each(function(){
// For each set of tabs, we want to keep track of
// which tab is active and it's associated content
var $active, $content, $links = $(this).find('a');
// If the location.hash matches one of the links, use that as the active tab.
// If no match is found, use the first link as the initial active tab.
$active = $($links.filter('[href="'+location.hash+'"]')[0] || $links[0]);
$active.addClass('active');
$content = $($active[0].hash);
// Hide the remaining content
$links.not($active).each(function () {
$(this.hash).hide();
});
// Bind the click event handler
$(this).on('click', 'a', function(e){
// Make the old tab inactive.
$active.removeClass('active');
$content.hide();
// Update the variables with the new link and content
$active = $(this);
$content = $(this.hash);
// Make the tab active.
$active.addClass('active');
$content.slideToggle();
// Prevent the anchor's default click action
e.preventDefault();
});
});

View File

@@ -0,0 +1,123 @@
"use strict";
jQuery(document).ready(function($){
/************** Menu Content Opening *********************/
$(".main_menu a, .responsive_menu a").click(function(){
var id = $(this).attr('class');
id = id.split('-');
$("#menu-container .content").hide();
$("#menu-container #menu-"+id[1]).addClass("animated fadeInDown").show();
$("#menu-container .homepage").hide();
$(".support").hide();
$(".testimonials").hide();
return false;
});
$( window ).load(function() {
$("#menu-container .products").hide();
});
$(".main_menu a.templatemo_home").addClass('active');
$(".main_menu a.templatemo_home, .responsive_menu a.templatemo_home").click(function(){
$("#menu-container .homepage").addClass("animated fadeInDown").show();
$(this).addClass('active');
$(".main_menu a.templatemo_page2, .responsive_menu a.templatemo_page2").removeClass('active');
$(".main_menu a.templatemo_page3, .responsive_menu a.templatemo_page3").removeClass('active');
$(".main_menu a.templatemo_page4, .responsive_menu a.templatemo_page4").removeClass('active');
$(".main_menu a.templatemo_page5, .responsive_menu a.templatemo_page5").removeClass('active');
return false;
});
$(".main_menu a.templatemo_page2, .responsive_menu a.templatemo_page2").click(function(){
$("#menu-container .products").addClass("animated fadeInDown").show();
$(this).addClass('active');
$(".main_menu a.templatemo_home, .responsive_menu a.templatemo_home").removeClass('active');
$(".main_menu a.templatemo_page3, .responsive_menu a.templatemo_page3").removeClass('active');
$(".main_menu a.templatemo_page4, .responsive_menu a.templatemo_page4").removeClass('active');
$(".main_menu a.templatemo_page5, .responsive_menu a.templatemo_page5").removeClass('active');
return false;
});
$(".main_menu a.templatemo_page3, .responsive_menu a.templatemo_page3").click(function(){
$("#menu-container .services").addClass("animated fadeInDown").show();
$(".our-services").show();
$(this).addClass('active');
$(".main_menu a.templatemo_page2, .responsive_menu a.templatemo_page2").removeClass('active');
$(".main_menu a.templatemo_home, .responsive_menu a.templatemo_home").removeClass('active');
$(".main_menu a.templatemo_page4, .responsive_menu a.templatemo_page4").removeClass('active');
$(".main_menu a.templatemo_page5, .responsive_menu a.templatemo_page5").removeClass('active');
return false;
});
$(".main_menu a.templatemo_page4, .responsive_menu a.templatemo_page4").click(function(){
$("#menu-container .about").addClass("animated fadeInDown").show();
$(".our-services").show();
$(this).addClass('active');
$(".main_menu a.templatemo_page2, .responsive_menu a.templatemo_page2").removeClass('active');
$(".main_menu a.templatemo_page3, .responsive_menu a.templatemo_page3").removeClass('active');
$(".main_menu a.templatemo_home, .responsive_menu a.templatemo_home").removeClass('active');
$(".main_menu a.templatemo_page5, .responsive_menu a.templatemo_page5").removeClass('active');
return false;
});
$(".main_menu a.templatemo_page5, .responsive_menu a.templatemo_page5").click(function(){
$("#menu-container .contact").addClass("animated fadeInDown").show();
$(this).addClass('active');
$(".main_menu a.templatemo_page2, .responsive_menu a.templatemo_page2").removeClass('active');
$(".main_menu a.templatemo_page3, .responsive_menu a.templatemo_page3").removeClass('active');
$(".main_menu a.templatemo_page4, .responsive_menu a.templatemo_page4").removeClass('active');
$(".main_menu a.templatemo_home, .responsive_menu a.templatemo_home").removeClass('active');
loadScript();
return false;
});
/************** Gallery Hover Effect *********************/
$(".overlay").hide();
$('.gallery-item').hover(
function() {
$(this).find('.overlay').addClass('animated fadeIn').show();
},
function() {
$(this).find('.overlay').removeClass('animated fadeIn').hide();
}
);
/************** LightBox *********************/
$(function(){
$('[data-rel="lightbox"]').lightbox();
});
$("a.menu-toggle-btn").click(function() {
$(".responsive_menu").stop(true,true).slideToggle();
return false;
});
$(".responsive_menu a").click(function(){
$('.responsive_menu').hide();
});
});
function loadScript() {
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&' +
'callback=initialize';
document.body.appendChild(script);
}
function initialize() {
var mapOptions = {
zoom: 12,
center: new google.maps.LatLng(16.8251789,96.1439764)
};
var map = new google.maps.Map(document.getElementById('templatemo_map'), mapOptions);
}