Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe529a0
commit 82265ad
Showing
8 changed files
with
165 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,44 @@ | ||
<!doctype html> | ||
<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="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | ||
<script src="http://cdn-stag.traitify.com/js/widgets/careers.js"></script> | ||
</head> | ||
<body> | ||
<div class="slide-deck your-class"></div> <!-- Example Target Div for the widget --> | ||
<div class="results your-class"></div> | ||
<div class="personality-types your-class"></div> | ||
<div class="personality-traits your-class"></div> | ||
<script> | ||
$.post("/public_key").then(function(publicKey){ | ||
$.post("/assessments/?deck=career-deck").then(function(assessment){ | ||
Traitify.setHost("https://api-sandbox.traitify.com"); | ||
Traitify.setPublicKey(publicKey); | ||
Traitify.setVersion("v1"); | ||
assessmentId = "e4773461-b287-4fc1-b27d-426bcd115bbc"; | ||
window.tfWidget = Traitify.ui.load(assessment.id, ".slide-deck"); | ||
}) | ||
}) | ||
</script> | ||
</body> | ||
<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="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | ||
<script src="https://localhost:9292/compiled/bundles/famous-people.js"></script> | ||
</head> | ||
<body> | ||
<div class="slide-deck your-class"></div> <!-- Example Target Div for the widget --> | ||
<div class="results your-class"></div> | ||
<div class="personality-types your-class"></div> | ||
<div class="personality-traits your-class"></div> | ||
<div class="assessment"></div> | ||
<div class="results-container"> | ||
<div class="results"></div> | ||
</div> | ||
<div class="personality-types"></div> | ||
<div class="personality-traits"></div> | ||
<div class="celebrity-matches"></div> | ||
|
||
<script> | ||
$.post("/public_key").then(function(publicKey){ | ||
$.post("/assessments/?deck=livingsocial").then(function(assessment){ | ||
Traitify.setHost("https://api-sandbox.traitify.com"); | ||
Traitify.setPublicKey(publicKey); | ||
Traitify.setVersion("v1"); | ||
window.tfWidget = Traitify.ui.load(assessment.id, ".slide-deck", { | ||
results: {target: ".results-container > .results"}, | ||
personalityTypes: {target: ".personality-types"}, | ||
personalityTraits: {target: ".personality-traits"}, | ||
famousPeople: {target: ".celebrity-matches"}, | ||
}); | ||
}) | ||
}) | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters