-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtoOneLineString.html
49 lines (48 loc) · 1.57 KB
/
toOneLineString.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<h1>Replace Elements</h1>
<h3>Function that replace elements in a given string</h3>
<p>Enter in the box below the string to replace</p>
<div>
<div style="display:block">
<textarea rows="8" cols="80" ng-model="stringToReplace"></textarea>
</div>
<div style="display:block">
<label>
<input type="checkbox" ng-model="checks.toOneLine">
<b>\n</b>
</label>
<label>
<input type="checkbox" ng-model="checks.tabSpaces" >
<b>\t</b>
</label>
<label>
<input type="checkbox" ng-model="checks.trim" >
<b>trim</b>
</label>
<label>
<input type="checkbox" ng-model="checks.toLowerCase" ng-click="UpdateCheckBox('toLowerCase')">
<b>to Lower Case</b>
</label>
<label>
<input type="checkbox" ng-model="checks.toUpperCase" ng-click="UpdateCheckBox('toUpperCase')">
<b>to Upper Case</b>
</label>
</div>
<div style="display:block">
<label>
<input type="textbox" ng-model="replaceIn"> Replace for
<input type="textbox" ng-model="replaceOut">
</label>
<label>
<button class="btn btn-default" style="display:block" ng-click="replaceString()">Replace</button>
</label>
</div>
</div>
<!--select ng-model="selectedType" ng-init="selectedType=types[0]" ng-options="x.typeConcat for x in types">
</select-->
<p style="color:yellow" ng-if="msgError != undefined">{{msgError}}</p>
<hr style="border-top: 1px solid rgb(169, 169, 169); margin-right: 1000px;">
<div style="display:block; margin-top: 20px;" ng-if="stringOut != undefined">
<label>
<textarea rows="8" cols="60" ng-model="stringOut"></textarea>
</label>
</div>