summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPooja Soundalgekar2016-07-13 00:01:01 +0530
committerPooja Soundalgekar2016-07-13 00:01:01 +0530
commitce05ba7adb6aa74508924360660ae442d3e2e5bd (patch)
treedea44d958f19b683836a79a1d37033c14b18d9d9
parent69ab3cbceb9c9efa281e3ec6e17cc884ea6c10ad (diff)
downloadxcos-on-web-ce05ba7adb6aa74508924360660ae442d3e2e5bd.tar.gz
xcos-on-web-ce05ba7adb6aa74508924360660ae442d3e2e5bd.tar.bz2
xcos-on-web-ce05ba7adb6aa74508924360660ae442d3e2e5bd.zip
made final changes
-rwxr-xr-xindex.html19
1 files changed, 12 insertions, 7 deletions
diff --git a/index.html b/index.html
index b22e435..fcdf709 100755
--- a/index.html
+++ b/index.html
@@ -734,13 +734,15 @@
}
var flip = false, mirror = false;
- if(cell.style.indexOf('stencilFlipV') == -1){
+ var style = cell.style;
+ var styleObject = styleToObject(style);
+ if(styleObject['stencilFlipV'] == null){
flip = false;
}
else
{
- var x = cell.style.indexOf('stencilFlipV');
- if(cell.style.charAt(x+13) == 0){
+
+ if(styleObject['stencilFlipV'] == 0){
flip = false;
}
else{
@@ -748,13 +750,13 @@
}
}
- if(cell.style.indexOf('stencilFlipH') == -1){
+ if(styleObject['stencilFlipH'] == null){
mirror = false;
}
else
{
- var x = cell.style.indexOf('stencilFlipH');
- if(cell.style.charAt(x+13) == 0){
+
+ if(styleObject['stencilFlipH'] == 0 ){
mirror = false;
}
else{
@@ -762,6 +764,7 @@
}
}
+ style = objectToStyle(styleObject);
var geometry = cell.getGeometry();
text = 'Block Name : ' + cell.value.getAttribute('blockElementName') + "\n" +
'Simulation : ' + cell.value.getAttribute('simulationFunctionName') + "\n" +
@@ -1688,7 +1691,9 @@
if (style.indexOf(';') == -1) {
style = style + ';';
}
-
+ else if ( style[style.length-1] != ';'){
+ style = style + ';';
+ }
var defaultStyle = style.substring(0, style.indexOf(';'));
var styleObject = {
"default": defaultStyle