Skip to content

Commit 23abbf1

Browse files
committed
fix: update docs api and cocreateJS script
1 parent e802689 commit 23abbf1

File tree

1 file changed

+31
-45
lines changed

1 file changed

+31
-45
lines changed

docs/index.html

Lines changed: 31 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -96,56 +96,42 @@ <h2 class="padding:5px_0px">Demo</h2>
9696
</span>
9797
</div>
9898
<div class="position:sticky top:0 padding:15px_0px height:100vh">
99-
<div class="container svColumn overflow:hidden card border-radius:2px width:auto height:100%" id="form-sandbox">
100-
<div class="font-size:20px position:absolute top:10px right:10px opacity:0.6 z-index:7">
101-
<a class="margin-right:10px" id="preview" show="preview" hide="code"><i class="far fa-eye"></i></a>
102-
<a class="margin-right:10px hidden" id="code" show="code" hide="preview"><i class="fas fa-code"></i></a>
103-
<!--<a class="margin-right:10px"><i class="far fa-window-maximize"></i></a>-->
104-
<a target="modal" href="module_activity_datatable.html" pass-collection="modules" pass-document_id="" pass-fetch_value="" pass-prefix="" pass_to="render" modal-width="600px" modal-height="400px" modal-color="#229954"
105-
modal-header="false" class="margin-right:10px">
106-
<i class="fas fa-external-link-alt"></i>
107-
</a>
108-
<a class="margin-right:5px" fullscreen target="#playground-1"><i class="fas fa-expand"></i></a>
109-
</div>
110-
111-
<div class="svRow">
112-
113-
<div class="svColumn">
114-
115-
<div class="svPanel">
116-
<div realtime="false" collection="modules" document_id="5eefe30952c6e94c75fb5e3f" name="html" id="7" class="codemirror min-width:300px">
117-
</div>
118-
</div>
119-
<div class="svSplitter svHorizontal"> </div>
120-
121-
<div class="svPanel">
122-
<iframe get-value="7" frameBorder="0" height="100%" width="100%" class="min-width:300px"></iframe>
123-
</div>
124-
125-
</div>
126-
</div>
127-
</div>
128-
<!-- End SandBox -->
99+
<!-- SandBox -->
100+
<div class="container svColumn overflow:hidden card position:relative border-radius:2px width:auto height:100%" id="sandbox">
101+
<div class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
102+
<a class="margin-right:10px" id="code" show="#preview" hide="#code, #view"><i class="far fa-eye"></i></a>
103+
<a class="margin-right:10px hidden" id="preview" show="#code, #view" hide="#preview"><i class="fas fa-code"></i></a>
104+
<a class="margin-right:5px" fullscreen target="#playground"><i class="fas fa-expand"></i></a>
105+
</div>
106+
<div class="svRow">
107+
108+
<div class="svColumn">
109+
110+
<div class="svPanel" id="view">
111+
<textarea collection="demos" document_id="" name="demo" save="false" id="demo" class="height:100% width:100% border:none resize:none padding:5px"></textarea>
112+
</div>
113+
<div class="svSplitter svHorizontal"> </div>
114+
115+
<div class="svPanel">
116+
<iframe get-value="demo" frameBorder="0" height="100%" width="100%" class="min-width:300px"></iframe>
117+
</div>
118+
119+
</div>
120+
</div>
121+
</div>
122+
<!-- End SandBox -->
129123
</div>
130124
</div>
131125

132126
</div>
133127
<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%">
134-
<i class="fas fa-pencil-alt"></i>
135-
</button>
136-
</main>
137-
138-
<script>
139-
var config = {
140-
apiKey: 'c2b08663-06e3-440c-ef6f-13978b42883a',
141-
organization_Id: '5de0387b12e200ea63204d6c',
142-
host: 'wss://server.cocreate.app:8088'
143-
}
144-
</script>
145-
146-
147-
<!--CoCreateJS CDN-->
148-
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
128+
<i class="fas fa-pencil-alt"></i>
129+
</button>
130+
</main>
131+
132+
<script src="./apikey.js"></script>
133+
<script src="https://cdn.cocreate.app/latest/CoCreate.min.js"></script>
134+
149135
</body>
150136

151137
</html>

0 commit comments

Comments
 (0)