Created
February 6, 2011 02:24
-
-
Save hasenj/813039 to your computer and use it in GitHub Desktop.
تخطيط العود .. افتح الملف في المتصفح و اطبعه
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>تخطيط العود</p> | |
<style type="text/css"> | |
p { direction: rtl; text-align: center; font: 24pt normal serif; width: 400px; } | |
div { float: left; height: 100px; border: solid 1px gray; border-right: none; } | |
</style> | |
<script type="text/javascript"> | |
// <div style="width: 3.3cm;"> </div> | |
var m = 1.059463094; //magic number | |
var a = 60; | |
var b = a; | |
for(var i = 0; i < 8; i++) { | |
b = a/m; | |
var w = a - b; | |
document.write("<div style='width:" + w + "cm;'> </div>\n"); | |
a = b; | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment