Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102782162
branch4.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
Mon, Feb 24, 03:28
Size
943 B
Mime Type
text/x-java
Expires
Wed, Feb 26, 03:28 (1 d, 17 h)
Engine
blob
Format
Raw Data
Handle
24427533
Attached To
R8244 Eawag_Swing_Weight_Elicitation
branch4.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-branch4',
templateUrl: './branch4.component.html',
styleUrls: ['./branch4.component.css']
})
export class Branch4Component implements OnInit {
constructor(private router: Router, public hl: Hl, private title: Title) { }
next(){
var itemOrder = $('#sortable').sortable("toArray");
// console.log(itemOrder);
// Save data to sessionStorage
sessionStorage.setItem('branch4', JSON.stringify(itemOrder));
// Get saved data from sessionStorage
//var data = sessionStorage.getItem('key');
this.router.navigateByUrl('/survey-v1/branch4/rate');
}
ngOnInit() {
this.title.setTitle('Survey v1');
$('#sortable').sortable();
}
}
Event Timeline
Log In to Comment