Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
p2p.faircoin.co
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FairCoin.Co
p2p.faircoin.co
Commits
605d972e
Commit
605d972e
authored
4 years ago
by
TonyFord
Browse files
Options
Downloads
Patches
Plain Diff
qr code improvements
parent
21826753
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
_includes/overview.html
+4
-28
4 additions, 28 deletions
_includes/overview.html
_plugins/array.rb
+5
-1
5 additions, 1 deletion
_plugins/array.rb
css/main.scss
+24
-0
24 additions, 0 deletions
css/main.scss
with
33 additions
and
29 deletions
_includes/overview.html
+
4
−
28
View file @
605d972e
...
...
@@ -69,8 +69,8 @@
{% capture price %}{% if price_ex != "" %}{{price_ex}}{% else %}{{ o.price-source }}{% endif %}{% endcapture %}
<div
class=
"orderlist-price"
><font
class=
"faircoin-price"
>
{{ o.price-per-unit | divided_by: price | round:1 | decimals }} FAIR
</font><br>
{% if min-size > 0 %}{{ min-size }}..{% endif %}{{ max-size }} {{ o.unit }}{% if site.data.price-sources[priceref] %}
<br>
( {{ o.price-per-unit | decimals }} {{ site.data.price-sources[priceref].currency }} / {{ o.unit }} )
<br>
( {{ price }} {{ site.data.price-sources[priceref].currency }} / FAIR )
<br><i>
{% if price_ex != "" %}
<a
href=
"{{ site.data.price-sources[o.price-source].www }}"
>
{{ o.price-source | replace: '-','/' }}
</a>
{% else %}fixed price{% endif %}
</i>
{% else %}
<br><br><br>
{% endif %}
<div
class=
"qrcode
d-non
e"
>
<div
onclick=
"$(this).parent().toggleClass('
d-non
e')"
id=
"qrcode_{{ peer[0] }}_{{ hid }}"
data-price=
"{{ o.price-per-unit | divided_by: price | round:1 | decimals }}"
class=
""
></div>
<div
class=
"qrcode
invisbl
e"
>
<div
onclick=
"$(this).parent().toggleClass('
invisbl
e')"
id=
"qrcode_{{ peer[0] }}_{{ hid }}"
data-price=
"{{ o.price-per-unit | divided_by: price | round:1 | decimals }}"
class=
""
></div>
</div>
</div>
</div>
...
...
@@ -83,30 +83,6 @@
</div>
<style>
.qrcode
{
position
:
relative
;
width
:
0px
;
height
:
0px
;
right
:
200px
;
top
:
-85px
;
z-index
:
200
;
}
.qrcode
>
div
{
z-index
:
201
;
height
:
150px
;
width
:
150px
;
background
:
white
;
border
:
20px
solid
white
;
}
.qrcode.d-none
{
z-index
:
0
;
}
</style>
<script>
function
createQRCode
(
qrcode
){
...
...
@@ -126,8 +102,8 @@ function createQRCode(qrcode){
window
[
qrcode
].
makeCode
(
url
);
// make another code.
}
$
(
'
.qrcode
'
).
toggleClass
(
'
d-non
e
'
,
true
);
$
(
'
#
'
+
qrcode
).
parent
().
toggleClass
(
'
d-non
e
'
);
$
(
'
.qrcode
'
).
toggleClass
(
'
invisbl
e
'
,
true
);
$
(
'
#
'
+
qrcode
).
parent
().
toggleClass
(
'
invisbl
e
'
);
}
...
...
This diff is collapsed.
Click to expand it.
_plugins/array.rb
+
5
−
1
View file @
605d972e
...
...
@@ -20,7 +20,11 @@ module Arrays
def
objectsize
(
input
)
c
=
0
for
a
in
input
c
+=
a
[
1
].
length
for
aa
in
a
[
1
]
if
aa
[
'test'
]
!=
true
c
+=
1
end
end
end
c
end
...
...
This diff is collapsed.
Click to expand it.
css/main.scss
+
24
−
0
View file @
605d972e
...
...
@@ -443,3 +443,27 @@ bid {
.user-address
{
cursor
:
pointer
;
}
.qrcode
{
position
:
relative
;
width
:
0px
;
height
:
0px
;
right
:
200px
;
top
:
-85px
;
z-index
:
200
;
opacity
:
1
;
transition
:
opacity
0
.4s
0s
ease-out
;
}
.qrcode
>
div
{
z-index
:
201
;
height
:
150px
;
width
:
150px
;
background
:
white
;
border
:
20px
solid
white
;
}
.qrcode.invisble
{
z-index
:
0
;
opacity
:
0
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment