-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# 原版ITJoker的个人主页 | ||
原作者: ITJoker | ||
Description Web Site:https://www.itjoker.cn | ||
Blog Web Site: https://blog.itjoker.cn | ||
Blog RSS Site: https://blog.itjoker.cn/atom.xml | ||
|
||
# 使用了MDUI | ||
Site: https://www.mdui.org/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/** | ||
* @author alteredq | ||
* @author mr.doob | ||
*/ | ||
|
||
Detector = { | ||
|
||
canvas : !! window.CanvasRenderingContext2D, | ||
webgl : ( function () { try { return !! window.WebGLRenderingContext && !! document.createElement( 'canvas' ).getContext( 'experimental-webgl' ); } catch( e ) { return false; } } )(), | ||
workers : !! window.Worker, | ||
fileapi : window.File && window.FileReader && window.FileList && window.Blob, | ||
|
||
getWebGLErrorMessage : function () { | ||
|
||
var domElement = document.createElement( 'div' ); | ||
|
||
domElement.style.fontFamily = 'monospace'; | ||
domElement.style.fontSize = '13px'; | ||
domElement.style.textAlign = 'center'; | ||
domElement.style.background = '#eee'; | ||
domElement.style.color = '#000'; | ||
domElement.style.padding = '1em'; | ||
domElement.style.width = '475px'; | ||
domElement.style.margin = '5em auto 0'; | ||
|
||
if ( ! this.webgl ) { | ||
|
||
domElement.innerHTML = window.WebGLRenderingContext ? [ | ||
'对不起,你的显卡不支持 <a href="/khronos.org/webgl/wiki/Getting_a_WebGL_Implementation">WebGL</a>' | ||
].join( '\n' ) : [ | ||
'对不起,您的浏览器不支持 <a href="/khronos.org/webgl/wiki/Getting_a_WebGL_Implementation">WebGL</a><br/>', | ||
'请升级你的浏览器!' | ||
].join( '\n' ); | ||
} | ||
return domElement; | ||
}, | ||
|
||
addGetWebGLMessage : function ( parameters ) { | ||
|
||
var parent, id, domElement; | ||
|
||
parameters = parameters || {}; | ||
|
||
parent = parameters.parent !== undefined ? parameters.parent : document.body; | ||
id = parameters.id !== undefined ? parameters.id : 'oldie'; | ||
|
||
domElement = Detector.getWebGLErrorMessage(); | ||
domElement.id = id; | ||
|
||
parent.appendChild( domElement ); | ||
|
||
} | ||
|
||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* Provides requestAnimationFrame in a cross browser way. | ||
* /paulirish.com/2011/requestanimationframe-for-smart-animating/ | ||
*/ | ||
|
||
if ( !window.requestAnimationFrame ) { | ||
|
||
window.requestAnimationFrame = ( function() { | ||
|
||
return window.webkitRequestAnimationFrame || | ||
window.mozRequestAnimationFrame || | ||
window.oRequestAnimationFrame || | ||
window.msRequestAnimationFrame || | ||
function( /* function FrameRequestCallback */ callback, /* DOMElement Element */ element ) { | ||
|
||
window.setTimeout( callback, 1000 / 60 ); | ||
|
||
}; | ||
|
||
} )(); | ||
|
||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
body { | ||
margin: 0; | ||
background: #2e2e2c; | ||
} | ||
* { | ||
-webkit-tap-highlight-color: transparent; | ||
} | ||
::selection { | ||
color: #e0e0e0; | ||
background: rgba(255,64,129,.35); | ||
} | ||
#rin-bg { | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
z-index: -2; | ||
position: fixed; | ||
background-size: cover; | ||
background-repeat: no-repeat; | ||
background-attachment: fixed; | ||
background-position: 50% 50%; | ||
background-color: #818181; | ||
background-image: url('https://cdn.jsdelivr.net/gh/AyagawaSeirin/homepage@latest/assets/img/background.jpg'); | ||
} | ||
#rin-bg:after { | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
content: ''; | ||
z-index: -1; | ||
position: fixed; | ||
background-color: rgba(66,66,66,.6); | ||
} | ||
|
||
#rin-footer { | ||
bottom: 0; | ||
margin: auto; | ||
width: 100vw; | ||
position: absolute; | ||
padding: 10px 0 10px 0; | ||
} | ||
#rin-footer div { | ||
font-size: 14px; | ||
text-align: center; | ||
color: rgba(255,255,255,.79); | ||
} | ||
#rin-footer div a { | ||
color: #2196f3; | ||
font-weight: 700; | ||
transition: all .3s; | ||
text-decoration: none; | ||
} | ||
.rin-tr { | ||
width: 80%; | ||
height: 2px; | ||
margin: auto; | ||
background: rgba(255,255,255,.3); | ||
} |
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
8ee859d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: