Created
December 26, 2017 17:14
-
-
Save Bat-Chat/e71341e7bf998ead19a560e272b362f8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for link in linklists.collections.links %} | |
<a href="{{ link.url }}">{{ link.title }}</a> | |
{% assign rrr = link.links | map: 'object' %} | |
{{ rrr |json }} | |
{% endfor %} | |
{% assign rrr = link.links | map: 'object' %} | |
{{ rrr |json }} | |
{% for link in linklists.collections.links %} | |
<a href="{{ link.url }}">{{ link.title }}</a><br> | |
{% for sub_link in link.links %} | |
<a href="{{ sub_link.url }}">{{ sub_link.title }}</a><br><br> | |
{% for sub_sub_link in sub_link.links %} | |
<a href="{{ sub_sub_link.url }}">{{ sub_sub_link.title }}</a><br><br><br> | |
{% endfor %} | |
{% endfor %} | |
{% endfor %} | |
{% for link in linklists.collections.links %} | |
{% assign rrr = link.links | map: 'object' %} | |
{{ rrr |json }} | |
{% for sub_link in link.links %} | |
{{ 'h' |json }} | |
{% for sub_sub_link in sub_link.links %} | |
{{ 'f' |json }} | |
{% endfor %} | |
{% endfor %} | |
{% endfor %} | |
JSON.parse(' | |
[{"id":9772269598,"handle":"phones","title":"Phones","updated_at":"2017-11-14T10:09:49-05:00","body_html":"","published_at":"2017-09-28T04:59:13-04:00","sort_order":"best-selling","template_suffix":null,"published_scope":"global"},{"id":9772531742,"handle":"monitors","title":"Monitors","updated_at":"2017-11-14T10:09:49-05:00","body_html":"ch-test","published_at":"2017-09-28T05:00:36-04:00","sort_order":"best-selling","template_suffix":null,"published_scope":"global"},{"id":9773056030,"handle":"power-banks","title":"Power Banks","updated_at":"2017-11-14T10:09:49-05:00","body_html":"","published_at":"2017-09-28T05:01:25-04:00","sort_order":"best-selling","template_suffix":null,"published_scope":"global"}] | |
'); | |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
{% layout none %} | |
<script> | |
var quotes = ''; | |
</script> | |
{% for link in linklists.collections.links %} | |
<a href="{{ link.url }}">{{ link.title }}</a><br> | |
{% assign parents = link.links | map: 'object' %} | |
<script> | |
quotes += '{{ parents | json }}'; | |
</script> | |
{% for sub_link in link.links %} | |
{% assign subs = sub_link.links | map: 'object' %} | |
<script> | |
quotes += '{{ subs | json }}'; | |
</script> | |
{% endfor %} | |
{% endfor %} | |
<script> | |
console.log(quotes); | |
document.write(quotes); | |
</script> | |
{% layout none %} | |
<script> | |
var quotes = ''; | |
</script> | |
{% for link in linklists.collections.links %} | |
{% assign parents = link.links | map: 'object' %} | |
<script> | |
//quotes += '{{ parents | json }}'; | |
</script> | |
{% for sub_link in link.links %} | |
{% assign subs = sub_link.links | map: 'object' %} | |
<script> | |
quotes += '{{ subs | json }}'; | |
</script> | |
{% for sub_sub_link in sub_link.links %} | |
{% assign sub_subs = sub_sub_link.links | map: 'object' %} | |
<script> | |
quotes += '{{ sub_subs | json }}'; | |
</script> | |
{% endfor %} | |
{% endfor %} | |
{% endfor %} | |
<script> | |
console.log(quotes); | |
document.write(quotes); | |
</script> | |
{% layout none %} | |
<script> | |
var quotes = ''; | |
</script> | |
{% for link in linklists.collections.links %} | |
{% assign parents = link.links | map: 'object' %} | |
<script> | |
//quotes += '{{ parents | json }}'; | |
</script> | |
{% for sub_link in link.links %} | |
{% assign subs = sub_link.links | map: 'object' %} | |
<script> | |
quotes += '{{ subs | json }}'; | |
</script> | |
{% for sub_sub_link in sub_link.links %} | |
{% assign sub_subs = sub_sub_link.links | map: 'object' %} | |
<script> | |
quotes += '{{ sub_subs | json }}'; | |
</script> | |
{% endfor %} | |
{% endfor %} | |
{% endfor %} | |
<script> | |
console.log(quotes); | |
document.write(quotes); | |
</script> | |
{% layout none %} | |
<script> | |
var quotes = ''; | |
</script> | |
{% for link in linklists.collections.links %} | |
<a href="{{ link.url }}">{{ link.title }}</a><br> | |
{% assign parents = linklists.collections.links | map: 'object' %} | |
<script> | |
quotes += '{{ parents | json }}'; | |
</script> | |
{% for sub_link in link.links %} | |
{% assign subs = sub_link.links | map: 'object' %} | |
<script> | |
quotes += '{{ subs | json }}'; | |
</script> | |
{% endfor %} | |
{% endfor %} | |
<script> | |
console.log(quotes); | |
document.write(quotes); | |
</script> | |
<script> | |
var quotes = ''; | |
</script> | |
{% for link in linklists.collections.links %} | |
<a href="{{ link.url }}">{{ link.title }}</a><br> | |
{% assign parents = linklists.collections.links | map: 'object' %} | |
<script> | |
quotes += '{{ parents | json }}'; | |
</script> | |
{% endfor %} | |
var i = JSON.parse('[{"id":21866938398,"handle":"сomputer-technology","title":"Сomputer technology","updated_at":"2017-12-26T10:16:27-05:00","body_html":"","published_at":"2017-12-26T10:16:21-05:00","sort_order":"best-selling","template_suffix":null,"published_scope":"global"}]') | |
var i = JSON.parse('{ | |
"id":21866938398 | |
}') | |
{% layout none %} | |
<script> | |
var quotes = ''; | |
</script> | |
{% for link in linklists.collections.links %} | |
<a href="{{ link.url }}">{{ link.title }}</a><br> | |
{% assign parents = link | map: 'object' %} | |
<script> | |
var temp = JSON.parse('{{ parents | json }}'); | |
temp[0]['title'] = link.title; | |
quotes += JSON.stringify(temp); | |
</script> | |
{% endfor %} | |
<script> | |
console.log(quotes); | |
document.write(quotes); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment