|
| 1 | +<html><head> |
| 2 | +<meta content="text/html; charset=UTF-8" http-equiv="content-type"> |
| 3 | +<title>HTML Wrap Util for Editing Introduction Content</title> |
| 4 | +<LINK href="stylesheets/wrap.css" rel="stylesheet" type="text/css"> |
| 5 | +<script src="http://code.jquery.com/jquery-1.9.1.js" type="text/javascript"></script> |
| 6 | +<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.js" type="text/javascript"></script> |
| 7 | +<script src="javascripts/wrap.js" type="text/javascript"></script> |
| 8 | +<script src="javascripts/link-index.js" type="text/javascript"></script> |
| 9 | +<script src="javascripts/register-links.js" type="text/javascript"></script> |
| 10 | + |
| 11 | +<script type="text/javascript">//<![CDATA[ |
| 12 | +$(window).load(function(){ |
| 13 | + var title = $('#fulltext').val(); |
| 14 | +var re = new RegExp(' ', "g"); |
| 15 | +var re2 = new RegExp('--', "g"); |
| 16 | +var re3 = new RegExp("[0-9]", "g"); |
| 17 | + |
| 18 | +if(title){ |
| 19 | + title = title.trim().toLowerCase(); |
| 20 | + title = title.split('.').join(""); |
| 21 | + title = title.replace(re3,'-'); |
| 22 | + title = title.replace(re, '-'); |
| 23 | + while(title.indexOf('--') != -1) { |
| 24 | + title = title.replace(re2, '-'); |
| 25 | + } |
| 26 | + |
| 27 | +} |
| 28 | +$('#showtext').val(title); |
| 29 | + |
| 30 | +});//]]> |
| 31 | + |
| 32 | +</script> |
| 33 | + |
| 34 | + |
| 35 | +</head> |
| 36 | +<body> |
| 37 | +<form id="form"> |
| 38 | +<div class="container"> |
| 39 | +<ul class='index'></ul> |
| 40 | +<p> <h2>Introduction </h2></p> |
| 41 | +<div class="left"> |
| 42 | +<textarea id="fulltext" value="" placeholder="Enter the Title Here" required></textarea> |
| 43 | +</div> |
| 44 | +<div class="center"> |
| 45 | +<div id="log"></div> |
| 46 | +<button id="wrap-intro">Create HTML</button> |
| 47 | +</div> |
| 48 | +<div class="right"> |
| 49 | +<textarea id="showtext"></textarea> |
| 50 | +</div > |
| 51 | +</div> |
| 52 | +</form> |
| 53 | +<h2>Formatting Introduction Section : Steps</h2> |
| 54 | +<p> |
| 55 | +Introduction for each article needs to be formatted using following steps |
| 56 | +<ul> |
| 57 | +<li>Enter the Introduction Section Text in Left text field. </li> |
| 58 | +<li>Click "Create HTML" Button.</li> |
| 59 | +<li>The HTML will be created on right side text field.</li> |
| 60 | +<li>Copy the HTML text and paste it in a new document.</li> |
| 61 | +</ul> |
| 62 | +</p> |
| 63 | +</body></html> |
0 commit comments