Simple Maintenance Page HTML Code
Setelah Anda membeli Hosting dan domain, biasanya domain langsung aktif. Sambil menunggu pembuatan website jadi. Alangkah baiknya jika domain Anda tidak kosong begitu saja.
Untuk itu buatlah file index.html yang berisi kode berikut untuk menampilan tulisan bahwa website Anda dalam pengerjaan
Site Maintenance
");$(".post-body *").replaceText(o,"");$(".post-body *").replaceText(u,"");(function(e){var t=e("a.newer-link");var n=e("a.older-link");e.get(t.attr("href"),function(n){t.html('Next'+e(n).find(".post h1.post-title").text()+"")},"html");e.get(n.attr("href"),function(t){n.html('Previous'+e(t).find(".post h1.post-title").text()+"")},"html")})(jQuery)}); $(document).ready(function() { $('.HTML .widget-content').each(function () { var text = $(this).text(); if (text.match('recentcomments')) { $.ajax({ url: "/feeds/comments/default?alt=json-in-script&max-results=" + recentcomments_number, type: 'get', dataType: "jsonp", success: function (data) { var posturl = ""; var htmlcode = '
Untuk itu buatlah file index.html yang berisi kode berikut untuk menampilan tulisan bahwa website Anda dalam pengerjaan
");$(".post-body *").replaceText(o,"");$(".post-body *").replaceText(u,"");(function(e){var t=e("a.newer-link");var n=e("a.older-link");e.get(t.attr("href"),function(n){t.html('Next'+e(n).find(".post h1.post-title").text()+"")},"html");e.get(n.attr("href"),function(t){n.html('Previous'+e(t).find(".post h1.post-title").text()+"")},"html")})(jQuery)}); $(document).ready(function() { $('.HTML .widget-content').each(function () { var text = $(this).text(); if (text.match('recentcomments')) { $.ajax({ url: "/feeds/comments/default?alt=json-in-script&max-results=" + recentcomments_number, type: 'get', dataType: "jsonp", success: function (data) { var posturl = ""; var htmlcode = '
- ';
for (var i = 0; i < data.feed.entry.length; i++) {
if (i == data.feed.entry.length) break;
for (var k = 0; k < data.feed.entry[i].link.length; k++) {
if (data.feed.entry[i].link[k].rel == 'alternate') {
posturl = data.feed.entry[i].link[k].href;
break
}
}
if ("content" in data.feed.entry[i]) {
var content = data.feed.entry[i].content.$t
} else if ("summary" in b_rc) {
var content = data.feed.entry[i].summary.$t
} else var content = "";
var re = /<\S[^>]*>/g;
content = content.replace(re, "");
if (content.length > 90) {
content = '' + content.substring(0, 30) + ''
}
var posttitle = data.feed.entry[i].title.$t;
var author = data.feed.entry[i].author[0].name.$t;
var thumburl = data.feed.entry[i].author[0].gd$image.src;
if (thumburl.match('http://img1.blogblog.com/img/blank.gif')) {
var thumb = ''
} else {
if (thumburl.match('http://img2.blogblog.com/img/b16-rounded.gif')) {
var thumb = ''
} else {
var thumb = ''
}
};
htmlcode += '
- ' + thumb + '' + author + '"' + content + '" ' } htmlcode += '
- ';
for (var i = 0; i < data.feed.entry.length; i++) {
for (var j = 0; j < data.feed.entry[i].link.length; j++) {
if (data.feed.entry[i].link[j].rel == "alternate") {
posturl = data.feed.entry[i].link[j].href;
break
}
}
var posttitle = data.feed.entry[i].title.$t;
var author = data.feed.entry[i].author[0].name.$t;
var get_date = data.feed.entry[i].published.$t,
year = get_date.substring(0, 4),
month = get_date.substring(5, 7),
day = get_date.substring(8, 10),
date = text_month[parseInt(month, 10)] + ' ' + day + ', ' + year;
var tag = data.feed.entry[i].category[0].term;
var content = data.feed.entry[i].content.$t;
var $content = $('
- ' + thumb + ''
}
htmlcode += '';
$('.HTML .widget-content').each(function() {
if ($(this).text().match('randomposts')) {
$(this).html(htmlcode);
$(this).find('.mag-thumb').each(function() {
$(this).attr('style', function(i, src) {
return src.replace('/default.jpg', '/mqdefault.jpg');
}).attr('style', function(i, src) {
return src.replace('s72-c', 's1600');
})
});
$("p.trans").each(function() {
var e = $(this).text();
var t = $(this).attr("data-tran");
$("#pages-wrap *").replaceText(e, t)
});
}
});
}
});
}
});
}
if (text.match('recentposts')) {
$.ajax({
url: "/feeds/posts/default?alt=json-in-script",
type: 'get',
dataType: "jsonp",
success: function (datax) {
$.ajax({
url: "/feeds/posts/default?alt=json-in-script&max-results=" + recentposts_number,
type: 'get',
dataType: "jsonp",
success: function (data) {
var posturl = "";
var htmlcode = '
- ' + thumb + ''
}
htmlcode += '';
$('.HTML .widget-content').each(function() {
if ($(this).text().match('recentposts')) {
$(this).html(htmlcode);
$(this).find('.mag-thumb').each(function() {
$(this).attr('style', function(i, src) {
return src.replace('/default.jpg', '/mqdefault.jpg');
}).attr('style', function(i, src) {
return src.replace('s72-c', 's1600');
})
});
$("p.trans").each(function() {
var e = $(this).text();
var t = $(this).attr("data-tran");
$("#pages-wrap *").replaceText(e, t)
});
}
});
}
});
}
});
}
});
$(".feat-layout .HTML .widget-content").each(function() {
var t = $(this).html(),
k = $(this).prev("h2").text();
var z = t.match(/[^[\]]+(?=])/g);
$(this).html("" + z[0] + "");
var kkk = $(this).text();
var g = $(this).find("span").eq(0).text();
var style = "feat1";
var feat1_number = 4;
if (style.match('feat1')) {
$.ajax({
url: "/feeds/posts/default/-/" + g + "?alt=json-in-script&max-results=" + feat1_number,
type: 'get',
dataType: "jsonp",
success: function(data) {
var posturl = "";
var htmlcode = '
- ' + thumb + ''
}
}
htmlcode += '';
$(".feat-layout .HTML .widget-content").each(function() {
var text = $(this).text();
if (text == kkk) {
$(this).html(htmlcode);
$(this).parent().addClass('feat1');
$(this).parent().addClass('feat');
$(this).prev("h2").html('' + k + '');
$(this).prev("h2").wrap('');
$(this).removeClass('widget-content').addClass('layout-content');
$(this).find('.mag-thumb').each(function() {
$(this).attr('style', function(i, src) {
return src.replace('/default.jpg', '/mqdefault.jpg');
}).attr('style', function(i, src) {
return src.replace('s72-c', 's1600');
})
});
$(this).find('.primeiro-thumb').each(function() {
$(this).attr('style', function(i, src) {
return src.replace('/default.jpg', '/mqdefault.jpg');
}).attr('style', function(i, src) {
return src.replace('s72-c', 's1600');
})
});
$("p.trans").each(function() {
var e = $(this).text();
var t = $(this).attr("data-tran");
$("#pages-wrap *").replaceText(e, t)
});
}
});
}
});
}
});
});
var static_page_text = $.trim($('.static_page .post-body').text());
if (static_page_text === "[sitemap]") {
var postbody = $('.static_page .post-body');
$.ajax({
url: "/feeds/posts/default?alt=json-in-script",
type: 'get',
dataType: "jsonp",
success: function(dataZ) {
var blogLabels = [];
for (var t = 0; t < dataZ.feed.category.length; t++) {
blogLabels.push(dataZ.feed.category[t].term)
}
var blogLabels = blogLabels.join('/');
postbody.html('');
$('.static_page .post-body .siteLabel').text(blogLabels);
var splabel = $(".siteLabel").text().split("/");
var splabels = "";
for (get = 0; get < splabel.length; ++get) {
splabels += "" + splabel[get] + ""
}
$(".siteLabel").html(splabels);
$('.siteLabel span').each(function() {
var mapLabel = $(this);
var mapLabel_text = $(this).text();
$.ajax({
url: "/feeds/posts/default/-/" + mapLabel_text + "?alt=json-in-script",
type: 'get',
dataType: "jsonp",
success: function(data) {
var posturl = "";
var htmlcode = '
- ' + thumb + '
' + posttitle + '
'
}
htmlcode += '
').html(content);
if (content.indexOf("http://www.youtube.com/embed/") > -1 || content.indexOf("https://www.youtube.com/embed/") > -1) {
var src2 = data.feed.entry[i].media$thumbnail.url;
var thumb = ''
} else if (content.indexOf(" -1) {
var src = $content.find('img:first').attr('src');
var thumb = ''
} else {
var thumb = ''
}
htmlcode += '
- ';
for (var i = 0; i < data.feed.entry.length; i++) {
for (var j = 0; j < data.feed.entry[i].link.length; j++) {
if (data.feed.entry[i].link[j].rel == "alternate") {
posturl = data.feed.entry[i].link[j].href;
break
}
}
var posttitle = data.feed.entry[i].title.$t;
var author = data.feed.entry[i].author[0].name.$t;
var get_date = data.feed.entry[i].published.$t,
year = get_date.substring(0, 4),
month = get_date.substring(5, 7),
day = get_date.substring(8, 10),
date = text_month[parseInt(month, 10)] + ' ' + day + ', ' + year;
var tag = data.feed.entry[i].category[0].term;
var content = data.feed.entry[i].content.$t;
var $content = $('
').html(content);
if (content.indexOf("http://www.youtube.com/embed/") > -1 || content.indexOf("https://www.youtube.com/embed/") > -1) {
var src2 = data.feed.entry[i].media$thumbnail.url;
var thumb = ''
} else if (content.indexOf(" -1) {
var src = $content.find('img:first').attr('src');
var thumb = ''
} else {
var thumb = ''
}
htmlcode += '
- ';
for (var i = 0; i < data.feed.entry.length; i++) {
for (var j = 0; j < data.feed.entry[i].link.length; j++) {
if (data.feed.entry[i].link[j].rel == "alternate") {
posturl = data.feed.entry[i].link[j].href;
break
}
}
var posttitle = data.feed.entry[i].title.$t;
var author = data.feed.entry[i].author[0].name.$t;
var get_date = data.feed.entry[i].published.$t,
year = get_date.substring(0, 4),
month = get_date.substring(5, 7),
day = get_date.substring(8, 10),
date = text_month[parseInt(month, 10)] + ' ' + day + ', ' + year;
var content = data.feed.entry[i].content.$t;
var $content = $('
').html(content);
if (i == 0) {
var re = /<\S[^>]*>/g;
var postcontent = content.replace(re, "");
if (postcontent.length > 100) {
postcontent = '' + postcontent.substring(0, 85) + '...'
}
if (content.indexOf("http://www.youtube.com/embed/") > -1 || content.indexOf("https://www.youtube.com/embed/") > -1) {
var src2 = data.feed.entry[i].media$thumbnail.url;
var thumb = ''
} else if (content.indexOf(" -1) {
var src = $content.find('img:first').attr('src');
var thumb = ''
} else {
var thumb = ''
}
} else {
if (content.indexOf("http://www.youtube.com/embed/") > -1 || content.indexOf("https://www.youtube.com/embed/") > -1) {
var src2 = data.feed.entry[i].media$thumbnail.url;
var thumb = ''
} else if (content.indexOf(" -1) {
var src = $content.find('img:first').attr('src');
var thumb = ''
} else {
var thumb = ''
}
};
if (i == 0) {
htmlcode += ''
} else {
htmlcode += '
' + thumb + '
';
for (var i = 0; i < data.feed.entry.length; i++) {
for (var j = 0; j < data.feed.entry[i].link.length; j++) {
if (data.feed.entry[i].link[j].rel == "alternate") {
posturl = data.feed.entry[i].link[j].href;
break
}
}
var posttitle = data.feed.entry[i].title.$t;
var author = data.feed.entry[i].author[0].name.$t;
var get_date = data.feed.entry[i].published.$t,
year = get_date.substring(0, 4),
month = get_date.substring(5, 7),
day = get_date.substring(8, 10),
date = text_month[parseInt(month, 10)] + ' ' + day + ', ' + year;
var tag = data.feed.entry[i].category[0].term;
var content = data.feed.entry[i].content.$t;
var $content = $('');
$(document).on('click', '.mapasite h2', function() {
$(this).parent('.mapasite').addClass('active');
$(this).find('.botao .fa').removeClass('fa-plus-circle').addClass('fa-minus-circle');
});
$(document).on('click', '.mapasite.active h2', function() {
$(this).parent('.mapasite').removeClass('active');
$(this).find('.botao .fa').addClass('fa-plus-circle').removeClass('fa-minus-circle');
});
}
});
});
}
});
}
$("#related-posts").each(function() {
var g = $(this).html();
var related_number = 3;
$.ajax({
url: "/feeds/posts/default/-/" + g + "?alt=json-in-script&max-results=" + related_number,
type: 'get',
dataType: "jsonp",
success: function(data) {
var posturl = "";
var htmlcode = '
').html(content);
var src2 = data.feed.entry[i].media$thumbnail.url;
htmlcode += ''
}
htmlcode += '
';
mapLabel.replaceWith('' + mapLabel_text + '
' + htmlcode + '';
for (var i = 0; i < data.feed.entry.length; i++) {
for (var j = 0; j < data.feed.entry[i].link.length; j++) {
if (data.feed.entry[i].link[j].rel == "alternate") {
posturl = data.feed.entry[i].link[j].href;
break
}
}
var posttitle = data.feed.entry[i].title.$t;
var content = data.feed.entry[i].content.$t;
var $content = $('
').html(content);
if (content.indexOf("http://www.youtube.com/embed/") > -1 || content.indexOf("https://www.youtube.com/embed/") > -1) {
var src2 = data.feed.entry[i].media$thumbnail.url;
var thumb = ''
} else if (content.indexOf(" -1) {
var src = $content.find('img:first').attr('src');
var thumb = ''
} else {
var thumb = ''
}
htmlcode += '
';
$("#related-posts").html(htmlcode);
$('.related-img').each(function() {
$(this).attr('style', function(i, src) {
return src.replace('/default.jpg', '/mqdefault.jpg');
}).attr('style', function(i, src) {
return src.replace('s72-c', 's1600');
})
});
$("p.trans").each(function() {
var e = $(this).text();
var t = $(this).attr("data-tran");
$("#pages-wrap *").replaceText(e, t)
});
}
});
});
//]]>