airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sma...@apache.org
Subject [08/15] airavata-site git commit: adding the assets into content folder
Date Sat, 09 Apr 2016 19:29:12 GMT
http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/fonts/material-design-icons/Material-Design-Icons.ttf
----------------------------------------------------------------------
diff --git a/content/assets/fonts/material-design-icons/Material-Design-Icons.ttf b/content/assets/fonts/material-design-icons/Material-Design-Icons.ttf
new file mode 100644
index 0000000..e12f0cc
Binary files /dev/null and b/content/assets/fonts/material-design-icons/Material-Design-Icons.ttf
differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/fonts/material-design-icons/Material-Design-Icons.woff
----------------------------------------------------------------------
diff --git a/content/assets/fonts/material-design-icons/Material-Design-Icons.woff b/content/assets/fonts/material-design-icons/Material-Design-Icons.woff
new file mode 100644
index 0000000..201581f
Binary files /dev/null and b/content/assets/fonts/material-design-icons/Material-Design-Icons.woff
differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/fonts/material-design-icons/Material-Design-Icons.woff2
----------------------------------------------------------------------
diff --git a/content/assets/fonts/material-design-icons/Material-Design-Icons.woff2 b/content/assets/fonts/material-design-icons/Material-Design-Icons.woff2
new file mode 100644
index 0000000..5efd1b9
Binary files /dev/null and b/content/assets/fonts/material-design-icons/Material-Design-Icons.woff2
differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/fonts/roboto/Roboto-Bold.ttf
----------------------------------------------------------------------
diff --git a/content/assets/fonts/roboto/Roboto-Bold.ttf b/content/assets/fonts/roboto/Roboto-Bold.ttf
new file mode 100644
index 0000000..68822ca
Binary files /dev/null and b/content/assets/fonts/roboto/Roboto-Bold.ttf differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/fonts/roboto/Roboto-Bold.woff
----------------------------------------------------------------------
diff --git a/content/assets/fonts/roboto/Roboto-Bold.woff b/content/assets/fonts/roboto/Roboto-Bold.woff
new file mode 100644
index 0000000..1f75afd
Binary files /dev/null and b/content/assets/fonts/roboto/Roboto-Bold.woff differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/fonts/roboto/Roboto-Bold.woff2
----------------------------------------------------------------------
diff --git a/content/assets/fonts/roboto/Roboto-Bold.woff2 b/content/assets/fonts/roboto/Roboto-Bold.woff2
new file mode 100644
index 0000000..350d1c3
Binary files /dev/null and b/content/assets/fonts/roboto/Roboto-Bold.woff2 differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/fonts/roboto/Roboto-Light.ttf
----------------------------------------------------------------------
diff --git a/content/assets/fonts/roboto/Roboto-Light.ttf b/content/assets/fonts/roboto/Roboto-Light.ttf
new file mode 100644
index 0000000..aa45340
Binary files /dev/null and b/content/assets/fonts/roboto/Roboto-Light.ttf differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/fonts/roboto/Roboto-Light.woff
----------------------------------------------------------------------
diff --git a/content/assets/fonts/roboto/Roboto-Light.woff b/content/assets/fonts/roboto/Roboto-Light.woff
new file mode 100644
index 0000000..3480c6c
Binary files /dev/null and b/content/assets/fonts/roboto/Roboto-Light.woff differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/fonts/roboto/Roboto-Light.woff2
----------------------------------------------------------------------
diff --git a/content/assets/fonts/roboto/Roboto-Light.woff2 b/content/assets/fonts/roboto/Roboto-Light.woff2
new file mode 100644
index 0000000..9a4d98c
Binary files /dev/null and b/content/assets/fonts/roboto/Roboto-Light.woff2 differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/fonts/roboto/Roboto-Medium.ttf
----------------------------------------------------------------------
diff --git a/content/assets/fonts/roboto/Roboto-Medium.ttf b/content/assets/fonts/roboto/Roboto-Medium.ttf
new file mode 100644
index 0000000..a3c1a1f
Binary files /dev/null and b/content/assets/fonts/roboto/Roboto-Medium.ttf differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/fonts/roboto/Roboto-Medium.woff
----------------------------------------------------------------------
diff --git a/content/assets/fonts/roboto/Roboto-Medium.woff b/content/assets/fonts/roboto/Roboto-Medium.woff
new file mode 100644
index 0000000..1186773
Binary files /dev/null and b/content/assets/fonts/roboto/Roboto-Medium.woff differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/fonts/roboto/Roboto-Medium.woff2
----------------------------------------------------------------------
diff --git a/content/assets/fonts/roboto/Roboto-Medium.woff2 b/content/assets/fonts/roboto/Roboto-Medium.woff2
new file mode 100644
index 0000000..d10a592
Binary files /dev/null and b/content/assets/fonts/roboto/Roboto-Medium.woff2 differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/fonts/roboto/Roboto-Regular.ttf
----------------------------------------------------------------------
diff --git a/content/assets/fonts/roboto/Roboto-Regular.ttf b/content/assets/fonts/roboto/Roboto-Regular.ttf
new file mode 100644
index 0000000..0e58508
Binary files /dev/null and b/content/assets/fonts/roboto/Roboto-Regular.ttf differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/fonts/roboto/Roboto-Regular.woff
----------------------------------------------------------------------
diff --git a/content/assets/fonts/roboto/Roboto-Regular.woff b/content/assets/fonts/roboto/Roboto-Regular.woff
new file mode 100644
index 0000000..f823258
Binary files /dev/null and b/content/assets/fonts/roboto/Roboto-Regular.woff differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/fonts/roboto/Roboto-Regular.woff2
----------------------------------------------------------------------
diff --git a/content/assets/fonts/roboto/Roboto-Regular.woff2 b/content/assets/fonts/roboto/Roboto-Regular.woff2
new file mode 100644
index 0000000..b7082ef
Binary files /dev/null and b/content/assets/fonts/roboto/Roboto-Regular.woff2 differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/fonts/roboto/Roboto-Thin.ttf
----------------------------------------------------------------------
diff --git a/content/assets/fonts/roboto/Roboto-Thin.ttf b/content/assets/fonts/roboto/Roboto-Thin.ttf
new file mode 100644
index 0000000..8779333
Binary files /dev/null and b/content/assets/fonts/roboto/Roboto-Thin.ttf differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/fonts/roboto/Roboto-Thin.woff
----------------------------------------------------------------------
diff --git a/content/assets/fonts/roboto/Roboto-Thin.woff b/content/assets/fonts/roboto/Roboto-Thin.woff
new file mode 100644
index 0000000..2a98c1e
Binary files /dev/null and b/content/assets/fonts/roboto/Roboto-Thin.woff differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/fonts/roboto/Roboto-Thin.woff2
----------------------------------------------------------------------
diff --git a/content/assets/fonts/roboto/Roboto-Thin.woff2 b/content/assets/fonts/roboto/Roboto-Thin.woff2
new file mode 100644
index 0000000..a38025a
Binary files /dev/null and b/content/assets/fonts/roboto/Roboto-Thin.woff2 differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/Genapp-icon-512x512.png
----------------------------------------------------------------------
diff --git a/content/assets/img/Genapp-icon-512x512.png b/content/assets/img/Genapp-icon-512x512.png
new file mode 100644
index 0000000..e996a20
Binary files /dev/null and b/content/assets/img/Genapp-icon-512x512.png differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/Seagrid-icon-512x512.png
----------------------------------------------------------------------
diff --git a/content/assets/img/Seagrid-icon-512x512.png b/content/assets/img/Seagrid-icon-512x512.png
new file mode 100644
index 0000000..04592af
Binary files /dev/null and b/content/assets/img/Seagrid-icon-512x512.png differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/Ultrascan-icon-512x512.png
----------------------------------------------------------------------
diff --git a/content/assets/img/Ultrascan-icon-512x512.png b/content/assets/img/Ultrascan-icon-512x512.png
new file mode 100644
index 0000000..f138ce5
Binary files /dev/null and b/content/assets/img/Ultrascan-icon-512x512.png differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/airavata-architecture.png
----------------------------------------------------------------------
diff --git a/content/assets/img/airavata-architecture.png b/content/assets/img/airavata-architecture.png
new file mode 100644
index 0000000..e268eb5
Binary files /dev/null and b/content/assets/img/airavata-architecture.png differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/airavata-brand.png
----------------------------------------------------------------------
diff --git a/content/assets/img/airavata-brand.png b/content/assets/img/airavata-brand.png
new file mode 100644
index 0000000..6050e18
Binary files /dev/null and b/content/assets/img/airavata-brand.png differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/airavata-logo-shadow.png
----------------------------------------------------------------------
diff --git a/content/assets/img/airavata-logo-shadow.png b/content/assets/img/airavata-logo-shadow.png
new file mode 100644
index 0000000..06aea97
Binary files /dev/null and b/content/assets/img/airavata-logo-shadow.png differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/airavata-logo.png
----------------------------------------------------------------------
diff --git a/content/assets/img/airavata-logo.png b/content/assets/img/airavata-logo.png
new file mode 100644
index 0000000..65b3999
Binary files /dev/null and b/content/assets/img/airavata-logo.png differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/contribute.jpg
----------------------------------------------------------------------
diff --git a/content/assets/img/contribute.jpg b/content/assets/img/contribute.jpg
new file mode 100644
index 0000000..319b48e
Binary files /dev/null and b/content/assets/img/contribute.jpg differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/contribute.png
----------------------------------------------------------------------
diff --git a/content/assets/img/contribute.png b/content/assets/img/contribute.png
new file mode 100644
index 0000000..ed3ae8a
Binary files /dev/null and b/content/assets/img/contribute.png differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/course.jpg
----------------------------------------------------------------------
diff --git a/content/assets/img/course.jpg b/content/assets/img/course.jpg
new file mode 100644
index 0000000..ebc790f
Binary files /dev/null and b/content/assets/img/course.jpg differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/documentation.jpg
----------------------------------------------------------------------
diff --git a/content/assets/img/documentation.jpg b/content/assets/img/documentation.jpg
new file mode 100644
index 0000000..e6d9684
Binary files /dev/null and b/content/assets/img/documentation.jpg differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/export/hero-image.jpg
----------------------------------------------------------------------
diff --git a/content/assets/img/export/hero-image.jpg b/content/assets/img/export/hero-image.jpg
new file mode 100644
index 0000000..57309d7
Binary files /dev/null and b/content/assets/img/export/hero-image.jpg differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/hero-image-short-1.jpg
----------------------------------------------------------------------
diff --git a/content/assets/img/hero-image-short-1.jpg b/content/assets/img/hero-image-short-1.jpg
new file mode 100644
index 0000000..d29169a
Binary files /dev/null and b/content/assets/img/hero-image-short-1.jpg differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/hero-image.jpg
----------------------------------------------------------------------
diff --git a/content/assets/img/hero-image.jpg b/content/assets/img/hero-image.jpg
new file mode 100644
index 0000000..fa2dc1c
Binary files /dev/null and b/content/assets/img/hero-image.jpg differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/img/hero-image-001.jpg
----------------------------------------------------------------------
diff --git a/content/assets/img/img/hero-image-001.jpg b/content/assets/img/img/hero-image-001.jpg
new file mode 100644
index 0000000..1dadbdb
Binary files /dev/null and b/content/assets/img/img/hero-image-001.jpg differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/img/hero-image.jpg
----------------------------------------------------------------------
diff --git a/content/assets/img/img/hero-image.jpg b/content/assets/img/img/hero-image.jpg
new file mode 100644
index 0000000..a5ea92e
Binary files /dev/null and b/content/assets/img/img/hero-image.jpg differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/img/img/hero-image.jpg
----------------------------------------------------------------------
diff --git a/content/assets/img/img/img/hero-image.jpg b/content/assets/img/img/img/hero-image.jpg
new file mode 100644
index 0000000..fa2dc1c
Binary files /dev/null and b/content/assets/img/img/img/hero-image.jpg differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/keyboard-001.jpg
----------------------------------------------------------------------
diff --git a/content/assets/img/keyboard-001.jpg b/content/assets/img/keyboard-001.jpg
new file mode 100644
index 0000000..aec5ae3
Binary files /dev/null and b/content/assets/img/keyboard-001.jpg differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/keyboard.jpg
----------------------------------------------------------------------
diff --git a/content/assets/img/keyboard.jpg b/content/assets/img/keyboard.jpg
new file mode 100644
index 0000000..673a159
Binary files /dev/null and b/content/assets/img/keyboard.jpg differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/logo-story/Airavata-logo.png
----------------------------------------------------------------------
diff --git a/content/assets/img/logo-story/Airavata-logo.png b/content/assets/img/logo-story/Airavata-logo.png
new file mode 100644
index 0000000..7926c7e
Binary files /dev/null and b/content/assets/img/logo-story/Airavata-logo.png differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/logo-story/add-cloud-services.png
----------------------------------------------------------------------
diff --git a/content/assets/img/logo-story/add-cloud-services.png b/content/assets/img/logo-story/add-cloud-services.png
new file mode 100644
index 0000000..dec508a
Binary files /dev/null and b/content/assets/img/logo-story/add-cloud-services.png differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/logo-story/gateway.png
----------------------------------------------------------------------
diff --git a/content/assets/img/logo-story/gateway.png b/content/assets/img/logo-story/gateway.png
new file mode 100644
index 0000000..8fe5a16
Binary files /dev/null and b/content/assets/img/logo-story/gateway.png differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/logo-story/many-components.png
----------------------------------------------------------------------
diff --git a/content/assets/img/logo-story/many-components.png b/content/assets/img/logo-story/many-components.png
new file mode 100644
index 0000000..8d9c8f9
Binary files /dev/null and b/content/assets/img/logo-story/many-components.png differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/logo-story/one-component.png
----------------------------------------------------------------------
diff --git a/content/assets/img/logo-story/one-component.png b/content/assets/img/logo-story/one-component.png
new file mode 100644
index 0000000..753f928
Binary files /dev/null and b/content/assets/img/logo-story/one-component.png differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/logo.png
----------------------------------------------------------------------
diff --git a/content/assets/img/logo.png b/content/assets/img/logo.png
new file mode 100644
index 0000000..6fd0c82
Binary files /dev/null and b/content/assets/img/logo.png differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/one-component.png
----------------------------------------------------------------------
diff --git a/content/assets/img/one-component.png b/content/assets/img/one-component.png
new file mode 100644
index 0000000..795feb2
Binary files /dev/null and b/content/assets/img/one-component.png differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/parallax1.png
----------------------------------------------------------------------
diff --git a/content/assets/img/parallax1.png b/content/assets/img/parallax1.png
new file mode 100644
index 0000000..0d2f78a
Binary files /dev/null and b/content/assets/img/parallax1.png differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/project2.jpeg
----------------------------------------------------------------------
diff --git a/content/assets/img/project2.jpeg b/content/assets/img/project2.jpeg
new file mode 100644
index 0000000..941aa67
Binary files /dev/null and b/content/assets/img/project2.jpeg differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/project3.png
----------------------------------------------------------------------
diff --git a/content/assets/img/project3.png b/content/assets/img/project3.png
new file mode 100644
index 0000000..3e8d3c4
Binary files /dev/null and b/content/assets/img/project3.png differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/project4.jpg
----------------------------------------------------------------------
diff --git a/content/assets/img/project4.jpg b/content/assets/img/project4.jpg
new file mode 100644
index 0000000..a93a464
Binary files /dev/null and b/content/assets/img/project4.jpg differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/project5.png
----------------------------------------------------------------------
diff --git a/content/assets/img/project5.png b/content/assets/img/project5.png
new file mode 100644
index 0000000..adf8163
Binary files /dev/null and b/content/assets/img/project5.png differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/project6.jpeg
----------------------------------------------------------------------
diff --git a/content/assets/img/project6.jpeg b/content/assets/img/project6.jpeg
new file mode 100644
index 0000000..da4d4a3
Binary files /dev/null and b/content/assets/img/project6.jpeg differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/seagridworkflow-darktext.png
----------------------------------------------------------------------
diff --git a/content/assets/img/seagridworkflow-darktext.png b/content/assets/img/seagridworkflow-darktext.png
new file mode 100644
index 0000000..4162078
Binary files /dev/null and b/content/assets/img/seagridworkflow-darktext.png differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/img/tutorials.jpg
----------------------------------------------------------------------
diff --git a/content/assets/img/tutorials.jpg b/content/assets/img/tutorials.jpg
new file mode 100644
index 0000000..fce6048
Binary files /dev/null and b/content/assets/img/tutorials.jpg differ

