Skip to content

Commit

Permalink
new version number
Browse files Browse the repository at this point in the history
  • Loading branch information
kounelios13 committed Dec 27, 2016
1 parent 74f0d6f commit 00d25b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<div class="container">
<div class="jumbotron">
<h1 class="text-center">
<span>CSS Transformations v6.0</span>
<span>CSS Transformations v6.0.1</span>
</h1>
<p>Create stunning transformations</p>
<p>
Expand Down
13 changes: 3 additions & 10 deletions src/js/transformations.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,13 @@ var showGeneratorList = function() {
markup += "<div class='list-group-item generatorItem' data-index='1'>CSS Box shadow</div>\n\t\t\t\t";
markup += "<div class='list-group-item generatorItem' data-index='2'>CSS Border radius</div>\n\t\t\t\t";
markup += "<div class='list-group-item generatorItem' data-index='3'>CSS Text Shadow</div>\n</div>";

bootbox.alert({
message: markup,
callback: function() {
//https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map
list = map.call($(".generatorItemSelected"), function(i) {
return $(i).data("index");
});

if (list)
selectEnabledGenerators(list);
}
Expand Down Expand Up @@ -120,6 +118,7 @@ var Color = function(r, g, b, a) {
return " rgb(" + this.r + "," + this.g + "," + this.b + ")";
else
return " rgba(" + this.r + "," + this.g + "," + this.b + "," + this.a + ")";
//return this.a==1?" rgb(" + this.r + "," + this.g + "," + this.b + ")":" rgba(" + this.r + "," + this.g + "," + this.b + "," + this.a + ")";
}
this.toString = function() {
return this.getColor();
Expand All @@ -131,7 +130,6 @@ var log = function(o) {
var len = function(o) {
return o.length;
};

function saveCode(type) {
"use strict";
var file, blob;
Expand Down Expand Up @@ -188,7 +186,6 @@ function saveCode(type) {
});
saveAs(blob, type == 'f' ? 'favourites.css' : 'transformations.css');
}

function fav(type) {
switch (type) {
case "text-shadow":
Expand Down Expand Up @@ -231,8 +228,7 @@ function fav(type) {
}
$("#table_tran tbody tr:last").append("<td class='transform_marked marked'>" + final_transformation + "</td>");
transform_col++;
if (transform_col == 3) {
transform_col = 0;
if (transform_col % 3 == 0) {
$("#table_tran").append("</tr><tr>");
}
updateText("#totaltran", "(" + len(transform_fav) + ")");
Expand Down Expand Up @@ -267,16 +263,13 @@ function removefav() {
}
});
}

function update() {
function val(o) {
return $(o).val();
}

function float(o) {
return parseFloat(val(o));
}

function int(o) {
return parseInt(val(o));
}
Expand Down Expand Up @@ -315,7 +308,7 @@ function update() {
add_text_transform = text_shadow_x + text_shadow_y + text_shadow_blur != 0;
} //update
var createTransformation = function() {
final_transformation = "";
var final_transformation = "";
if (x)
final_transformation += "rotateX(" + x + "deg)";
if (y)
Expand Down

0 comments on commit 00d25b4

Please sign in to comment.