Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nutrapharm_producto
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cristian Mauricio Diaz Canales
nutrapharm_producto
Commits
95aff9dd
Commit
95aff9dd
authored
Sep 10, 2020
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correccion
parent
1e9a6b46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
64 deletions
+0
-64
app/Resources/views/producto_final/base_final.html.twig
app/Resources/views/producto_final/base_final.html.twig
+0
-64
No files found.
app/Resources/views/producto_final/base_final.html.twig
View file @
95aff9dd
...
...
@@ -90,70 +90,6 @@
)
</script>
<script>
function
copyToClipboard
(
text
,
copyMode
)
{
if
(
copyMode
==
"
css
"
)
{
window
.
prompt
(
"
Copy this, then paste in your CSS :before selector.
"
,
text
);
}
else
if
(
copyMode
==
"
html
"
)
{
window
.
prompt
(
"
Copy this, then paste in your HTML.
"
,
text
);
}
else
{
window
.
prompt
(
"
Copy this, then paste in your Photoshop textfield.
"
,
text
);
}
}
function
pickRandomIcon
()
{
var
divs
=
jQuery
(
"
#iconlist div
"
).
get
().
sort
(
function
()
{
return
Math
.
round
(
Math
.
random
())
-
0.5
;
}).
slice
(
0
,
1
);
attr
=
jQuery
(
divs
).
data
(
'
code
'
);
cssclass
=
jQuery
(
divs
).
attr
(
'
class
'
);
displayGlyph
(
attr
,
cssclass
);
}
function
displayGlyph
(
attr
,
cssclass
)
{
// css copy string
csstext
=
'
content:
\
"
\\'
+ attr +
'"
;';
// html copy string
htmltext = '<div class=
"'
+ cssclass +
'"
></div>';
// glyph copy string
glyphtemp =
"
&
#
x
"
+ attr +
"
;
"
;
jQuery('#temp').html(glyphtemp);
glyphtext = jQuery('#temp').text();
// final output
output = '<div class=
"'
+ cssclass +
'"
></div>'
+ '<div class=
"
info
"
>'
+ '<strong>← ' + cssclass.split(' ')[1] + '</strong>'
+ '<a href=
"
javascript
:
copyToClipboard
(
csstext
,
\
'
css
\'
)">Copy CSS</a>
'
+
'
<a href="javascript:copyToClipboard(htmltext,
\'
html
\'
)">Copy HTML</a>
'
+
'
<a href="javascript:copyToClipboard(glyphtext)">Copy Glyph</a>
'
+
'
</div>
'
;
jQuery
(
'
#glyph
'
).
html
(
output
);
}
jQuery
(
document
).
ready
(
function
()
{
pickRandomIcon
();
jQuery
(
'
#iconlist div
'
).
click
(
function
()
{
attr
=
jQuery
(
this
).
data
(
'
code
'
);
cssclass
=
jQuery
(
this
).
attr
(
'
class
'
);
displayGlyph
(
attr
,
cssclass
);
});
});
</script>
<!-- ================== END BASE JS ================== -->
<!-- ================== BEGIN PAGE LEVEL JS ================== -->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment