Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eduGAIN Access Check - Account manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
edugain
eduGAIN Access Check - Account manager
Commits
f204e8e2
Commit
f204e8e2
authored
2 months ago
by
Guillaume ROUSSE
Browse files
Options
Downloads
Patches
Plain Diff
handle all javascript loading in head
parent
0c895d38
Branches
master
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/web/edugain/index.html.tt2
+68
-68
68 additions, 68 deletions
templates/web/edugain/index.html.tt2
with
68 additions
and
68 deletions
templates/web/edugain/index.html.tt2
+
68
−
68
View file @
f204e8e2
...
...
@@ -18,6 +18,74 @@
<script
src=
"[% app.cdn_url %]/libs/jquery/3.7.1/jquery.min.js"
></script>
<script
src=
"[% app.cdn_url %]/libs/jquery-ui/1.13.3/jquery-ui.min.js"
></script>
<script
src=
"[% app.cdn_url %]/libs/jquery-validation/1.19.5/jquery.validate.min.js"
></script>
<script
src=
"[% app.cdn_url %]/libs/foundation/6.8.1/js/vendor/what-input.js"
></script>
<script
src=
"[% app.cdn_url %]/libs/foundation/6.8.1/js/vendor/foundation.min.js"
></script>
<script
src=
"js/menu.js"
></script>
<script>
$
(
document
).
foundation
();
var
Help
=
new
Array
();
Help
[
'
Help Entry 1
'
]
=
'
Text for Help Entry 1 goes in here
'
;
Help
[
'
Help Entry 2
'
]
=
'
Text for Help Entry 2 goes in here
'
;
function
openHelp
(
$helpTrigger
){
var
helpId
=
$helpTrigger
.
attr
(
'
data-help_id
'
);
$help
=
$
(
'
#help_dialog
'
);
$help
.
html
(
'
<p>
'
+
Help
[
helpId
]
+
'
</p>
'
);
$help
.
dialog
(
'
option
'
,
'
title
'
,
helpId
);
$help
.
dialog
(
'
option
'
,
{
position
:
{
my
:
"
left top
"
,
at
:
"
right bottom
"
,
of
:
$helpTrigger
}
});
$help
.
dialog
(
'
open
'
);
}
$
(
function
(){
var
$footer
=
$
(
'
footer
'
);
var
$body
=
$
(
"
body
"
);
$body
.
css
(
'
margin-top
'
,
0
);
$body
.
css
(
'
margin-bottom
'
,
0
);
// function to set the height on fly
function
autoHeight
()
{
// $('#wrap').css('min-height', 0);
$
(
'
#wrap
'
).
css
(
'
min-height
'
,
(
$
(
document
).
outerHeight
()
-
$
(
'
header
'
).
outerHeight
()
+
$
(
'
#wrap
'
).
height
()
-
$
(
'
#wrap
'
).
outerHeight
()
-
$footer
.
height
()
));
}
// onDocumentReady function bind
$
(
document
).
ready
(
function
()
{
autoHeight
();
$
(
"
button
"
).
mouseout
(
function
(){
this
.
blur
();
})
});
// onResize bind of the function
$
(
window
).
resize
(
function
()
{
autoHeight
();
});
$footer
.
css
(
'
visibility
'
,
'
visible
'
);
$
(
'
#help_dialog
'
).
dialog
({
autoOpen
:
false
});
$
(
'
.help
'
).
click
(
function
(
e
){
e
.
preventDefault
();
var
$helpTrigger
=
$
(
this
);
openHelp
(
$helpTrigger
);
});
});
</script>
<title>
[% app.name %]
</title>
</head>
...
...
@@ -92,73 +160,5 @@
</div>
</footer>
<script
src=
"foundation/js/vendor/what-input.js"
></script>
<script
src=
"foundation/js/vendor/foundation.min.js"
></script>
<script
src=
"js/menu.js"
></script>
<script>
$
(
document
).
foundation
();
var
Help
=
new
Array
();
Help
[
'
Help Entry 1
'
]
=
'
Text for Help Entry 1 goes in here
'
;
Help
[
'
Help Entry 2
'
]
=
'
Text for Help Entry 2 goes in here
'
;
function
openHelp
(
$helpTrigger
){
var
helpId
=
$helpTrigger
.
attr
(
'
data-help_id
'
);
$help
=
$
(
'
#help_dialog
'
);
$help
.
html
(
'
<p>
'
+
Help
[
helpId
]
+
'
</p>
'
);
$help
.
dialog
(
'
option
'
,
'
title
'
,
helpId
);
$help
.
dialog
(
'
option
'
,
{
position
:
{
my
:
"
left top
"
,
at
:
"
right bottom
"
,
of
:
$helpTrigger
}
});
$help
.
dialog
(
'
open
'
);
}
$
(
function
(){
var
$footer
=
$
(
'
footer
'
);
var
$body
=
$
(
"
body
"
);
$body
.
css
(
'
margin-top
'
,
0
);
$body
.
css
(
'
margin-bottom
'
,
0
);
// function to set the height on fly
function
autoHeight
()
{
// $('#wrap').css('min-height', 0);
$
(
'
#wrap
'
).
css
(
'
min-height
'
,
(
$
(
document
).
outerHeight
()
-
$
(
'
header
'
).
outerHeight
()
+
$
(
'
#wrap
'
).
height
()
-
$
(
'
#wrap
'
).
outerHeight
()
-
$footer
.
height
()
));
}
// onDocumentReady function bind
$
(
document
).
ready
(
function
()
{
autoHeight
();
$
(
"
button
"
).
mouseout
(
function
(){
this
.
blur
();
})
});
// onResize bind of the function
$
(
window
).
resize
(
function
()
{
autoHeight
();
});
$footer
.
css
(
'
visibility
'
,
'
visible
'
);
$
(
'
#help_dialog
'
).
dialog
({
autoOpen
:
false
});
$
(
'
.help
'
).
click
(
function
(
e
){
e
.
preventDefault
();
var
$helpTrigger
=
$
(
this
);
openHelp
(
$helpTrigger
);
});
});
</script>
</body>
</html>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment