Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F123837957
branch3.component.ts
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
Tue, Jul 29, 21:18
Size
938 B
Mime Type
text/x-java
Expires
Thu, Jul 31, 21:18 (2 d)
Engine
blob
Format
Raw Data
Handle
27762622
Attached To
R8244 Eawag_Swing_Weight_Elicitation
branch3.component.ts
View Options
import { Component, OnInit } from '@angular/core';
import 'jquery-ui/ui/widgets/sortable';
import * as $ from 'jquery';
import { Router } from '@angular/router';
import { Hl } from '../hl';
import { Title } from '@angular/platform-browser';
@Component({
selector: 'app-branch3',
templateUrl: './branch3.component.html',
styleUrls: ['./branch3.component.css']
})
export class Branch3Component implements OnInit {
constructor(private router: Router, public hl: Hl, private title: Title) { }
nextrate(){
var itemOrder = $('#sortable').sortable("toArray");
//console.log(itemOrder);
// Save data to sessionStorage
sessionStorage.setItem('branch3', JSON.stringify(itemOrder));
// Get saved data from sessionStorage
//var data = sessionStorage.getItem('key');
this.router.navigateByUrl('/survey-v2/branch3/rate');
}
ngOnInit() {
this.title.setTitle('Survey v2');
$('#sortable').sortable();
}
}
Event Timeline
Log In to Comment