marta 0.28675 → 0.28879
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/marta/data/custom-xpath.html +24 -13
- data/lib/marta/data/custom-xpath.js +7 -3
- data/lib/marta/data/element-confirm.html +18 -12
- data/lib/marta/data/element-confirm.js +7 -3
- data/lib/marta/data/element.html +27 -17
- data/lib/marta/data/element.js +22 -7
- data/lib/marta/data/page.html +28 -19
- data/lib/marta/data/page.js +9 -7
- data/lib/marta/data/style.css +140 -51
- data/lib/marta/injector.rb +3 -1
- data/lib/marta/version.rb +1 -1
- data/marta.gemspec +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50b24bc2c301985ae455018ce3c4daf56f39986a
|
4
|
+
data.tar.gz: 97486b64df6b76156979309461bbd3f0cf5aadad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be9b83c7c361143334621a076b62251b7da1744dd783cca86bc9f6b4d5b72029318e465c671d01812572fe4c5ae6192447b0acd20ff47694acdaec89ec87d1fb
|
7
|
+
data.tar.gz: 73d0368e435ed0016d0866ec6c564832d954b290c029713417ee9ad9d0c8ac179faa1e32b0920999dbff4e64eca2d35028a93b7107728d832917e2713a87b6d3
|
data/README.md
CHANGED
@@ -206,7 +206,7 @@ g_page.search "I am in love with selenium."
|
|
206
206
|
|
207
207
|
**Q: What else?**
|
208
208
|
|
209
|
-
*A: Nothing. Marta is under development. Her version is 0.
|
209
|
+
*A: Nothing. Marta is under development. Her version is 0.28879 only. And I am not a professional developer. But I am training her on new tricks.*
|
210
210
|
|
211
211
|
## Internal Design
|
212
212
|
|
@@ -1,23 +1,34 @@
|
|
1
1
|
<div id=marta_s_everything martaclass=marta_smthing>
|
2
|
-
|
3
2
|
<div id=marta_s_text martaclass=marta_smthing>
|
4
|
-
<
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
<
|
3
|
+
<div martaclass=marta_smthing martastyle=header>
|
4
|
+
<h2 id=marta_main_title martaclass=marta_smthing></h2>
|
5
|
+
<div martastyle=icons_holder martaclass=marta_smthing>
|
6
|
+
<input type=button martaclass=marta_smthing martastyle=icon_button id=marta_hide onclick=marta_hide(); value=⇨ />
|
7
|
+
</div>
|
8
|
+
</div>
|
9
|
+
<div martaclass=marta_smthing martastyle=hint>
|
10
|
+
<p martaclass=marta_smthing>You are about to write your own xpath.</p>
|
11
|
+
<p martaclass=marta_smthing>Use it when element is: invisible, not present, should be found by exact xpath, marta fails to find it.</p>
|
12
|
+
<p martaclass=marta_smthing>Marta will highlight the elements targeted by your xpath. Sometimes it will even show hidden elements.</p>
|
13
|
+
<p martaclass=marta_smthing>Beware! Anything will be accepted when you will click Confirm. But maybe it will not work :)</p>
|
14
|
+
</div>
|
11
15
|
</div>
|
12
16
|
<div id=marta_s_content martaclass=marta_smthing>
|
13
|
-
<div martaclass=marta_smthing
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
+
<div id=marta_s_element_type martaclass=marta_smthing martastyle=options_holder>
|
18
|
+
<div martaclass=marta_smthing class=label id=marta_element_label>What we are looking for (one element or group?)</div>
|
19
|
+
<label martaclass=marta_smthing>
|
20
|
+
<input type=checkbox id=marta_array martaclass=marta_smthing>Collection
|
21
|
+
</label>
|
22
|
+
</div>
|
23
|
+
<div martastyle=buttons_holder martaclass=marta_smthing>
|
24
|
+
<input type=button martaclass=marta_smthing id=marta_try_again martastyle=action_button onclick=marta_try_again(); value="Try again" />
|
25
|
+
<input type=button martaclass=marta_smthing id=marta_confirm martastyle=confirm_button onclick=marta_confirm(); value=Confirm />
|
26
|
+
</div>
|
17
27
|
</div>
|
18
28
|
<div id=xpath_field martaclass=marta_smthing>
|
19
29
|
<div martaclass=marta_smthing class=label id=marta_xpath_label>Set XPATH here and hit Enter.</div>
|
20
|
-
<span martaclass=marta_smthing>XPATH:
|
30
|
+
<span martaclass=marta_smthing>XPATH:
|
31
|
+
<input onchange=marta_look(); type=text id=marta_user_xpath martaclass=marta_smthing value=//>
|
21
32
|
</span>
|
22
33
|
</div>
|
23
34
|
</hr>
|
@@ -50,7 +50,11 @@ function marta_try_again(){
|
|
50
50
|
marta_result = "2";
|
51
51
|
};
|
52
52
|
|
53
|
-
function
|
54
|
-
var
|
55
|
-
|
53
|
+
function marta_hide() {
|
54
|
+
var toHide = document.querySelector("[martaclass=marta_div]");
|
55
|
+
if (toHide.getAttribute("martastyle")=="hidden"){
|
56
|
+
toHide.setAttribute("martastyle", "none");
|
57
|
+
} else{
|
58
|
+
toHide.setAttribute("martastyle", "hidden");
|
59
|
+
};
|
56
60
|
}
|
@@ -1,20 +1,26 @@
|
|
1
1
|
<div id=marta_s_everything martaclass=marta_smthing>
|
2
2
|
<div id=marta_s_text martaclass=marta_smthing>
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
<
|
10
|
-
|
3
|
+
<div martaclass=marta_smthing martastyle=header>
|
4
|
+
<h2 id=marta_main_title martaclass=marta_smthing></h2>
|
5
|
+
<div martastyle=icons_holder martaclass=marta_smthing>
|
6
|
+
<input type=button martaclass=marta_smthing martastyle=icon_button id=marta_hide onclick=marta_hide(); value=⇨ />
|
7
|
+
</div>
|
8
|
+
</div>
|
9
|
+
<div martaclass=marta_smthing martastyle=hint>
|
10
|
+
<p martaclass=marta_smthing>You are about to confirm element selection</p>
|
11
|
+
<p martaclass=marta_smthing>Marta highlights elements right now</p>
|
12
|
+
<p martaclass=marta_smthing>If something wrong was found - maybe it is time to talk to the developer?</p>
|
13
|
+
<p martaclass=marta_smthing>Also you could try to set your own xpath</p>
|
14
|
+
<p martaclass=marta_smthing>Or you could try to find element in a basic way once again</p>
|
15
|
+
</div>
|
11
16
|
</div>
|
12
17
|
<div id=marta_s_content martaclass=marta_smthing>
|
13
|
-
<
|
14
|
-
|
15
|
-
|
18
|
+
<div martastyle=buttons_holder martaclass=marta_smthing>
|
19
|
+
<input type=button martaclass=marta_smthing martastyle=confirm_button id=marta_confirm onclick=marta_confirm(); value=Confirm />
|
20
|
+
<input type=button martaclass=marta_smthing martastyle=cancel_button id=marta_try_again onclick=marta_try_again(); value="Try again" />
|
21
|
+
<input type=button martaclass=marta_smthing martastyle=action_button id=marta_set_by_hand onclick=marta_set_by_hand(); value="Set by hand" />
|
22
|
+
</div>
|
16
23
|
</div>
|
17
24
|
<div id=attr_fields martaclass=marta_smthing>
|
18
25
|
</div>
|
19
|
-
</hr>
|
20
26
|
</div>
|
@@ -29,7 +29,11 @@ function marta_add_data() {
|
|
29
29
|
document.getElementById("marta_main_title").innerHTML = old_marta_Data + " elements found for " + marta_what;
|
30
30
|
};
|
31
31
|
|
32
|
-
function
|
33
|
-
var
|
34
|
-
|
32
|
+
function marta_hide() {
|
33
|
+
var toHide = document.querySelector("[martaclass=marta_div]");
|
34
|
+
if (toHide.getAttribute("martastyle")=="hidden"){
|
35
|
+
toHide.setAttribute("martastyle", "none");
|
36
|
+
} else{
|
37
|
+
toHide.setAttribute("martastyle", "hidden");
|
38
|
+
};
|
35
39
|
}
|
data/lib/marta/data/element.html
CHANGED
@@ -1,26 +1,36 @@
|
|
1
1
|
<div id=marta_s_everything martaclass=marta_smthing>
|
2
2
|
<div id=marta_s_text martaclass=marta_smthing>
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
<
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
3
|
+
<div martaclass=marta_smthing martastyle=header>
|
4
|
+
<h2 id=marta_main_title martaclass=marta_smthing></h2>
|
5
|
+
<div martastyle=icons_holder martaclass=marta_smthing>
|
6
|
+
<input type=button martaclass=marta_smthing martastyle=icon_button id=marta_hide onclick=marta_hide(); value=⇨ />
|
7
|
+
</div>
|
8
|
+
</div>
|
9
|
+
<div martaclass=marta_smthing martastyle=hint>
|
10
|
+
<p martaclass=marta_smthing>You are about to define some element</p>
|
11
|
+
<p martaclass=marta_smthing>CLICK to select element. Do not worry nothing will work</p>
|
12
|
+
<p martaclass=marta_smthing>After the click select the attributes of an element and parents</p>
|
13
|
+
<p martaclass=marta_smthing>To edit attribute value just change it and hit ENTER</p>
|
14
|
+
<p martaclass=marta_smthing>It is highly recomended to delete dynamically changing attributes</p>
|
15
|
+
<p martaclass=marta_smthing>IF you are gonna to find iframe! Elements in it are active now</p>
|
16
|
+
<p martaclass=marta_smthing>You should click at non-action element of iframe.</p>
|
17
|
+
<p martaclass=marta_smthing>Find it like a usual element and focus to it in code with dance_with(your_iframe)</p>
|
18
|
+
</div>
|
14
19
|
</div>
|
15
|
-
<div id=marta_s_content martaclass=marta_smthing>
|
16
|
-
<
|
17
|
-
|
20
|
+
<div id=marta_s_content martaclass=marta_smthing martastyle=main_content>
|
21
|
+
<div martastyle=buttons_holder martaclass=marta_smthing>
|
22
|
+
<input type=button martaclass=marta_smthing id=marta_confirm martastyle=confirm_button onclick=marta_end_loop(); value=Confirm />
|
23
|
+
<input type=button martaclass=marta_smthing id=marta_set_by_hand martastyle=action_button onclick=marta_set_by_hand(); value="Set by hand" />
|
24
|
+
</div>
|
18
25
|
</div>
|
19
|
-
<div id=marta_s_element_type martaclass=marta_smthing>
|
26
|
+
<div id=marta_s_element_type martaclass=marta_smthing martastyle=options_holder>
|
20
27
|
<div martaclass=marta_smthing class=label id=marta_element_label>What we are looking for (one element or group?)</div>
|
21
28
|
<label martaclass=marta_smthing><input type=checkbox id=marta_array martaclass=marta_smthing>Collection</label>
|
22
29
|
</div>
|
23
|
-
<div
|
30
|
+
<div martastyle=table_headers martaclass=marta_smthing>
|
31
|
+
<input type=text martaclass=marta_smthing martastyle=name_field value=attribute_name disabled=disabled;>
|
32
|
+
<input martaclass=marta_smthing martastyle=value_field type=text value=default_value disabled=disabled;>
|
33
|
+
</div>
|
34
|
+
<div id=attr_fields martaclass=marta_smthing martastyle=user_fields>
|
24
35
|
</div>
|
25
|
-
</hr>
|
26
36
|
</div>
|
data/lib/marta/data/element.js
CHANGED
@@ -25,7 +25,7 @@ function marta_add_field(title, what, key, marker) {
|
|
25
25
|
var att = document.createAttribute("martaclass");
|
26
26
|
att.value = "marta_smthing";
|
27
27
|
divtest.setAttributeNode(att);
|
28
|
-
divtest.innerHTML = "<div martaclass=marta_smthing class=label id=marta_title"+marta_room+">ATTR</div><div martaclass=marta_smthing class=content id=marta_staff"+marta_room+"><
|
28
|
+
divtest.innerHTML = "<div martaclass=marta_smthing class=label id=marta_title"+marta_room+">ATTR</div><div martaclass=marta_smthing martastyle=field_line class=content id=marta_staff"+marta_room+"><input martastyle=name_field martaclass=marta_smthing class=marta_s_name_field type=text disabled=disabled; id=marta_name"+marta_room+" value=><input onchange=marta_change_field(this); martastyle=value_field martaclass=marta_smthing type=text id=marta_default_value"+marta_room+" value=><input martastyle=cancel_button martaclass=marta_smthing type=button onclick=marta_delete_line("+marta_room+") value=Delete id=delete_marta_value"+marta_room+"</div>";
|
29
29
|
objTo.appendChild(divtest);
|
30
30
|
document.getElementById("marta_title"+marta_room ).innerHTML = title;
|
31
31
|
document.getElementById("marta_name"+marta_room ).value = what;
|
@@ -60,11 +60,22 @@ function marta_change_field(field){
|
|
60
60
|
marta_confirm();
|
61
61
|
};
|
62
62
|
|
63
|
+
function marta_clean_up(){
|
64
|
+
var toClear = document.body.querySelectorAll("[martaclass=marta_div]");
|
65
|
+
for (var i = 0; i < toClear.length; i++) {
|
66
|
+
toClear[i].parentNode.removeChild(toClear[i]);
|
67
|
+
};
|
68
|
+
var toClear = document.body.querySelectorAll("[martaclass=marta_script]");
|
69
|
+
for (var i = 0; i < toClear.length; i++) {
|
70
|
+
toClear[i].parentNode.removeChild(toClear[i]);
|
71
|
+
};
|
72
|
+
marta_room = 0;
|
73
|
+
};
|
74
|
+
|
63
75
|
function marta_confirm(){
|
64
76
|
if (marta_room != 0){
|
65
77
|
marta_result["options"]["collection"] = document.getElementById("marta_array").checked;
|
66
|
-
|
67
|
-
toClear.parentNode.removeChild(toClear);
|
78
|
+
marta_clean_up();
|
68
79
|
for (var what in marta_result){
|
69
80
|
for (var key in marta_result[what]){
|
70
81
|
if (marta_result[what][key] instanceof Array){
|
@@ -180,8 +191,8 @@ function marta_delete_line(line) {
|
|
180
191
|
var field = document.getElementById("marta_default_value"+line);
|
181
192
|
field.value = "";
|
182
193
|
marta_change_field(field);
|
183
|
-
title.parentNode.removeChild(title);
|
184
194
|
staff.parentNode.removeChild(staff);
|
195
|
+
title.parentNode.removeChild(title);
|
185
196
|
};
|
186
197
|
|
187
198
|
function marta_set_by_hand(){
|
@@ -200,7 +211,11 @@ function marta_end_loop(){
|
|
200
211
|
}
|
201
212
|
};
|
202
213
|
|
203
|
-
function
|
204
|
-
var
|
205
|
-
|
214
|
+
function marta_hide() {
|
215
|
+
var toHide = document.querySelector("[martaclass=marta_div]");
|
216
|
+
if (toHide.getAttribute("martastyle")=="hidden"){
|
217
|
+
toHide.setAttribute("martastyle", "none");
|
218
|
+
} else{
|
219
|
+
toHide.setAttribute("martastyle", "hidden");
|
220
|
+
};
|
206
221
|
}
|
data/lib/marta/data/page.html
CHANGED
@@ -1,24 +1,33 @@
|
|
1
1
|
<div id=marta_s_everything martaclass=marta_smthing>
|
2
|
-
<div id=marta_s_text>
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
<
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
<
|
15
|
-
|
16
|
-
|
17
|
-
|
2
|
+
<div martaclass=marta_smthing id=marta_s_text>
|
3
|
+
<div martaclass=marta_smthing martastyle=header>
|
4
|
+
<h2 martaclass=marta_smthing id=marta_main_title></h2>
|
5
|
+
<div martaclass=marta_smthing martastyle=icons_holder>
|
6
|
+
<input type=button martaclass=marta_smthing martastyle=icon_button id=marta_hide onclick=marta_hide(); value=⇨ />
|
7
|
+
</div>
|
8
|
+
</div>
|
9
|
+
<div martaclass=marta_smthing martastyle=hint>
|
10
|
+
<p>You are about to add some vars to the page_object</p>
|
11
|
+
<p>Please use only valid names for ruby vars (no <b>CROCO</b>, <b>special symbols</b>, just <b>some_var</b> or <b>anotherVar</b>)</p>
|
12
|
+
<p>You can use variable in the other one adding: <b>#{@your_var}</b> just like in ruby</p>
|
13
|
+
<p>Note that @ will be added to your var name automatically.</p>
|
14
|
+
<p>So if you have defined <b>something</b> and you wanna use the value of it in the other var you should write <b>#{@something}</b></p>
|
15
|
+
<p>You should set a var with the <b>url</b> name if you are gonna use <b>your_page.open_page</b> method later</p>
|
16
|
+
<p>Your values provided here will be default for your page_object but you can change it like <b>your_page.your_var = newvalue</b></p>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
<div id=marta_s_content martastyle=main_content>
|
20
|
+
<div martastyle=buttons_holder>
|
21
|
+
<input type=button martastyle=action_button martaclass=marta_smthing id=marta_more_fields onclick=marta_add_field(); value=Add More />
|
22
|
+
<input type=button martastyle=confirm_button martaclass=marta_smthing id=marta_confirm onclick=marta_confirm(); value=Confirm />
|
23
|
+
</div>
|
24
|
+
<div id=vars_fileds martastyle=user_fields>
|
18
25
|
<div class=label>Custom vars:</div>
|
19
26
|
<div class=content>
|
27
|
+
<div martastyle=table_headers martaclass=marta_smthing>
|
28
|
+
<input type=text martaclass=marta_smthing martastyle=name_field value=variable_name disabled=disabled;>
|
29
|
+
<input martaclass=marta_smthing martastyle=value_field type=text value=default_value disabled=disabled;>
|
30
|
+
</div>
|
20
31
|
</div>
|
21
|
-
</div>
|
22
|
-
</div>
|
23
|
-
</hr>
|
32
|
+
</div>
|
24
33
|
</div>
|
data/lib/marta/data/page.js
CHANGED
@@ -6,8 +6,7 @@ function marta_add_field() {
|
|
6
6
|
marta_room++;
|
7
7
|
var objTo = document.getElementById("vars_fileds");
|
8
8
|
var divtest = document.createElement("div");
|
9
|
-
divtest.innerHTML = "<div
|
10
|
-
|
9
|
+
divtest.innerHTML = "<div martastyle=field_line id=marta_staff"+marta_room+"><input type=text martaclass=marta_smthing martastyle=name_field id=marta_name"+marta_room+" value=><input martaclass=marta_smthing martastyle=value_field type=text id=marta_default_value"+marta_room+" value=><input martaclass=marta_smthing martastyle=cancel_button type=button onclick=marta_delete_line("+marta_room+") value=Delete id=delete_marta_value"+marta_room+"</div>";
|
11
10
|
objTo.appendChild(divtest);
|
12
11
|
};
|
13
12
|
function marta_confirm(){
|
@@ -31,13 +30,16 @@ function marta_add_data() {
|
|
31
30
|
};
|
32
31
|
|
33
32
|
function marta_delete_line(line) {
|
34
|
-
var title = document.getElementById("marta_title"+line);
|
35
33
|
var staff = document.getElementById("marta_staff"+line);
|
36
34
|
title.parentNode.removeChild(title);
|
37
35
|
staff.parentNode.removeChild(staff);
|
38
|
-
|
36
|
+
};
|
39
37
|
|
40
|
-
function
|
41
|
-
var
|
42
|
-
|
38
|
+
function marta_hide() {
|
39
|
+
var toHide = document.querySelector("[martaclass=marta_div]");
|
40
|
+
if (toHide.getAttribute("martastyle")=="hidden"){
|
41
|
+
toHide.setAttribute("martastyle", "none");
|
42
|
+
} else{
|
43
|
+
toHide.setAttribute("martastyle", "hidden");
|
44
|
+
};
|
43
45
|
}
|
data/lib/marta/data/style.css
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
80% {border: 4px dashed #DDA0DD}
|
7
7
|
100% {border: 4px dashed #6495ED;}}
|
8
8
|
|
9
|
-
div
|
9
|
+
div[martaclass=marta_div] * {
|
10
10
|
animation : none;
|
11
11
|
animation-delay : 0;
|
12
12
|
animation-direction : normal;
|
@@ -123,7 +123,6 @@ div#marta_s_everything *, div#marta_s_everything {
|
|
123
123
|
page-break-inside : auto;
|
124
124
|
perspective : none;
|
125
125
|
perspective-origin : 50% 50%;
|
126
|
-
|
127
126
|
right : auto;
|
128
127
|
tab-size : 8;
|
129
128
|
table-layout : auto;
|
@@ -153,64 +152,154 @@ div#marta_s_everything *, div#marta_s_everything {
|
|
153
152
|
word-spacing : normal;
|
154
153
|
|
155
154
|
}
|
156
|
-
div
|
157
|
-
|
158
|
-
|
155
|
+
div[martaclass=marta_div] {
|
156
|
+
border: 2px solid black;
|
157
|
+
outline: 2px solid #bbbbbb;
|
158
|
+
background-color: lightgray;
|
159
|
+
}
|
160
|
+
|
161
|
+
div div[martastyle=header] {
|
162
|
+
background: linear-gradient(to right, blue , lightblue);
|
163
|
+
padding: 0;
|
164
|
+
padding-bottom: 0;
|
165
|
+
padding-left: 0;
|
166
|
+
padding-right: 0;
|
167
|
+
padding-top: 0;
|
168
|
+
color: white;
|
169
|
+
display: flex;
|
170
|
+
}
|
171
|
+
|
172
|
+
div[martastyle=icons_holder] {
|
173
|
+
margin-left: auto;
|
174
|
+
}
|
175
|
+
|
176
|
+
input[martastyle=icon_button] {
|
177
|
+
color: black;
|
178
|
+
background-color: lightgrey;
|
179
|
+
border: 1px solid black;
|
180
|
+
visibility: visible;
|
181
|
+
}
|
182
|
+
|
183
|
+
div[martaclass=marta_div][martastyle=hidden] *:not([martastyle=icon_button]) {
|
184
|
+
visibility: hidden;
|
185
|
+
}
|
186
|
+
|
187
|
+
div[martaclass=marta_div][martastyle=hidden]{
|
188
|
+
height: 0px;
|
189
|
+
outline: none;
|
190
|
+
border: none;
|
191
|
+
}
|
192
|
+
|
193
|
+
h2#marta_main_title {
|
194
|
+
font-size: 20px;
|
195
|
+
}
|
196
|
+
|
159
197
|
div[martaclass=marta_div] {
|
160
198
|
position : relative;
|
161
199
|
z-index : 150000;
|
162
200
|
padding: 0;
|
163
201
|
margin: 0px 0px 0px 0px;
|
164
|
-
border: 4px solid rgb(115,115,100);
|
165
|
-
font-size: 14px;
|
166
|
-
text-align: left;
|
167
|
-
background-color: rgb(230,230,200);
|
168
|
-
color: black;
|
169
202
|
}
|
170
203
|
|
171
|
-
div[martastyle=
|
172
|
-
|
204
|
+
div[martastyle=hint] {
|
205
|
+
background-color: #F6F5D7;
|
206
|
+
color: black;
|
207
|
+
text-align: center;
|
208
|
+
padding: 5px;
|
209
|
+
border-radius: 6px;
|
210
|
+
z-index: 1;
|
211
|
+
display: table;
|
212
|
+
margin: 0 auto;
|
173
213
|
}
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
div#marta_s_everything input[type=text].marta_s_name_field{
|
196
|
-
width: 20%;
|
197
|
-
}
|
198
|
-
|
199
|
-
div#marta_s_everything div.label,
|
200
|
-
div#marta_s_everything label {
|
201
|
-
text-decoration: underline;
|
202
|
-
font-size: 16px;
|
203
|
-
}
|
204
|
-
div#marta_s_everything input[type=checkbox]
|
205
|
-
{ padding-left:5px;
|
206
|
-
height:16px;
|
207
|
-
display:inline-block;
|
208
|
-
line-height:16px;
|
209
|
-
background-repeat:no-repeat;
|
210
|
-
background-position: 0 0;
|
211
|
-
font-size:16px;
|
212
|
-
vertical-align:middle;
|
214
|
+
|
215
|
+
div[martaclass=marta_div] b {
|
216
|
+
color: red;
|
217
|
+
}
|
218
|
+
|
219
|
+
div[martastyle=buttons_holder] {
|
220
|
+
margin-top: 10px;
|
221
|
+
text-align: center;
|
222
|
+
}
|
223
|
+
|
224
|
+
input[martastyle=action_button], input[martastyle=confirm_button],
|
225
|
+
input[martastyle=cancel_button] {
|
226
|
+
border-style: solid;
|
227
|
+
border-width: 1px;
|
228
|
+
background: linear-gradient(lightgrey , grey);
|
229
|
+
border-radius: 3px;
|
230
|
+
padding: 6px 8px;
|
231
|
+
text-align: center;
|
232
|
+
text-decoration: none;
|
233
|
+
display: inline-block;
|
234
|
+
font-size: 14px;
|
213
235
|
}
|
236
|
+
|
237
|
+
input[martastyle=action_button]:hover {
|
238
|
+
background: linear-gradient(lightblue , blue);
|
239
|
+
border-color: blue;
|
240
|
+
}
|
241
|
+
|
242
|
+
input[martastyle=confirm_button]:hover {
|
243
|
+
background: linear-gradient(lightgreen , green);
|
244
|
+
border-color: green;
|
245
|
+
}
|
246
|
+
|
247
|
+
input[martastyle=cancel_button]:hover {
|
248
|
+
background: linear-gradient(pink , red);
|
249
|
+
border-color: red;
|
250
|
+
}
|
251
|
+
|
252
|
+
div[martastyle=field_line] {
|
253
|
+
margin-left: 10px;
|
254
|
+
}
|
255
|
+
|
256
|
+
div[martastyle=table_headers] {
|
257
|
+
margin-left: 10px;
|
258
|
+
display: flex;
|
259
|
+
}
|
260
|
+
|
261
|
+
input[martaclass=marta_smthing][type=text] {
|
262
|
+
width: 50%;
|
263
|
+
padding: 6px 8px;
|
264
|
+
font-size: 14px;
|
265
|
+
background-color: white;
|
266
|
+
border-color: black;
|
267
|
+
border-style: solid;
|
268
|
+
border-width: 1px;
|
269
|
+
}
|
270
|
+
|
271
|
+
input[type=text][martastyle=name_field] {
|
272
|
+
width: 20%;
|
273
|
+
}
|
274
|
+
|
275
|
+
div[martastyle=options_holder] {
|
276
|
+
margin-left: 10px;
|
277
|
+
display: table;
|
278
|
+
border-style: solid;
|
279
|
+
border-width: 1px;
|
280
|
+
border-radius: 5px;
|
281
|
+
}
|
282
|
+
|
283
|
+
input[martastyle=name_field]:disabled, input[martastyle=value_field]:disabled{
|
284
|
+
background: linear-gradient(to right, lightgrey , white);
|
285
|
+
}
|
286
|
+
|
287
|
+
input[martaclass=marta_smthing][type=checkbox] {
|
288
|
+
-webkit-appearance: none;
|
289
|
+
background-color: white;
|
290
|
+
border: 3px solid white;
|
291
|
+
padding: 6px;
|
292
|
+
border-radius: 3px;
|
293
|
+
display: inline-block;
|
294
|
+
position: relative;
|
295
|
+
}
|
296
|
+
|
297
|
+
input[martaclass=marta_smthing][type=checkbox]:checked {
|
298
|
+
background-color: darkgrey;
|
299
|
+
border: 3px solid white;
|
300
|
+
color: #99a1a7;
|
301
|
+
}
|
302
|
+
|
214
303
|
[martaclass=foundbymarta]
|
215
304
|
{animation: marta_found 6s infinite;
|
216
305
|
}
|
data/lib/marta/injector.rb
CHANGED
@@ -69,7 +69,9 @@ module Marta
|
|
69
69
|
files_to_page
|
70
70
|
@data ||= Hash.new
|
71
71
|
insert_to_page('script', "var marta_what = \"#{@title}\"", false)
|
72
|
-
insert_to_page('script',
|
72
|
+
insert_to_page('script',
|
73
|
+
"var old_marta_Data = #{@data}".gsub('=>',':').
|
74
|
+
gsub('nil','null'),
|
73
75
|
false)
|
74
76
|
@engine.execute_script("marta_add_data();")
|
75
77
|
end
|
data/lib/marta/version.rb
CHANGED
data/marta.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.28879'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergei Seleznev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07-
|
11
|
+
date: 2017-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|