Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81346221
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
Thu, Sep 5, 11:30
Size
863 B
Mime Type
text/html
Expires
Sat, Sep 7, 11:30 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20552324
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