Wednesday, 12 November 2014

REMOVE LINE BRAKE TOOL CODE

---------------------------------------------------------------------------------------------
COPY AND PASTE BELOW CODE IN POST HTML SECTION
-----------------------------------------------------------------------------------------------

<div dir="ltr" style="text-align: left;" trbidi="on">
<html>
<head>
<title>LINE BREAK REMOVER TOOL </title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script type='text/javascript'>
//<![CDATA[
function removeBreaks(){
var para = document.getElementById("paragraphs").checked;
var nopara = document.getElementById("noparagraphs").checked;
var noBreaksText = document.getElementById("oldText").value;
noBreaksText = noBreaksText.replace(/(\r\n|\n|\r)/gm,"<1br />");
re1 = /<1br \/><1br \/>/gi;
re1a = /<1br \/><1br \/><1br \/>/gi;
if(nopara == 1 || nopara == true){
noBreaksText = noBreaksText.replace(re1," ");
}else{
noBreaksText = noBreaksText.replace(re1a,"<1br /><2br />");
noBreaksText = noBreaksText.replace(re1,"<2br />");
}
re2 = /\<1br \/>/gi;
noBreaksText = noBreaksText.replace(re2, " ");
re3 = /\s+/g;
noBreaksText = noBreaksText.replace(re3," ");
re4 = /<2br \/>/gi;
noBreaksText = noBreaksText.replace(re4,"\n\n");
document.getElementById("newText").value = noBreaksText;
}
function clearText(){
$('#oldText').val('');
$('#newText').val('');
$("#oldText").focus()
}
//]]>
</script>

<style type="text/css">
h2 {
color:#E86032;
font-family:'Lucida Sans Unicode', 'Lucida Grande', sans-serif;
font-size:18px;
margin:0;
padding:8px 0;
}

/* CONTENT */
.flat{margin:0;padding:0;}
.online-tools{margin:0 0 20px 0;padding:20px; border: 1px dashed #999999;background-color:#dfecfa;clear:both;-moz-border-radius: 12px;border-radius: 12px;}
.resourcelist{margin: 0 0 2% 0;padding:2%;border:1px solid #4592d4;-webkit-border-radius: 12px;-moz-border-radius: 12px;border-radius: 12px;}
.mright{margin-right:20px;}
.mbottom{margin-bottom:15px;}
.clb{clear:both;}
.tfquote{font-style:italic;color:#7e7f80;font-size:16px;padding-left:30px;padding-right:30px;}
.hpagebox{float:right;margin: 15px 0 20px 10px;padding:20px 20px;width:242px;border:1px solid #4592d4;-webkit-border-radius: 12px;-moz-border-radius: 12px;border-radius: 12px;}
.hpagebox h2{font-size: 21px;color: #3b6e9a;margin-bottom:0;padding-bottom:4px;}
.hpagebox p{font-size: 15px;margin-top:0;padding-top:0;}
.hpagelist li{line-height:23px;}
hr{margin:15px 0; padding:0;height: 1px;background-color: #ea6f15;border:none}
.fleft{float:left;padding: 5px 10px 5px 0px;}
.fright{float:right;padding: 5px 0px 5px 10px;}
.code{font-family:courier,sans-serif;color: #031f0c;padding:20px 10px;border-top: 2px dotted #cccccc;border-bottom: 2px dotted #cccccc;}
.cmt{font-family:courier,sans-serif;color: #006633;}

/* FORMS */
form{padding:0;margin:0;}
textarea{width:99%;margin:0;padding:0;}
form h2{margin:0;padding:0;}
.frmbtn{margin: 0 0 20px 0;padding:6px 9px;color:#006699;font-size:15px;cursor:pointer;}
button{cursor:pointer;}
</style>

</head>

<body>
<div id="wrapper">
<div id="main">
<div id="content">
<h1 id="tools">
Line Break Removal Tool</h1>
<div class="adleft">
<form action="remove-line-breaks.php" class="online-tools" method="post">
<h2>
Remove Line Breaks</h2>
Paste your text in the box below and then click the button.<br />

The new text will appear in the box at the bottom of the page.<br />

<div class="flat">
<input checked="checked" id="noparagraphs" name="paragraphs" type="radio" value="no" /> Remove line breaks and paragraph breaks</div>
<div class="flat">
<input id="paragraphs" name="paragraphs" type="radio" value="yes" /> Remove line breaks only (preserve paragraphs)</div>
<textarea cols="36" id="oldText" name="oldText" rows="6"></textarea><br />

<input class="frmbtn" name="Remove-Line-Breaks" onclick="javascript:removeBreaks()" type="button" value="Remove Line Breaks" /> <input class="frmbtn" id="Clear-Text" name="Clear-Text" onclick="javascript:clearText()" style="color: #666666; margin-left: 30px;" type="button" value="Reset" /><br />

<h2>
New Text without Line Breaks</h2>
<div class="flat">
Copy your new text without line breaks from the box below.</div>
<textarea cols="36" id="newText" name="newText" onclick="javascript:this.form.newText.focus();this.form.newText.select();" rows="9"></textarea>
</form>
</div>
</div>
</div>
</div>
</body>
</html>

</div>

0 comments:

Post a Comment

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.

FB Gadgets | Template Designed by Fatakat PhotosCoolBThemes.com
Code by : paid web directory

https://www.google.co.uk/search?q=site%3Ablogspot.com+fbgadgets