Skip to content

Commit

Permalink
version bump, pointless but had to inorder to release to bower
Browse files Browse the repository at this point in the history
  • Loading branch information
pbojinov committed Nov 7, 2014
1 parent 379fe33 commit 0641432
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Include the javascript in your HTML
Or use the minified version
```html
<script type="text/javascript" src="arrow-0.1.5.min.js">
<script type="text/javascript" src="arrow-0.1.6.min.js">
```
### Installing with Bower
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "arrow-js",
"version": "0.1.5",
"version": "0.1.6",
"description" : "Display an arrow pointing to the browser download location",
"main": [
"src/js/arrow.js"
Expand Down
15 changes: 0 additions & 15 deletions dist/arrow-0.1.5.min.js

This file was deleted.

4 changes: 2 additions & 2 deletions examples/ArrowJS-example.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h1>ArrowJS Example</h1>
/*
* -------------------------------------------------------
* Project: arrow
* Version: 0.1.5
* Version: 0.1.6
*
* Author: Petar Bojinov
* Contact: [email protected]
Expand All @@ -41,7 +41,7 @@ <h1>ArrowJS Example</h1>
* -------------------------------------------------------
*/

window.Arrow=function(window,document){"use strict";function _increaseOpacity(seconds){var arrow=document.getElementById("arrow-"+browser);arrow.style.display="block";var i=0,ieI=0,x=setInterval(function(){i+=.1,ieI+=10,"msie"===browser&&8>=browserVersion?arrow.filters&&(arrow.filters.item("DXImageTransform.Microsoft.Alpha").opacity=ieI):arrow.style.opacity=i},50);setTimeout(function(){clearInterval(x)},600),setTimeout(function(){_hide()},seconds||6e3)}function _decreaseOpacity(){var arrow=document.getElementById("arrow-"+browser),i=1,ieI=100,x=setInterval(function(){i-=.1,ieI-=10,"msie"===browser&&8>=browserVersion?arrow.filters&&(arrow.filters.item("DXImageTransform.Microsoft.Alpha").opacity=ieI):arrow.style.opacity=i},50);setTimeout(function(){clearInterval(x),arrow.style.display="none"},600)}function _applyStyleModern(node){node.style.position="fixed",node.style.zIndex=999,node.style.display="none",node.style.height="309px",node.style.width="186px",node.style.opacity=0,node.style.backgroundImage="url(http://i.imgur.com/aMwoyfN.png)",node.style.backgroundRepeat="no-repeat",node.style.backgroundPositionX="0",node.style.backgroundPositionY="0"}function _applyStyleIE8(node){node.style.top="10px",node.style.left="20px";var opacity="progid:DXImageTransform.Microsoft.Alpha(opacity=0) ",imgSrc='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="http://i.imgur.com/aMwoyfN.png", sizingMethod="scale") ',rotation='progid:DXImageTransform.Microsoft.Matrix(M11=1, M12=1.2246063538223773e-16, M21=-1.2246063538223773e-16, M22=-1, SizingMethod="auto expand") ';node.style.filter=opacity+imgSrc+rotation}function _applyStyleMs(node){node.style.bottom="50px",node.style.left="67%"}function _applyStyleMoz(node){node.style.top="0px",node.style.right="37px",node.style.transform="rotateX(180deg) rotateY(180deg)",node.style.MozTransform="rotateX(180deg) rotateY(180deg)"}function _applyStyleWebkit(node){node.style.bottom="0px",node.style.left="20px"}function _setStyleType(node){_applyStyleModern(node),"msie"===browser?8===browserVersion?_applyStyleIE8(node):(9===browserVersion||10===browserVersion)&&_applyStyleMs(node):"chrome"===browser?_applyStyleWebkit(node):"firefox"===browser&&browserVersion>=20&&_applyStyleMoz(node)}function _buildArrow(){var div=document.createElement("div");return div.setAttribute("id","arrow-"+browser),arrowNode=div,div}function _injectNode(node){document.body.appendChild(node)}function _isExist(){return!!document.getElementById("arrow-"+browser)}function _initArrow(){var arrow=_buildArrow();_setStyleType(arrow),_calculateArrowPosition(),_injectNode(arrow),_addWindowEvent("resize",_calculateArrowPosition),_addWindowEvent("scroll",_calculateArrowPosition)}function _addWindowEvent(event,functionReference){window.addEventListener?window.addEventListener(event,functionReference,!1):window.attachEvent&&window.attachEvent(event,functionReference)}function _calculateArrowPosition(){"number"==typeof window.innerWidth?(visibleWidth=window.innerWidth,visibleHeight=window.innerHeight):document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)&&(visibleWidth=document.documentElement.clientWidth,visibleHeight=document.documentElement.clientHeight),"msie"===browser&&9===browserVersion&&(1005>visibleWidth?arrowNode.style.bottom="85px":visibleWidth>1006&&(arrowNode.style.bottom="50px"))}function _hide(){if(!_isExist())throw"Invalid usage: There are no arrows on the page.";_decreaseOpacity()}function show(seconds){if(!_isExist())throw"Invalid usage: arrow does not exist";_increaseOpacity(seconds)}var arrowNode,version="0.1.5",Arrow={},browser="",browserVersion=0,visibleHeight=0,visibleWidth=0;return function(){var tem,N=navigator.appName,ua=navigator.userAgent,M=ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);M&&null!=(tem=ua.match(/version\/([\.\d]+)/i))&&(M[2]=tem[1]),M=M?[M[1],M[2]]:[N,navigator.appVersion,"-?"],browser=M[0].toLowerCase(),browserVersion=parseInt(M[1],10)}(),_initArrow(),Arrow._version=version,Arrow._browser=browser,Arrow._browserVersion=browserVersion,Arrow.show=show,Arrow}(window,window.document);
window.Arrow=function(window,document){"use strict";function _increaseOpacity(seconds){var arrow=document.getElementById("arrow-"+browser);arrow.style.display="block";var i=0,ieI=0,x=setInterval(function(){i+=.1,ieI+=10,"msie"===browser&&8>=browserVersion?arrow.filters&&(arrow.filters.item("DXImageTransform.Microsoft.Alpha").opacity=ieI):arrow.style.opacity=i},50);setTimeout(function(){clearInterval(x)},600),setTimeout(function(){_hide()},seconds||6e3)}function _decreaseOpacity(){var arrow=document.getElementById("arrow-"+browser),i=1,ieI=100,x=setInterval(function(){i-=.1,ieI-=10,"msie"===browser&&8>=browserVersion?arrow.filters&&(arrow.filters.item("DXImageTransform.Microsoft.Alpha").opacity=ieI):arrow.style.opacity=i},50);setTimeout(function(){clearInterval(x),arrow.style.display="none"},600)}function _applyStyleModern(node){node.style.position="fixed",node.style.zIndex=999,node.style.display="none",node.style.height="309px",node.style.width="186px",node.style.opacity=0,node.style.backgroundImage="url(http://i.imgur.com/aMwoyfN.png)",node.style.backgroundRepeat="no-repeat",node.style.backgroundPositionX="0",node.style.backgroundPositionY="0"}function _applyStyleIE8(node){node.style.top="10px",node.style.left="20px";var opacity="progid:DXImageTransform.Microsoft.Alpha(opacity=0) ",imgSrc='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="http://i.imgur.com/aMwoyfN.png", sizingMethod="scale") ',rotation='progid:DXImageTransform.Microsoft.Matrix(M11=1, M12=1.2246063538223773e-16, M21=-1.2246063538223773e-16, M22=-1, SizingMethod="auto expand") ';node.style.filter=opacity+imgSrc+rotation}function _applyStyleMs(node){node.style.bottom="50px",node.style.left="67%"}function _applyStyleMoz(node){node.style.top="0px",node.style.right="37px",node.style.transform="rotateX(180deg) rotateY(180deg)",node.style.MozTransform="rotateX(180deg) rotateY(180deg)"}function _applyStyleWebkit(node){node.style.bottom="0px",node.style.left="20px"}function _setStyleType(node){_applyStyleModern(node),"msie"===browser?8===browserVersion?_applyStyleIE8(node):(9===browserVersion||10===browserVersion)&&_applyStyleMs(node):"chrome"===browser?_applyStyleWebkit(node):"firefox"===browser&&browserVersion>=20&&_applyStyleMoz(node)}function _buildArrow(){var div=document.createElement("div");return div.setAttribute("id","arrow-"+browser),arrowNode=div,div}function _injectNode(node){document.body.appendChild(node)}function _isExist(){return!!document.getElementById("arrow-"+browser)}function _initArrow(){var arrow=_buildArrow();_setStyleType(arrow),_calculateArrowPosition(),_injectNode(arrow),_addWindowEvent("resize",_calculateArrowPosition),_addWindowEvent("scroll",_calculateArrowPosition)}function _addWindowEvent(event,functionReference){window.addEventListener?window.addEventListener(event,functionReference,!1):window.attachEvent&&window.attachEvent(event,functionReference)}function _calculateArrowPosition(){"number"==typeof window.innerWidth?(visibleWidth=window.innerWidth,visibleHeight=window.innerHeight):document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)&&(visibleWidth=document.documentElement.clientWidth,visibleHeight=document.documentElement.clientHeight),"msie"===browser&&9===browserVersion&&(1005>visibleWidth?arrowNode.style.bottom="85px":visibleWidth>1006&&(arrowNode.style.bottom="50px"))}function _hide(){if(!_isExist())throw"Invalid usage: There are no arrows on the page.";_decreaseOpacity()}function show(seconds){if(!_isExist())throw"Invalid usage: arrow does not exist";_increaseOpacity(seconds)}var arrowNode,version="0.1.6",Arrow={},browser="",browserVersion=0,visibleHeight=0,visibleWidth=0;return function(){var tem,N=navigator.appName,ua=navigator.userAgent,M=ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);M&&null!=(tem=ua.match(/version\/([\.\d]+)/i))&&(M[2]=tem[1]),M=M?[M[1],M[2]]:[N,navigator.appVersion,"-?"],browser=M[0].toLowerCase(),browserVersion=parseInt(M[1],10)}(),_initArrow(),Arrow._version=version,Arrow._browser=browser,Arrow._browserVersion=browserVersion,Arrow.show=show,Arrow}(window,window.document);
</script>

</body>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ArrowJS",
"version": "0.1.5",
"version": "0.1.6",
"title": "arrow",
"description": "Arrow is a small JavaScript library for displaying a cross-browser downloads arrow",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion src/js/arrow.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ window.Arrow = (function (window, document, undefined) {

'use strict';

var version = '0.1.5',
var version = '0.1.6',
Arrow = {},
arrowNode,
browser = '',
Expand Down

0 comments on commit 0641432

Please sign in to comment.