-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
120 lines (101 loc) · 4.3 KB
/
index.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- import CSS -->
<link rel="stylesheet" href="assets/css/chalk.css">
<link rel="stylesheet" href="assets/css/default.css">
</head>
<body>
<a id="scrollup"><i class="el-icon-arrow-up"></i></a>
<div id="app">
</div>
<!-- import Vue before Element -->
<script src="assets/js/jquery.js"></script>
<script src="assets/js/vue.js"></script>
<!-- import JavaScript -->
<script src="assets/js/element.js"></script>
<script src="assets/js/locale.js"></script>
<script src="assets/js/app.js"></script>
</body>
<template id="apptemplate">
<div>
<div style="position:fixed;">
<el-button @click="currentFunction=0" v-bind:class="{currentbutton:currentFunction==0}">Add to Table
</el-button>
<el-button v-bind:class="{currentbutton:currentFunction==2}" @click="currentFunction=2"
:disabled="tableData.length==0">Export Table
</el-button>
</div>
<h1 style="text-align:center;">Keyword Cleaner</h1>
<p style="text-align:center;">Enter results from <a href="http://keywordshitter.com">keywordshitter.com</a> with
Keywords Everywhere results</p>
<el-container>
<!-- area for add to table "tab" -->
<el-aside width=="500px" v-if="currentFunction==0">
<h2>Enter Keywords to add to the Table</h2>
<div style="text-align:center;">
<el-button type="primary" :disabled="keywordInput.length==0" @click="parsekeywords">Add To Table
</el-button>
<el-button type="danger" :disabled="keywordInput.length==0" @click="clearkeywordtextarea">Clear
</el-button>
<el-button type="danger" :disabled="tableData.length==0" @click="tableData=[]">Clear Table
</el-button>
<el-checkbox v-model="clearInputAfter">Clear Input After Entered</el-checkbox>
</div>
<hr>
<el-input
type="textarea"
:autosize="{ minRows: 6}"
id="keywordtextarea"
width="300px"
placeholder="Example [165,000/mo - $0.41 - 0]"
v-model="keywordInput">
</el-input>
</el-aside>
<el-main v-if="currentFunction==0">
<!--<el-button @click="csvExport">Select Table Contents to Paste in Excel</el-button>-->
<el-table
v-loading="tableloading"
:data="tableData"
:default-sort="{prop: 'monthlysearch', order: 'descending'}"
style="width: 100%">
<el-table-column
prop="keyword"
label="Keyword"
>
</el-table-column>
<el-table-column
prop="monthlysearch"
label="Monthly Search Volume"
width="200"
sortable
>
</el-table-column>
<el-table-column
prop="costperclick"
label="Cost Per Click"
sortable>
</el-table-column>
<el-table-column
prop="competition"
label="Competition"
sortable>
</el-table-column>
</el-table>
</el-main>
<!-- end area for for add to table "tab" -->
<el-main v-if="currentFunction==2">
<div style="text-align:center;">
<el-button type="primary" @click="generatetable">Generate Table</el-button>
<el-button @click="selectElementContents" style="text-align:center;">Select Table</el-button>
<hr>
</div>
<div ref="exporttable" id="tabletocopy">
</div>
</el-main>
<!-- area for export -->
</el-container>
</div>
</template>
</html>