-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathawesome.html
103 lines (90 loc) · 3.15 KB
/
awesome.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<style>
html, body{
margin:0px;
overflow-x:hidden;
width:100%;
}
</style>
<script src="./compiled/api/master.js"></script>
<script src="./compiled/ui/master.js"></script>
<script src="./compiled/builder/master.js"></script>
<script src="./compiled/widgets/results/awesome.js"></script>
<link href="./assets/stylesheets/widgets/all/master.css" rel="stylesheet" />
<link href="./assets/stylesheets/widgets/slide_deck/master.css" rel="stylesheet" />
<link href="./assets/stylesheets/widgets/results/default/master.css" rel="stylesheet" />
<link href="./assets/stylesheets/widgets/results/personality-types/master.css" rel="stylesheet" />
<link href="./assets/stylesheets/widgets/results/personality-traits/master.css" rel="stylesheet" />
</head>
<body>
<div class="slide-deck"></div>
<div class="personality-types"></div>
<div class="personality-traits"></div>
<script>
Traitify.setHost("api-sandbox.traitify.com");
Traitify.setPublicKey("pdi8n7obh12cvv22vummkeoc69");
Traitify.setVersion("v1");
options = {
results:{
params:{
image_pack: "linear"
}
},
personalityTypes:{
target:".personality-types"
},
personalityTraits:{
target:".personality-traits"
}
}
tfPersonalityTypes = Traitify.ui.load("Awesome", "83990506-ac1f-4ead-97a0-e53fd7e458ed", ".slide-deck", options)
/*
if(window.location.hash.substring(1).indexOf("&")){
var splitQueries = window.location.hash.substring(1).split("&")
}else{
var splitQueries = window.location.hash.substring(1)
}
var splitByKeyValue = Object()
for(index in splitQueries){
keyValue = splitQueries[index].split("=")
splitByKeyValue[keyValue[0]] = keyValue[1]
}
if(splitByKeyValue.nonTouch){
Builder = Traitify.ui.slideDeck(splitByKeyValue.assessmentId, ".slide-deck", {traits:true, nonTouch:true});
}else{
Builder = Traitify.ui.slideDeck(splitByKeyValue.assessmentId, {traits:true, size:"small"});
}
Builder.onInitialize(function(){
console.log("initialized!")
})
Builder.onMe(function(){
console.log("You me'd a slide!")
})
Builder.onNotMe(function(){
console.log("You not me'd a slide!")
})
Builder.onFinished(function(){
console.log("You Finished!")
})
Builder.onAddSlide(function(){
console.log("You added a slide!")
})
*/
</script>
<div class="widget">
<template name="tf-personality-types" class="row" style="background-color:#{{colorLight}}" assessment-id="6815f30c-d58d-41c5-af9d-e11f0208e176">
<name class="awesome"></name>
<badge-image></badge-image>
<score></score>
</template>
</div>
<style>
body{
padding:0px;
margin:0px;
}
</style>
</body>
</html>