http://git-wip-us.apache.org/repos/asf/airavata-site/blob/4f80cce3/content/assets/javascript/init.js
----------------------------------------------------------------------
diff --git a/content/assets/javascript/init.js b/content/assets/javascript/init.js
new file mode 100644
index 0000000..3a46386
--- /dev/null
+++ b/content/assets/javascript/init.js
@@ -0,0 +1,272 @@
+(function($){
+  $(function(){
+
+    $('.button-collapse').sideNav();
+	$('.scrollspy').scrollSpy();
+
+    /*** Animate word ***/
+
+    //set animation timing
+	var animationDelay = 2500,
+		//loading bar effect
+		barAnimationDelay = 3800,
+		barWaiting = barAnimationDelay - 3000, //3000 is the duration of the transition on the
loading bar - set in the scss/css file
+		//letters effect
+		lettersDelay = 50,
+		//type effect
+		typeLettersDelay = 150,
+		selectionDuration = 500,
+		typeAnimationDelay = selectionDuration + 800,
+		//clip effect 
+		revealDuration = 600,
+		revealAnimationDelay = 1500;
+	
+	initHeadline();
+	
+
+	function initHeadline() {
+		singleLetters($('.cd-headline.letters').find('b'));
+		animateHeadline($('.cd-headline'));
+	}
+
+	function singleLetters($words) {
+		$words.each(function(){
+			var word = $(this),
+				letters = word.text().split(''),
+				selected = word.hasClass('is-visible');
+			for (i in letters) {
+				if(word.parents('.rotate-2').length > 0) letters[i] = '<em>' + letters[i] +
'</em>';
+				letters[i] = (selected) ? '<i class="in">' + letters[i] + '</i>': '<i>'
+ letters[i] + '</i>';
+			}
+		    var newLetters = letters.join('');
+		    word.html(newLetters).css('opacity', 1);
+		});
+	}
+
+	function animateHeadline($headlines) {
+		var duration = animationDelay;
+		$headlines.each(function(){
+			var headline = $(this);
+			
+			if(headline.hasClass('loading-bar')) {
+				duration = barAnimationDelay;
+				setTimeout(function(){ headline.find('.cd-words-wrapper').addClass('is-loading') }, barWaiting);
+			} else if (headline.hasClass('clip')){
+				var spanWrapper = headline.find('.cd-words-wrapper'),
+					newWidth = spanWrapper.width() + 10
+				spanWrapper.css('width', newWidth);
+			} else if (!headline.hasClass('type') ) {
+				//assign to .cd-words-wrapper the width of its longest word
+				var words = headline.find('.cd-words-wrapper b'),
+					width = 0;
+				words.each(function(){
+					var wordWidth = $(this).width();
+				    if (wordWidth > width) width = wordWidth;
+				});
+				headline.find('.cd-words-wrapper').css('width', width);
+			};
+
+			//trigger animation
+			setTimeout(function(){ hideWord( headline.find('.is-visible').eq(0) ) }, duration);
+		});
+	}
+
+	function hideWord($word) {
+		var nextWord = takeNext($word);
+		
+		if($word.parents('.cd-headline').hasClass('type')) {
+			var parentSpan = $word.parent('.cd-words-wrapper');
+			parentSpan.addClass('selected').removeClass('waiting');	
+			setTimeout(function(){ 
+				parentSpan.removeClass('selected'); 
+				$word.removeClass('is-visible').addClass('is-hidden').children('i').removeClass('in').addClass('out');
+			}, selectionDuration);
+			setTimeout(function(){ showWord(nextWord, typeLettersDelay) }, typeAnimationDelay);
+		
+		} else if($word.parents('.cd-headline').hasClass('letters')) {
+			var bool = ($word.children('i').length >= nextWord.children('i').length) ? true : false;
+			hideLetter($word.find('i').eq(0), $word, bool, lettersDelay);
+			showLetter(nextWord.find('i').eq(0), nextWord, bool, lettersDelay);
+
+		}  else if($word.parents('.cd-headline').hasClass('clip')) {
+			$word.parents('.cd-words-wrapper').animate({ width : '2px' }, revealDuration, function(){
+				switchWord($word, nextWord);
+				showWord(nextWord);
+			});
+
+		} else if ($word.parents('.cd-headline').hasClass('loading-bar')){
+			$word.parents('.cd-words-wrapper').removeClass('is-loading');
+			switchWord($word, nextWord);
+			setTimeout(function(){ hideWord(nextWord) }, barAnimationDelay);
+			setTimeout(function(){ $word.parents('.cd-words-wrapper').addClass('is-loading') }, barWaiting);
+
+		} else {
+			switchWord($word, nextWord);
+			setTimeout(function(){ hideWord(nextWord) }, animationDelay);
+		}
+	}
+
+	function showWord($word, $duration) {
+		if($word.parents('.cd-headline').hasClass('type')) {
+			showLetter($word.find('i').eq(0), $word, false, $duration);
+			$word.addClass('is-visible').removeClass('is-hidden');
+
+		}  else if($word.parents('.cd-headline').hasClass('clip')) {
+			$word.parents('.cd-words-wrapper').animate({ 'width' : $word.width() + 10 }, revealDuration,
function(){ 
+				setTimeout(function(){ hideWord($word) }, revealAnimationDelay); 
+			});
+		}
+	}
+
+	function hideLetter($letter, $word, $bool, $duration) {
+		$letter.removeClass('in').addClass('out');
+		
+		if(!$letter.is(':last-child')) {
+		 	setTimeout(function(){ hideLetter($letter.next(), $word, $bool, $duration); }, $duration);
 
+		} else if($bool) { 
+		 	setTimeout(function(){ hideWord(takeNext($word)) }, animationDelay);
+		}
+
+		if($letter.is(':last-child') && $('html').hasClass('no-csstransitions')) {
+			var nextWord = takeNext($word);
+			switchWord($word, nextWord);
+		} 
+	}
+
+	function showLetter($letter, $word, $bool, $duration) {
+		$letter.addClass('in').removeClass('out');
+		
+		if(!$letter.is(':last-child')) { 
+			setTimeout(function(){ showLetter($letter.next(), $word, $bool, $duration); }, $duration);

+		} else { 
+			if($word.parents('.cd-headline').hasClass('type')) { setTimeout(function(){ $word.parents('.cd-words-wrapper').addClass('waiting');
}, 200);}
+			if(!$bool) { setTimeout(function(){ hideWord($word) }, animationDelay) }
+		}
+	}
+
+	function takeNext($word) {
+		return (!$word.is(':last-child')) ? $word.next() : $word.parent().children().eq(0);
+	}
+
+	function takePrev($word) {
+		return (!$word.is(':first-child')) ? $word.prev() : $word.parent().children().last();
+	}
+
+	function switchWord($oldWord, $newWord) {
+		$oldWord.removeClass('is-visible').addClass('is-hidden');
+		$newWord.removeClass('is-hidden').addClass('is-visible');
+	}
+
+	$('.button-collapse').sideNav({
+		menuWidth: 240, // Default is 240
+		closeOnClick: true // Closes side-nav on <a> clicks, useful for Angular/Meteor
+	});
+
+	$('.parallax').parallax();
+
+	var card  = document.querySelectorAll('.card-work');
+  	var transEndEventNames = {
+	      'WebkitTransition' : 'webkitTransitionEnd',
+	      'MozTransition'    : 'transitionend',
+	      'transition'       : 'transitionend'
+	},
+	transEndEventName = transEndEventNames[ Modernizr.prefixed('transition') ];
+
+	function addDashes(name) {
+		return name.replace(/([A-Z])/g, function(str,m1){ return '-' + m1.toLowerCase(); });
+	}
+
+	function getPopup(id) {
+		return document.querySelector('.popup[data-popup="' + id + '"]');
+	}
+
+	function getDimensions(el) {
+	   return el.getBoundingClientRect();
+	}
+
+	function getDifference(card, popup) {
+		var cardDimensions = getDimensions(card),
+	    	popupDimensions = getDimensions(popup);
+
+		return {
+		  	height: popupDimensions.height / cardDimensions.height,
+		  	width: popupDimensions.width / cardDimensions.width,
+		  	left: popupDimensions.left - cardDimensions.left,
+		  	top: popupDimensions.top - cardDimensions.top
+		}
+	}
+
+	function transformCard(card, size) {
+		return card.style[Modernizr.prefixed('transform')] = 'translate(' + size.left + 'px,' +
size.top + 'px)' + ' scale(' + size.width + ',' + size.height + ')';
+	}
+
+	function hasClass(elem, cls) {
+	    var str = " " + elem.className + " ";
+	    var testCls = " " + cls + " ";
+	    return(str.indexOf(testCls) != -1) ;
+	}
+
+	function closest(e) {
+	   var el = e.target || e.srcElement;
+	    if (el = el.parentNode) do { //its an inverse loop
+	        var cls = el.className;
+	        if (cls) {
+	            cls = cls.split(" ");
+	            if (-1 !== cls.indexOf("card-work")) {
+	                return el;
+	                break;
+	            }
+	        }
+	    } while (el = el.parentNode);
+	}
+
+	function scaleCard(e) {
+		var el = closest(e);
+		var target = el,
+		    id     = target.getAttribute('data-popup-id'),
+		    popup  = getPopup(id);
+
+		var size = getDifference(target, popup);
+
+	   	target.style[Modernizr.prefixed('transitionDuration')] = '0.5s';
+	   	target.style[Modernizr.prefixed('transitionTimingFunction')] = 'cubic-bezier(0.4, 0,
0.2, 1)';
+	   	target.style[Modernizr.prefixed('transitionProperty')] = addDashes(Modernizr.prefixed('transform'));
+	   	target.style['borderRadius'] = 0;
+	   
+	  	transformCard(target, size);
+	  	onAnimated(target, popup);
+	  	onPopupClick(target, popup);
+	}
+
+	function onAnimated(card, popup) {
+	 	card.addEventListener(transEndEventName, function transitionEnded() {
+	   		card.style['opacity'] = 0;
+	   		popup.style['visibility'] = 'visible';
+	   		popup.style['zIndex'] = 9999;
+	   		card.removeEventListener(transEndEventName, transitionEnded);
+	 	});
+	}
+
+	function onPopupClick(card, popup) {
+		popup.addEventListener('click', function toggleVisibility(e) {
+		  	var size = getDifference(popup, card);
+		  
+		  	card.style['opacity'] = 1;
+		  	card.style['borderRadius'] = '6px';
+		  	hidePopup(e);       
+		  	transformCard(card, size);
+		}, false);
+	}
+
+
+	function hidePopup(e) {
+		e.target.style['visibility'] = 'hidden';
+		e.target.style['zIndex'] = 2;
+	}
+
+	// [].forEach.call(card, function(card) {
+	// 	card.addEventListener('click', scaleCard, false);
+	// });
+
+	}); // end of document ready
+})(jQuery); // end of jQuery name space
\ No newline at end of file


Mime
View raw message