-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
K.C.Ashish Kumar
committed
Apr 5, 2024
0 parents
commit 19cb02a
Showing
21 changed files
with
521 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
permalink: /404.html | ||
--- | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<title>Page not found !!</title> | ||
<link href='https://www.kcak11.com/favicon.png' rel='icon' type='image/x-icon' /> | ||
<script type="text/javascript"> | ||
window.location.replace("https://www.ashishkumarkc.com/?404=" + window.location.href.substring(window.location.href.indexOf(window.location.host) + window.location.host.length)); | ||
</script> | ||
</head> | ||
|
||
<body> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
www.ashishkumarkc.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#### For information about this repository, please visit: <a href="https://www.ashishkumarkc.com">ashishkumarkc.com</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<title>Ashish's Web</title> | ||
<link rel="icon" sizes="192x192" href="//www.kcak11.com/assets/images/the-k-circle_192x192.png" /> | ||
<link rel="apple-touch-icon" sizes="128x128" href="//www.kcak11.com/assets/images/the-k-circle_128x128.png" /> | ||
<link href='//www.kcak11.com/favicon.png' rel='icon' type='image/x-icon' /> | ||
<meta content="https://cdn.kcak11.com/profile/the-k-circle.png" itemprop="image" /> | ||
<meta content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0' name='viewport' /> | ||
<meta name="theme-color" content="#5aa0d3" /> | ||
</head> | ||
|
||
<body> | ||
<script type='text/javascript'> | ||
var renderViaKcak11 = (window.location.href.indexOf("rendervia=kcak11") !== -1); | ||
var _customWindow = window.top; | ||
if (renderViaKcak11) { | ||
_customWindow = window; | ||
} | ||
var nua = navigator.userAgent.toLowerCase(); | ||
if (nua.indexOf("android") != -1 || nua.indexOf("iphone") != -1 || nua.indexOf("iemobile") != -1 || nua.indexOf("mobile") != -1) { | ||
if (!window.orientation || window.orientation == 0 || window.orientation == 90 || window.orientation == -90 || window.orientation == 180 || window.orientation == 270) { | ||
var mDiv = document.createElement("div"); | ||
mDiv.id = "magicDiv"; | ||
mDiv.style.position = "absolute"; | ||
mDiv.style.top = mDiv.style.right = mDiv.style.bottom = mDiv.style.left = "0px"; | ||
mDiv.style.zIndex = -1000; | ||
document.getElementsByTagName("body")[0].appendChild(mDiv); | ||
var ref = document.getElementById("magicDiv"); | ||
if (Math.min(ref.offsetHeight, ref.offsetWidth) <= 480) { | ||
window.isMobileDevice = true; | ||
} | ||
} | ||
} | ||
|
||
if (("" + _customWindow.location.hostname).toLowerCase() === "ashishkumarkc.com") { | ||
document.documentElement.style.display = "none"; | ||
var url = _customWindow.location.protocol + "//www.ashishkumarkc.com"; | ||
if (("" + _customWindow.location).indexOf("nooverride=true") == -1 && window.isMobileDevice) { | ||
url = _customWindow.location.protocol + "//www.ashishkumarkc.com/?mobile=true" | ||
} | ||
if (renderViaKcak11) { | ||
url += url.indexOf("?") === -1 ? "/?rendervia=kcak11" : "&rendervia=kcak11"; | ||
} | ||
_customWindow.location.replace(url); | ||
} | ||
|
||
window.akweb = { | ||
'importScript': function (scriptSrc) { | ||
var scriptElem = document.createElement('script'); | ||
scriptElem.type = 'text/javascript'; | ||
scriptElem.src = scriptSrc; | ||
document.getElementsByTagName('head')[0].appendChild(scriptElem); | ||
}, | ||
hostname: ('' + _customWindow.location.hostname).toLowerCase(), | ||
url: _customWindow.location.href | ||
}; | ||
</script> | ||
<script type="text/javascript"> | ||
if (("" + _customWindow.location).indexOf("nooverride=true") === -1 && window.isMobileDevice && ("" + _customWindow.location.hostname).toLowerCase() === "www.ashishkumarkc.com" && _customWindow.location.href.indexOf("mobile=true") === -1) { | ||
akweb.importScript('//cdn.kcak11.com/cdn/resources/k11b/blog-mobile.js?ts=' + (new Date()).getTime()); | ||
} else { | ||
window.executeNow = function () { | ||
akweb.importScript('//cdn.kcak11.com/cdn/resources/k11b/framework.js?ts=' + (new Date()).getTime()); | ||
}; | ||
akweb.importScript('//cdn.kcak11.com/cdn/resources/k11b/framework11coder.js?ts=' + (new Date()).getTime()); | ||
} | ||
</script> | ||
</body> | ||
|
||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
((function () { | ||
var backgrounds = [ | ||
"assets/images/bg0.png", | ||
"assets/images/bg1.png", | ||
"assets/images/bg2.png", | ||
"assets/images/bg3.jpg", | ||
"assets/images/bg4.svg", | ||
"assets/images/bg5.svg", | ||
"assets/images/bg6.svg" | ||
]; | ||
var currentBG = sessionStorage.getItem("_wcb"); | ||
if (currentBG) { | ||
try { | ||
backgrounds = backgrounds.filter(function (bg) { | ||
return bg !== atob(currentBG); | ||
}); | ||
} catch (exjs) { | ||
/** DO NOTHING */ | ||
} | ||
} | ||
var selectedBG = backgrounds.sort(function () { return Math.random() - Math.random(); })[0]; | ||
sessionStorage.setItem("_wcb", btoa(selectedBG)); | ||
var mainBG = document.getElementById("mainBG"); | ||
var contentWrapper = document.getElementById("content_wrapper"); | ||
var mainContent = document.getElementById("main_content"); | ||
var textContentElem = document.getElementById("text_content"); | ||
var linkContentElem = document.getElementById("link_content"); | ||
var topBar = document.getElementById("top_bar"); | ||
var copyrightBar = document.getElementById("copyright_bar"); | ||
|
||
mainBG.style.backgroundImage = "url('" + selectedBG + "')"; | ||
textContentElem.innerHTML = textContentElem.innerHTML.split("{{EXPERIENCE}}").join((new Date()).getFullYear() - 2006); | ||
copyrightBar.innerHTML = copyrightBar.innerHTML.split("{{CURRENT_YEAR}}").join((new Date()).getFullYear()); | ||
contentWrapper.classList.remove("hidden"); | ||
copyrightBar.classList.remove("hidden"); | ||
|
||
document.querySelector("body").addEventListener("click", function (e) { | ||
if (e.target.classList.contains("connectBtn")) { | ||
var url = e.target.getAttribute("data-url"); | ||
if (url) { | ||
window.open(url, "_blank"); | ||
} | ||
} | ||
}, false); | ||
var __debounce; | ||
function adjustDimensions() { | ||
clearTimeout(__debounce); | ||
__debounce = setTimeout(function () { | ||
if (mainBG.offsetWidth >= mainBG.offsetHeight) { | ||
// Consider as Desktop | ||
if (mainBG.offsetWidth >= 1024) { | ||
contentWrapper.classList.remove("mobile"); | ||
} else { | ||
// Consider as Mobile | ||
contentWrapper.classList.add("mobile"); | ||
} | ||
} else { | ||
// Consider as Mobile | ||
contentWrapper.classList.add("mobile"); | ||
} | ||
var scaleValue; | ||
if (contentWrapper.offsetWidth < 750 || mainBG.offsetWidth < 1024) { | ||
scaleValue = (contentWrapper.offsetWidth - 20) / 750; | ||
} else { | ||
scaleValue = 1; | ||
} | ||
if (scaleValue > 1) { | ||
scaleValue = 1; | ||
} | ||
topBar.style.transform = "scale(" + scaleValue + "," + scaleValue + ")"; | ||
topBar.style.transformOrigin = "0 50%"; | ||
var newHeight = topBar.offsetHeight * scaleValue; | ||
var diffHeight = -1 * (topBar.offsetHeight - newHeight); | ||
topBar.style.marginTop = (diffHeight * scaleValue) + "px"; | ||
topBar.style.marginBottom = (diffHeight * scaleValue) + "px"; | ||
|
||
mainContent.style.height = "auto"; | ||
setTimeout(function () { | ||
mainContent.style.height = (contentWrapper.offsetHeight - 200) + "px"; | ||
mainContent.scrollTo(0, 0); | ||
setTimeout(function () { | ||
if (mainBG.offsetWidth > mainBG.offsetHeight && mainBG.offsetHeight < 450) { | ||
document.documentElement.classList.add("landscape-mode"); | ||
} else { | ||
document.documentElement.classList.remove("landscape-mode"); | ||
} | ||
document.querySelector("body").style.visibility = "visible"; | ||
}, 5); | ||
}, 5); | ||
}, 121); | ||
}; | ||
window.addEventListener("resize", adjustDimensions, false); | ||
function checkAndShow() { | ||
var hiddenElem = document.getElementById("hiddenElem"); | ||
if (getComputedStyle(hiddenElem, null)["display"] === "none") { | ||
adjustDimensions(); | ||
} else { | ||
setTimeout(checkAndShow, 50); | ||
} | ||
}; | ||
checkAndShow(); | ||
})()); |
Oops, something went wrong.