-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
120 lines (112 loc) · 4.93 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="google-site-verification" content="ydWd9FTD4u5WzBiqdZmAaFvbFT54rjYMAIfT3ghGmYQ" />
<title>modular - Distributed ML</title>
<meta name="description" content="Distributing machine learning models across different machines, platforms and continents." />
<meta name="keywords" content="distributed computing, machine learning, remote demos, modular models, remove and play" />
<meta name="author" content="Modular ML" />
<link rel="shortcut icon" href="favicon.ico">
<link href="https://fonts.googleapis.com/css?family=Barlow:400,500,700|Playfair+Display" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/base.css?version=3" />
<link rel="stylesheet" type="text/css" href="css/demo1.css?version=3" />
<link rel="stylesheet" type="text/css" href="pater/pater.css?version=3" />
<script>document.documentElement.className="js";var supportsCssVars=function(){var e,t=document.createElement("style");return t.innerHTML="root: { --tmp-var: bold; }",document.head.appendChild(t),e=!!(window.CSS&&window.CSS.supports&&window.CSS.supports("font-weight","var(--tmp-var)")),t.parentNode.removeChild(t),e};supportsCssVars()||alert("Please view this demo in a modern browser that supports CSS Variables.");</script>
<style type="text/css">.disclaimer { display: none; }</style>
</head>
<body class="demo-1"><script>
(function () {
var iframeLoaded = false;
function loadIframeOnScroll() {
if (window.scrollY >= 500 && !iframeLoaded) {
loadIframe();
}
};
function loadIframe() {
if (!iframeLoaded) {
var $iframe = $('#b');
$iframe.attr('src', $iframe.data('pages/tools'));
window.removeEventListener('scroll', loadIframeOnScroll);
iframeLoaded = true; // could be placed in the onload callback of the iframe
}
}
window.addEventListener('scroll', loadIframeOnScroll);
document.querySelector('.a').addEventListener('click', loadIframe);
})();
// Copy and paste the JavaScript code here
$(window).load(function(){
$(document).ready(function() {
$wrap = $('#wrap');
// Simulate scrolling
$wrap.prop('scrollTop', 500);
$('#btnHome').bind('click', function(e) {
$wrap.prop('scrollTop', 0);
});
});
});
</script>
<style>
#content{
min-height: 100vh;
color:#1b1b1b; /*-light black-*/
font-size: 1.1em;
background-color:#f2f0ea;/* --off- yellow-white-- */
padding:1%;
border-radius:5px;
}
</style>
<main>
<div class="content">
<canvas class="scene scene--full" id="scene"></canvas>
<script type="x-shader/x-vertex" id="wrapVertexShader">
attribute float size;
attribute vec3 color;
varying vec3 vColor;
void main() {
vColor = color;
vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );
gl_PointSize = size * ( 350.0 / - mvPosition.z );
gl_Position = projectionMatrix * mvPosition;
}
</script>
<script type="x-shader/x-fragment" id="wrapFragmentShader">
varying vec3 vColor;
uniform sampler2D texture;
void main(){
vec4 textureColor = texture2D( texture, gl_PointCoord );
if ( textureColor.a < 0.3 ) discard;
vec4 color = vec4(vColor.xyz, 1.0) * textureColor;
gl_FragColor = color;
}
</script>
<div class="content__inner">
<nav>
<a href="https://modular.ml" id="btnHome">Home</a>
<a href="#wrap">Tools</a>
<a href="https://modular-ml.github.io" target="_blank">Blog</a>
<a href="mailto:[email protected]?subject=[modular_ml] YOUR SUBJECT HERE">Contact</a>
<div class="content__subtitle animation start-home"></div>
</nav>
<h2 class="content__title">MODULAR.ML</h2>
<h3 class="content__subtitle">Distributed Machine Learning & Artificial Intelligence</h3>
</div>
</div>
<div id="wrap" style="content">
<iframe style="overflow: auto; position: absolute; display:block; min-height: 100vh; background-color: #f2f0ea; border: none;"
name="main_frame"
src="./pages/tools/index.html"
height=100%; width=100%
scrolling="seamless"></iframe>
</div>
<!--<iframe id='b' src='./pages/tools/index.html' data-src='./pages/tools/index.html', width=100%></iframe>-->
<!--<iframe src="./pages/tools/index.html"></iframe>-->
</main>
<script src="js/demo.js"></script>
<script src="js/three.min.js"></script>
<script src="js/TweenMax.min.js"></script>
<script src="js/demo1.js"></script>
</body>
</html>
<!-- </body> -->