aboutsummaryrefslogtreecommitdiff
path: root/src/scripts/starterWindow.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/starterWindow.js')
-rw-r--r--src/scripts/starterWindow.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/scripts/starterWindow.js b/src/scripts/starterWindow.js
index e69de29..03afd8b 100644
--- a/src/scripts/starterWindow.js
+++ b/src/scripts/starterWindow.js
@@ -0,0 +1,20 @@
+$(document).ready(function(){
+ $('.nav-group').on('click', 'span', function() {
+ $('.nav-group span.active').removeClass('active');
+ $(this).addClass('active');
+ });
+ $('.templateIcon').click(function(e){
+ $('.template .templateIcon').removeClass('clicked');
+ $('.template .templateName span').removeClass('clickedText');
+ $(this).addClass('clicked');
+ var parentId = ($(this).parent().attr('id'));
+ $('#'+parentId + ' .templateName span').addClass('clickedText')
+ e.stopPropagation()
+ })
+ $(document).on("click", function(e) {
+ if ($(e.target).is(".templateIcon, .templateName span") === false) {
+ $('.template .templateIcon').removeClass('clicked');
+ $('.template .templateName span').removeClass('clickedText');
+ }
+ });
+}) \ No newline at end of file