This commit is contained in:
		
							
								
								
									
										30
									
								
								content/post/endless-loop/index.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								content/post/endless-loop/index.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,30 @@
 | 
			
		||||
---
 | 
			
		||||
# Documentation: https://wowchemy.com/docs/managing-content/
 | 
			
		||||
 | 
			
		||||
title: "Endless Loop"
 | 
			
		||||
subtitle: ""
 | 
			
		||||
summary: ""
 | 
			
		||||
authors: []
 | 
			
		||||
tags: []
 | 
			
		||||
categories: []
 | 
			
		||||
date: 2022-04-10T22:42:25+02:00
 | 
			
		||||
lastmod: 2022-04-10T22:42:25+02:00
 | 
			
		||||
featured: false
 | 
			
		||||
draft: true
 | 
			
		||||
 | 
			
		||||
# Featured image
 | 
			
		||||
# To use, add an image named `featured.jpg/png` to your page's folder.
 | 
			
		||||
# Focal points: Smart, Center, TopLeft, Top, TopRight, Left, Right, BottomLeft, Bottom, BottomRight.
 | 
			
		||||
image:
 | 
			
		||||
  caption: ""
 | 
			
		||||
  focal_point: ""
 | 
			
		||||
  preview_only: false
 | 
			
		||||
 | 
			
		||||
# Projects (optional).
 | 
			
		||||
#   Associate this post with one or more of your projects.
 | 
			
		||||
#   Simply enter your project's folder or file name without extension.
 | 
			
		||||
#   E.g. `projects = ["internal-project"]` references `content/project/deep-learning/index.md`.
 | 
			
		||||
#   Otherwise, set `projects = []`.
 | 
			
		||||
projects: []
 | 
			
		||||
---
 | 
			
		||||
{{< loop_calc >}} 
 | 
			
		||||
							
								
								
									
										97
									
								
								layouts/shortcodes/loop_calc.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										97
									
								
								layouts/shortcodes/loop_calc.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,97 @@
 | 
			
		||||
<script>
 | 
			
		||||
    function Calculate(obj)
 | 
			
		||||
{
 | 
			
		||||
	tail = 53.33 * obj.size.value;
 | 
			
		||||
	length1 = obj.dia.value;
 | 
			
		||||
	size =  obj.size.value;
 | 
			
		||||
	body = length1 - 5.56 * size;
 | 
			
		||||
	stretch = 1.2;
 | 
			
		||||
	if (size == .109) stretch = 1.1875;
 | 
			
		||||
	if (size == .125) stretch = 1.2;
 | 
			
		||||
	if (size == .15625) stretch = 1.2;
 | 
			
		||||
	if (size == .1875) stretch = 1.2;
 | 
			
		||||
	if (size >= .25) stretch = 1.2;
 | 
			
		||||
	head = 16 * size;
 | 
			
		||||
 | 
			
		||||
	obj.length.value = Math.round(8*(3.1416 * length1 * (1 + stretch)  +24 *  size + 2 * size))/8;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	obj.mark1.value = Math.round(8*3.1416 * length1 * stretch / 2)/8;
 | 
			
		||||
	obj.cur2.value = Math.round(8*(  length1 * 3.1416 / 2 ))/8;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	obj.idia.value = Math.round(8*(          1.865 * size         ))/8;// loop size
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
</script>
 | 
			
		||||
<form name="wscform"> 
 | 
			
		||||
    <table>
 | 
			
		||||
    <tr>
 | 
			
		||||
       <td valigh="top">Loop Diameter</td>
 | 
			
		||||
       <td><input type="text" name="dia" size="18" value="8" > Inches
 | 
			
		||||
       </td>
 | 
			
		||||
    </tr>
 | 
			
		||||
 | 
			
		||||
    <tr>
 | 
			
		||||
       <td valigh="top">Line Size</td>
 | 
			
		||||
       <td>
 | 
			
		||||
       
 | 
			
		||||
       <select name="size">
 | 
			
		||||
           <option value=".109">7/64
 | 
			
		||||
           <option value=".125">1/8
 | 
			
		||||
           <option value=".15625">5/32
 | 
			
		||||
           <option value=".1875" selected> 3/16
 | 
			
		||||
           <option value=".25">1/4
 | 
			
		||||
           <option value=".3125">5/16
 | 
			
		||||
           <option value=".375">3/8
 | 
			
		||||
           <option value=".4375">7/16
 | 
			
		||||
           <option value=".500">1/2
 | 
			
		||||
       </select>
 | 
			
		||||
       Diameter of line
 | 
			
		||||
       </td>
 | 
			
		||||
    </tr>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    <tr>
 | 
			
		||||
       <td><input type="button" value="Calculate" onClick="Calculate(this.form)"></td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
       <td>Loop size</td>
 | 
			
		||||
       <td><input type="text" name="idia" size="18" value="0" readonly> OD of loop double braid</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
        <!-- <tr>
 | 
			
		||||
       <td>Capacity</td>
 | 
			
		||||
       <td><input type="text" name="idia2" size="18" value="0" readonly> Max diameter of load</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
       <td>Interior size</td>
 | 
			
		||||
       <td><input type="text" name="folded" size="18" value="0" readonly> inner stretched size</td>
 | 
			
		||||
    <tr> -->
 | 
			
		||||
       <td>Line Length</td>
 | 
			
		||||
       <td><input type="text" name="length" size="18" value="0" readonly> Total rope needed</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
       <td>Mark</td>
 | 
			
		||||
       <td><input type="text" name="mark1" size="18" value="0" readonly>   From center mark</td>
 | 
			
		||||
    </tr>
 | 
			
		||||
   <tr>
 | 
			
		||||
       <td>Extended Length</td>
 | 
			
		||||
       <td><input type="text" name="cur2" size="18" value="0" readonly>  Tip to tip</td>
 | 
			
		||||
    </tr> 
 | 
			
		||||
 | 
			
		||||
    <!-- <tr>
 | 
			
		||||
       <td>Body</td>
 | 
			
		||||
       <td><input type="text" name="body" size="18" value="0" readonly> </td>
 | 
			
		||||
    </tr>
 | 
			
		||||
    <tr>
 | 
			
		||||
       <td>Loop</td>
 | 
			
		||||
       <td><input type="text" name="loop" size="18" value="0" readonly>  </td>
 | 
			
		||||
    </tr> -->
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    </table>
 | 
			
		||||
</form> 
 | 
			
		||||
		Reference in New Issue
	
	Block a user