Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arnaud Véron
slapos.core
Commits
6a991a50
Commit
6a991a50
authored
Jun 15, 2012
by
Thomas Lechauve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Carousel created on homepage
parent
d3120893
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
13 deletions
+66
-13
vifib/index.html
vifib/index.html
+53
-4
vifib/static/js/core.js
vifib/static/js/core.js
+13
-9
No files found.
vifib/index.html
View file @
6a991a50
...
...
@@ -17,14 +17,18 @@
float
:
right
;
width
:
67%
;
}
[
data-role
=
footer
]
{
width
:
30%
;
}
}
.content-primary
.ui-listview
{
margin-top
:
0px
;
margin-bottom
:
0px
;
}
#slider
{
height
:
200px
;
repeat
:
no-repeat
;
margin-left
:
-15px
;
margin-top
:
-19px
;
margin-right
:
-119px
;
}
</style>
<!--
-COMPONENTS
...
...
@@ -114,9 +118,52 @@
{{
>
content
}}
</script>
<script
id=
"homepagePanel"
type=
"text/html"
>
<
h2
>
Carousel
<
/h2
>
{{
>
carousel
}}
<
a
href
=
"
#/login
"
data
-
role
=
"
button
"
>
Try
it
now
!<
/a
>
</script>
<script
id=
"carousel"
type=
"text/html"
>
<
div
id
=
"
slider
"
>
<
ul
>
<
li
style
=
"
display: block
"
>
<
h2
>
Paas
Without
limit
<
/h2
>
<
p
>
c
c
++
java
javascript
perl
php
python
kumofs
mysql
mariadb
memcached
apache
nodejs
flask
tomcat
zope
<
/p
>
<
/li
>
<
li
style
=
"
display: none
"
>
<
h2
>
Iaas
broker
<
/h2
>
<
p
>
xen
kvm
hyperv
vmware
openstack
opennebula
amazon
eucalyptus
niftyname
gandi
rackspace
<
/p
>
<
/li
>
<
li
style
=
"
display: none
"
>
<
h2
>
Resilient
Cloud
Computing
<
/h2
>
<
fieldset
class
=
"
ui-grid-a
"
>
<
div
class
=
"
ui-block-a
"
>
<
ul
>
<
li
>
decentralized
<
/li
>
<
li
>
open
-
source
<
/li
>
<
/ul
>
<
/div
>
<
div
class
=
"
ui-block-b
"
>
<
ul
>
<
li
>
10
x
cost
efficient
<
/li
>
<
li
>
tremendously
simpler
<
/li
>
<
/ul
>
<
/div
>
<
/fieldset
>
<
/li
>
<
li
style
=
"
display: none
"
>
<
h2
>
Mobile
Edge
Computing
<
/h2
>
<
p
>
bsd
linux
macos
windows
android
tizen
<
/p
>
<
/li
>
<
li
style
=
"
display: none
"
>
<
h2
>
Billing
<
/h2
>
<
p
>
accoutning
billing
charging
crm
portal
market
<
/p
>
<
/li
>
<
li
style
=
"
display: none
"
>
<
h2
>
Saas
for
free
<
/h2
>
<
p
>
wordpress
drupal
erp5
prestashop
joomla
xwiki
mediawiki
oscommerce
sugarcrm
phpbb
facturalux
zabbix
<
/p
>
<
/li
>
<
/ul
>
<
/div
>
</script>
<!--
-LIBRARY
-->
...
...
@@ -282,6 +329,7 @@
<script
src=
"http://code.jquery.com/jquery-1.7.1.min.js"
></script>
<script
type=
"text/javascript"
src=
"static/js/ICanHaz.min.js"
></script>
<script
type=
"text/javascript"
src=
"static/js/swipe.min.js"
></script>
<script
type=
"text/javascript"
src=
"static/js/modernizr-2.5.3.js"
></script>
<script
type=
"text/javascript"
src=
"static/js/sinon-1.3.2.js"
></script>
<script
type=
"text/javascript"
src=
"static/js/jquery.slapos.js"
></script>
...
...
@@ -291,5 +339,6 @@
<script
src=
"http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"
></script>
</head>
<body>
<div
data-role=
"page"
data-theme=
"c"
></div>
</body>
</html>
vifib/static/js/core.js
View file @
6a991a50
...
...
@@ -66,11 +66,11 @@
//$(this).slapos({'host': 'http://10.8.2.34:12006/erp5/portal_vifib_rest_api_v1'});
$
(
this
).
slapos
({
'
host
'
:
'
http://10.8.2.34:12006/erp5/portal_vifib_rest_api_v1
'
});
// Bind Loading content
$
(
'
#loading
'
).
ajaxStart
(
function
()
{
$
(
this
).
spin
(
spinOptions
);
}).
ajaxStop
(
function
()
{
$
(
this
).
spin
(
false
);
});
//
$('#loading').ajaxStart(function () {
//
$(this).spin(spinOptions);
//
}).ajaxStop(function () {
//
$(this).spin(false);
//
});
for
(
var
level
=
0
;
level
<
routes
.
length
;
level
+=
1
)
{
for
(
var
i
=
0
;
i
<
routes
[
level
].
length
;
i
+=
1
)
{
var
r
=
routes
[
level
][
i
];
...
...
@@ -132,7 +132,7 @@
showRoot
:
function
(
params
)
{
var
route
=
$
.
router
.
routes
.
current
,
nextLevel
=
route
.
level
+
1
;
$
(
this
).
vifib
(
'
render
'
,
'
root
'
);
//
$(this).vifib('render', 'root');
$
.
router
.
routes
.
add
(
'
/homepage
'
,
nextLevel
,
methods
.
showHomepage
,
$
(
"
:jqmData(role=page)
"
));
$
.
router
.
routes
.
add
(
'
/library
'
,
nextLevel
,
methods
.
showLibrary
,
$
(
"
:jqmData(role=page)
"
));
$
.
router
.
routes
.
add
(
'
/documentation
'
,
nextLevel
,
methods
.
showDocumentation
,
$
(
"
:jqmData(role=page)
"
));
...
...
@@ -158,9 +158,14 @@
{
'
name
'
:
'
Software library
'
,
'
link
'
:
'
#/library
'
},
{
'
name
'
:
'
Documentation
'
,
'
link
'
:
'
#/documentation
'
}
]
},
nextLevel
=
$
.
router
.
routes
.
current
.
level
+
1
;
};
$
(
this
).
vifib
(
'
render
'
,
'
homepage
'
,
options
);
if
(
Modernizr
.
csstransforms
)
{
window
.
mySwipe
=
new
Swipe
(
document
.
getElementById
(
'
slider
'
),
{
speed
:
800
,
auto
:
5000
});
}
});
},
//LOGIN
...
...
@@ -612,7 +617,6 @@
raw
=
raw
||
true
;
return
this
.
each
(
function
()
{
$
(
this
).
html
(
ich
[
template
](
data
,
raw
));
$
(
this
).
page
();
$
(
this
).
trigger
(
'
pagecreate
'
);
});
},
...
...
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