Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F71655448
topbar.component.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Jul 12, 11:27
Size
863 B
Mime Type
text/html
Expires
Sun, Jul 14, 11:27 (2 d)
Engine
blob
Format
Raw Data
Handle
18967015
Attached To
rPRIMOIII Primo_3_package
topbar.component.js
View Options
"use strict"
;
/*
OBJECTIF: afficher l'entête de la page.
REMARQUES: contient le titre BEAST, le teaser, le fil d'ariance. Le controlleur vérifie
si on se trouve dans le compte de lecteur afin de paramétrer le fil d'ariane.
*/
module
.
exports
=
{
bindings
:
{
parentCtrl
:
'<'
},
controllerAs
:
'ctrl'
,
controller
:
[
'$location'
,
'$translate'
,
'$element'
,
function
(
$location
,
$translate
,
$element
)
{
var
vm
=
this
;
vm
.
url
=
window
.
location
.
href
.
split
(
'?'
)[
0
]
+
'?vid='
+
vm
.
parentCtrl
.
configurationUtil
.
vid
+
'&lang='
+
$translate
.
use
();
// console.log(vm.url);
}],
template
:
`
<
div
class
=
"main-title"
><
h1
><
a
href
=
"{{ ::ctrl.url }}"
>
{{
'mainTitle'
|
customTranslate
}}
<
/a></h1><h2>{{ 'subTitle' | customTranslate }}</h2></div>`
//templateUrl: './custom/41SLSP_EPF-prod/js/homepage/templates/topbar.html'
};
Event Timeline
Log In to Comment