Last active
September 15, 2016 14:50
-
-
Save alexshk/84b354d538d2229b7e579a27d1b43a26 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
<div class="basket"> | |
<script type="text/javascript"> | |
window.basket_data = { | |
models: [ | |
{ | |
id: 1, | |
title: 'Leotard', | |
item_price: 333, | |
colors: [ | |
{ | |
title: "Blue", | |
selected: true, | |
image: "/content/blue-back.png", | |
value: "blue" | |
}, | |
{ | |
title: "Red", | |
value: "red" | |
}, | |
{ | |
title: "Green", | |
image: "/content/green-back.png", | |
value: "green" | |
} | |
], | |
sport: [ | |
{ | |
title: "rhythmic", | |
selected: true, | |
value: "rhythmic" | |
}, | |
{ | |
title: "rhythmic2", | |
value: "rhythmic2" | |
} | |
], | |
items: [ | |
{ | |
crystals: 1500, | |
crystals_swarovsky: 0, | |
age: 2, | |
height: 33, | |
... | |
request: 'Special request for this' | |
}, | |
... | |
] | |
}, | |
... | |
] | |
} | |
</script> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Вот такую переменную хотелось бы получать.
Соответственно после того как клиент все заполнит: обновлю данные в этой переменной и отправлю ее дальше.