Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F73010295
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, Jul 18, 01:33
Size
863 B
Mime Type
text/html
Expires
Sat, Jul 20, 01:33 (2 d)
Engine
blob
Format
Raw Data
Handle
19128393
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