Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
officejs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
officejs
Commits
164363bc
Commit
164363bc
authored
May 16, 2012
by
Sebastien Robin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement small prototype showing a use case of renderjs
parent
fccdd0f3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
37 deletions
+30
-37
poc/renderjs/gadget/article.html
poc/renderjs/gadget/article.html
+7
-0
poc/renderjs/gadget/nagivation.html
poc/renderjs/gadget/nagivation.html
+11
-0
poc/renderjs/index.html
poc/renderjs/index.html
+5
-37
poc/renderjs/js/renderjs_poc.js
poc/renderjs/js/renderjs_poc.js
+7
-0
No files found.
poc/renderjs/gadget/article.html
0 → 100644
View file @
164363bc
<h1>
Article Header
</h1>
<p>
Etiam pretium odio eu mi convallis vitae varius neque pharetra. Nulla vestibulum nisi ut sem cursus sed mattis nisi egestas.
</p>
<h2>
Article Subhead
</h2>
<p>
Vestibulum lacus erat, volutpat vel dignissim at, fringilla ut felis.
</p>
poc/renderjs/gadget/nagivation.html
0 → 100644
View file @
164363bc
<h1><a
href=
"/"
>
Page Title
</a></h1>
<nav>
<ol>
<li><a
href=
""
>
Nav Link 1
</a></li>
<li><a
href=
""
>
Nav Link 2
</a></li>
<li><a
href=
""
>
Nav Link 3
</a></li>
</ol>
</nav>
poc/renderjs/index.html
View file @
164363bc
...
@@ -26,53 +26,21 @@
...
@@ -26,53 +26,21 @@
<div
class=
"wrapper"
>
<!-- not needed? up to you: http://camendesign.com/code/developpeurs_sans_frontieres -->
<div
class=
"wrapper"
>
<!-- not needed? up to you: http://camendesign.com/code/developpeurs_sans_frontieres -->
<header>
<header>
<div
id=
"gadget-header"
/>
<h1><a
href=
"/"
>
Page Title
</a></h1>
<nav>
<ol>
<li><a
href=
""
>
Nav Link 1
</a></li>
<li><a
href=
""
>
Nav Link 2
</a></li>
<li><a
href=
""
>
Nav Link 3
</a></li>
</ol>
</nav>
</header>
</header>
<article>
<article>
<h1>
Article Header
</h1>
<div
id=
"gadget-article"
>
<p>
Etiam pretium odio eu mi convallis vitae varius neque pharetra. Nulla vestibulum nisi ut sem cursus sed mattis nisi egestas.
</p>
<h2>
Article Subhead
</h2>
<p>
Vestibulum lacus erat, volutpat vel dignissim at, fringilla ut felis.
</p>
</article>
</article>
<aside>
<h2>
Sidebar Content
</h2>
</aside>
<footer>
<p><small>
©
Copyright Your Name Here 2011. All Rights Reserved.
</small></p>
</footer>
</div>
</div>
<!-- here comes the javascript -->
<!-- here comes the javascript -->
<!-- Grab Google CDN's jQuery. fall back to local if necessary -->
<script
src=
"lib/js/jquery-1.5.1.min.js"
></script>
<script
src=
"//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"
></script>
<script
src=
"js/renderjs.js"
></script>
<script>
window
.
jQuery
||
document
.
write
(
"
<script src='lib/js/jquery-1.5.1.min.js'>
\
x3C/script>
"
)
</script>
<script
src=
"js/render.js"
></script>
<!-- this is where we put our custom functions -->
<!-- this is where we put our custom functions -->
<script
src=
"js/renderjs_poc.js"
></script>
<script
src=
"js/renderjs_poc.js"
></script>
...
...
poc/renderjs/js/renderjs_poc.js
View file @
164363bc
/* trigger when page is ready */
$
(
document
).
ready
(
function
(){
TabbularGadget
.
addNewTabGadget
(
'
gadget/nagivation.html
'
,
'
gadget-header
'
,
undefined
);
TabbularGadget
.
addNewTabGadget
(
'
gadget/article.html
'
,
'
gadget-article
'
,
undefined
);
});
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment