Account manager initial commit.
Contributed by Liamxroy.
This commit is contained in:
23
Account_Manager/js/scripts.js
Normal file
23
Account_Manager/js/scripts.js
Normal file
@ -0,0 +1,23 @@
|
||||
$(window).on('load', function() {
|
||||
"use strict";
|
||||
});
|
||||
var $document = $(document);
|
||||
$document.ready(function() {
|
||||
$document.on('click', '.stat-1', function(e) {
|
||||
e.preventDefault();
|
||||
var statLink = $(this).attr('data-target');
|
||||
window.location = statLink;
|
||||
});
|
||||
$document.on('click', '.stat-2', function(e) {
|
||||
e.preventDefault();
|
||||
var statLinkS = $(this).attr('data-target');
|
||||
window.location = statLinkS;
|
||||
});
|
||||
$document.on('click', '.langs > a', function(e) {
|
||||
$.cookie('lang', $(this).data('lang'), {
|
||||
expires: 365,
|
||||
path: '/'
|
||||
});
|
||||
location.reload();
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user