Skip to content

Commit 4196d9e

Browse files
committed
fix: Update to readme, demo, added cdn scripts
1 parent 1053a50 commit 4196d9e

File tree

4 files changed

+22
-90
lines changed

4 files changed

+22
-90
lines changed
Lines changed: 9 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,15 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
43
<head>
5-
<meta charset="utf-8">
6-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7-
<meta name="viewport" content="width=device-width, initial-scale=1">
8-
<link rel="icon" href="https://cdn.cocreate.app/favicon.ico" type="image/ico" sizes="16x16">
9-
<title>Parallax | CoCreate</title>
10-
11-
<!-- CoCreate UI -->
12-
13-
<link rel="stylesheet" href="https://cdn.cocreate.app/latest/CoCreate.min.css" type="text/css"/>
4+
<title>Parallax | CoCreateJS</title>
145

15-
16-
17-
<!-- Parallax -->
18-
<link rel="stylesheet" href="https://server.cocreate.app/CoCreate-components/CoCreate-parallax/src/CoCreate-parallax.css" type="text/css" />
19-
20-
<style type="text/css">
21-
</style>
6+
<!-- CoCreate Favicon -->
7+
<link rel="icon" href="https://cdn.cocreate.app/favicon.ico" type="image/ico" sizes="16x16">
8+
<!-- CoCreate CSS CDN -->
9+
<link rel="stylesheet" href="https://cdn.cocreate.app/parallax/latest/CoCreate-parallax.min.css" type="text/css" />
2210
</head>
23-
2411
<body>
25-
<!-- Navbar effects: sticky-nav, hidden-nav -->
26-
<div data-main_content_id="content" data-nav_effect="sticky-nav" data-nav_scroll="200" class="nav display:flex align-items-center bg-light-gray">
27-
<!--<a href="#" class="logo">Navbar</a>-->
28-
29-
<!-- Menu Icon Animations -->
30-
<a aria-label="mobile menu" class="nav-toggle menu_icon--hamburger" data-toggle_sidenav="menuL">
31-
<span></span>
32-
<span></span>
33-
<span></span>
34-
</a>
35-
36-
<!-- Horizontal Scroll Nav/Tabs -->
37-
<ul class="cocreate-scroll display:inline-flex direction:rtl font-size:20px align-items-center list-style-type-none width:100% height:50px">
38-
39-
<!-- Fullscreen toogle and icon transform -->
40-
<li class="margin-right:15px">
41-
<a data-fullscreen><i class="fas fa-expand" data-transform_to="fas fa-compress"></i></a>
42-
</li>
43-
44-
<!-- Render Builder -->
45-
<li class="margin-right:15px">
46-
<a data-window_url="render.html"
47-
data-pass_collection="modules"
48-
data-pass_module_id=""
49-
data-pass_prefix=""
50-
data-pass_to="builder"
51-
data-window_width="100%"
52-
class="sessionAdminUI_Id">
53-
<i class="fas fa-palette"></i>
54-
<div data-pass_collection="modules"
55-
data-pass_module_id=""
56-
data-pass_prefix=""
57-
data-pass_to="render"
58-
class="sessionBuilderUI_Id">
59-
</div>
60-
</a>
61-
</li>
62-
<li class="display:flex">
63-
<span class="cocreate-badge position:relative right-8px bottom-5px border-radius-5px">4</span>
64-
<a data-window_url="render.html" data-pass_collection="modules" data-pass_prefix="datatable_" data-pass_module_id="" data-pass_to="render" data-window_width="100%" data-window_height="100%" data-window_color="#229954">
65-
<i class="fas fa-history"></i>
66-
</a>
67-
</li>
68-
<li class="display:flex">
69-
<span class="cocreate-badge position:relative right-8px bottom-5px border-radius-5px">4</span>
70-
<a data-window_url="render.html" data-pass_collection="modules" data-pass_prefix="" data-pass_module_id="5dc846ebcddd6b0de2c40b80" data-pass_to="render" data-window_width="100%" data-window_height="100%" data-window_color="#229954">
71-
<i class="fa fa-calendar" aria-hidden="true"></i>
72-
</a>
73-
</li>
74-
</ul>
75-
12+
7613
<!-- Avatar -->
7714
<div class="avatar-wrapper margin:5px_0px margin-right:10px">
7815
<a class="avatar round" data-window_url="render.html" data-pass_collection="modules" data-pass_prefix="" data-pass_module_id="5dd010bccbc25f0cdb1a4d9f" data-pass_to="render" data-window_width="300px" data-window_height="375px" data-window_color="#229954">
@@ -138,19 +75,11 @@ <h3 style="text-align:center;">Parallax Demo</h3>
13875
<script>
13976
var config = {
14077
apiKey: 'c2b08663-06e3-440c-ef6f-13978b42883a',
141-
organization_Id: '5de0387b12e200ea63204d6c'
78+
organization_Id: '5de0387b12e200ea63204d6c'
14279
}
14380
</script>
144-
145-
<!-- CoCreateJS -->
146-
<!--<script src="https://cdn.cocreate.app/latest/CoCreate.min.js" ></script>-->
147-
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js" ></script>
148-
149-
<!-- CoCreateUI -->
15081

151-
152-
<!-- CoCreate Parallax -->
153-
<script src="https://server.cocreate.app/CoCreate-components/CoCreate-parallax/src/CoCreate-parallax.js"></script>
154-
82+
<!-- CoCreate JS CDN -->
83+
<script src="https://cdn.cocreate.app/parallax/latest/CoCreate-parallax.min.js" ></script>
15584
</body>
15685
</html>

docs/index.html

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@
1111
<meta name="robots" content="index,follow" />
1212
<meta property="og:image" content="https://cdn.cocreate.app/docs/parallax.png">
1313

14-
<!-- CoCreate CSS -->
14+
<!-- CoCreate CSS CDN -->
1515
<link rel="stylesheet" href="https://cdn.cocreate.app/latest/CoCreate.min.css" type="text/css"/>
16-
<link rel="stylesheet" href="https://ws.cocreate.app/docs.css" data-collection="apples" data-document_id="6069ff5042ef8ff5175a5c8d" name="css" type="text/css" />
1716
</head>
18-
1917
<body>
18+
2019
<nav class="nav display:flex align-items:center background:whitesmoke padding-top:10px padding-bottom:10px" data-main_content_id="content" data-scroll="sticky-nav,hide-nav" data-scroll_up="10" data-scroll_down="10" data-collection="components" data-document_id="60395ef42b3ac232657040fd" name="html">
2120
</nav>
2221
<sidenav id="menuL" class="cocreate-sidenav background:whitesmoke" data-main_content="content" sidenav-default_desktop="expanded" sidenav-default_tablet="offcanvas" sidenav-ontoggle_desktop="offcanvas" sidenav-ontoggle_tablet="expanded">
@@ -43,7 +42,7 @@ <h2>CoCreate-parallax</h2>
4342
<p class="max-width:500px margin:20px_10px line-height:1.5">A simple HTML5, CSS and pure javascript component. Easy configuration using data-attributes and highly styleable.</p>
4443
<div id="parallax-section" class="display:flex flex-wrap:wrap">
4544
<div class="flex-grow:1 width:400px width:300px@xs padding:0px_10px margin-top:60px">
46-
<div id="parallax-install" class="border-bottom:1px_solid_lightgrey" data-scroll data-scroll_intersect="color:dodgerblue" data-scroll_target="#boilerplate-install-section">
45+
<div id="parallax-install" class="border-bottom:1px_solid_lightgrey" data-scroll data-scroll_intersect="color:dodgerblue" data-scroll_target="#parallax-install-section">
4746
<span class="display:flex align-items:center width:fit-content" data-hover="display:block!important" data-hover_target='[href="#parallax-install"]'>
4847
<h2 class="padding:5px_0px">Install</h2>
4948
<a class="margin-left:10px display:none" href="#parallax-install"><i class="fas fa-link"></i></a>
@@ -53,7 +52,7 @@ <h2 class="padding:5px_0px">Install</h2>
5352
<p class="padding:10px_0px line-height:1.5">Or you can use cdn link:</p>
5453
<pre><code class="language-html">&lt;script&gt;https://cdn.cocreate.app/parallax/latest/CoCreate-parallax.min.js&lt;/script&gt;</code></pre>
5554

56-
<div id="parallax-usage" class="margin-top:80px border-bottom:1px_solid_lightgrey" data-scroll data-scroll_intersect="color:dodgerblue" data-scroll_target="#boilerplate-usage-section">
55+
<div id="parallax-usage" class="margin-top:80px border-bottom:1px_solid_lightgrey" data-scroll data-scroll_intersect="color:dodgerblue" data-scroll_target="#parallax-usage-section">
5756
<span class="display:flex align-items:center width:fit-content" data-hover="display:block!important" data-hover_target='[href="#parallax-usage"]'>
5857
<h2 class="padding:5px_0px">Usage</h2>
5958
<a class="margin-left:10px display:none" href="#parallax-usage"><i class="fas fa-link"></i></a>
@@ -68,7 +67,7 @@ <h2 class="padding:5px_0px">Usage</h2>
6867
<p class="padding:10px_0px line-height:1.5">This is parallax usage</p>
6968
<p class="padding:10px_0px line-height:1.5">This is parallax usage</p>
7069
</div>
71-
<div id="parallax-attributes" class="margin-top:80px border-bottom:1px_solid_lightgrey" data-scroll data-scroll_intersect="color:dodgerblue" data-scroll_target="#boilerplate-attributes-section">
70+
<div id="parallax-attributes" class="margin-top:80px border-bottom:1px_solid_lightgrey" data-scroll data-scroll_intersect="color:dodgerblue" data-scroll_target="#parallax-attributes-section">
7271
<span class="display:flex align-items:center width:fit-content" data-hover="display:block!important" data-hover_target='[href="#parallax-attributes"]'>
7372
<h2 class="padding:5px_0px">Attributes</h2>
7473
<a class="margin-left:10px display:none" href="#parallax-attributes"><i class="fas fa-link"></i></a>
@@ -88,7 +87,7 @@ <h4><span>data-parallax</span> <span class="cocreate-badge success">string</span
8887

8988
<div class="flex-grow:1 width:300px padding:0px_10px margin-top:60px border-bottom:1px_solid_lightgrey">
9089
<!-- SandBox -->
91-
<div id="parallax-demo" class="border-bottom:1px_solid_lightgrey" data-scroll data-scroll_intersect="color:dodgerblue" data-scroll_target="#boilerplate-demo-section">
90+
<div id="parallax-demo" class="border-bottom:1px_solid_lightgrey" data-scroll data-scroll_intersect="color:dodgerblue" data-scroll_target="#parallax-demo-section">
9291
<span class="display:flex align-items:center width:fit-content" data-hover="display:block!important" data-hover_target='[href="#parallax-demo"]'>
9392
<h2 class="padding:5px_0px">Demo</h2>
9493
<a class="margin-left:10px display:none" href="#parallax-demo"><i class="fas fa-link"></i></a>
@@ -143,15 +142,19 @@ <h2 class="padding:5px_0px">Demo</h2>
143142
</div>
144143

145144
</div>
146-
</main>
145+
<button href="https://github.com/CoCreate-app/CoCreate-parallax/tree/master/docs/index.html?message=docs%3A%20describe%20your%20change..." target="_blank" class="position:fixed bottom:15px right:15px padding:15px background:dodgerblue grow-hover border-radius:50%">
146+
<i class="fas fa-pencil-alt"></i>
147+
</button>
148+
</main>
149+
147150
<script>
148151
var config = {
149152
apiKey: 'c2b08663-06e3-440c-ef6f-13978b42883a',
150153
organization_Id: '5de0387b12e200ea63204d6c'
151154
}
152155
</script>
153156

154-
<!--CoCreateJS-->
157+
<!--CoCreateJS CDN-->
155158
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js" ></script>
156159
</body>
157160
</html>
File renamed without changes.

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import './CoCreate-parallax.css';
1+
import './index.css';
22

33
function CoCreateParallax()
44
{

0 commit comments

Comments
 (0)