function
This commit is contained in:
parent
11e9b33781
commit
edc3c6834c
|
@ -82,9 +82,9 @@ Core.prototype.init = function() {
|
||||||
|
|
||||||
//Incase were too fast
|
//Incase were too fast
|
||||||
function gwDefer() {
|
function gwDefer() {
|
||||||
console.log(new Date.getTime() + " Defer");
|
console.log(new Date().getTime() + " Defer");
|
||||||
if($(".guilds-wrapper").size() > 0) {
|
if($(".guilds-wrapper").size() > 0) {
|
||||||
console.log(new Date.getTime() + " Defer Loaded");
|
console.log(new Date().getTime() + " Defer Loaded");
|
||||||
var guilds = $(".guilds li:first-child");
|
var guilds = $(".guilds li:first-child");
|
||||||
|
|
||||||
guilds.after($("<li></li>", { id: "bd-pub-li", css: { "height": "20px", "display": settingsCookie["bda-gs-1"] == true ? "" : "none" } }).append($("<div/>", { class: "guild-inner", css: { "height": "20px", "border-radius": "4px" } }).append($("<a/>").append($("<div/>", { css: { "line-height": "20px", "font-size": "12px" }, text: "public", id: "bd-pub-button" })))));
|
guilds.after($("<li></li>", { id: "bd-pub-li", css: { "height": "20px", "display": settingsCookie["bda-gs-1"] == true ? "" : "none" } }).append($("<div/>", { class: "guild-inner", css: { "height": "20px", "border-radius": "4px" } }).append($("<a/>").append($("<div/>", { css: { "line-height": "20px", "font-size": "12px" }, text: "public", id: "bd-pub-button" })))));
|
||||||
|
@ -110,9 +110,9 @@ Core.prototype.init = function() {
|
||||||
|
|
||||||
|
|
||||||
function nextDefer() {
|
function nextDefer() {
|
||||||
console.log(new Date.getTime() + " Next Defer");
|
console.log(new Date().getTime() + " Next Defer");
|
||||||
if($(".guilds-wrapper .guilds").children().length > 0) {
|
if($(".guilds-wrapper .guilds").children().length > 0) {
|
||||||
console.log(new Date.getTime() + " Next Defer Loaded");
|
console.log(new Date().getTime() + " Next Defer Loaded");
|
||||||
} else {
|
} else {
|
||||||
setTimeout(nextDefer(), 100);
|
setTimeout(nextDefer(), 100);
|
||||||
}
|
}
|
||||||
|
@ -121,12 +121,12 @@ Core.prototype.init = function() {
|
||||||
nextDefer();
|
nextDefer();
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
console.log(new Date.getTime() + " Document Ready");
|
console.log(new Date().getTime() + " Document Ready");
|
||||||
|
|
||||||
function finalDefer() {
|
function finalDefer() {
|
||||||
console.log("FINAL DEFER");
|
console.log("FINAL DEFER");
|
||||||
if($(".guilds-wrapper .guilds").children().length > 0) {
|
if($(".guilds-wrapper .guilds").children().length > 0) {
|
||||||
console.log(new Date.getTime() + " Final Defer Loaded");
|
console.log(new Date().getTime() + " Final Defer Loaded");
|
||||||
} else {
|
} else {
|
||||||
setTimeout(finalDefer(), 100);
|
setTimeout(finalDefer(), 100);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue