Skip to content

Instantly share code, notes, and snippets.

@jakubboucek
Created September 9, 2017 12:00
Show Gist options
  • Save jakubboucek/0e6f1e10b962e86dc74643456912965d to your computer and use it in GitHub Desktop.
Save jakubboucek/0e6f1e10b962e86dc74643456912965d to your computer and use it in GitHub Desktop.
Simpleshop - návrhy async vkládání
<head>
<script> simpleshop = [ {box:"simpleshop-form"}, {box:"simpleshop-form-second"} ]; </script>
<script src="https://static.simpleshop.cz/form-1yo2.js" async></script>
</head>
<body>
... kus stránky ...
<div id="simpleshop-form"></div>
... kus stránky mezi dvěma formuláři ...
<div id="simpleshop-form-second"></div>
<head>
<script> simpleshop = []; </script>
<script src="https://static.simpleshop.cz/form-1yo2.js" async></script>
</head>
<body>
... kus stránky ...
<script> simpleshop.push({box:"simpleshop-form"}); </script>
<div id="simpleshop-form"></div>
... kus stránky mezi dvěma formuláři ...
<script> simpleshop.push({box:"simpleshop-form-second"}); </script>
<div id="simpleshop-form-second"></div>
<head>
<script src="https://static.simpleshop.cz/form-1yo2.js" async></script>
</head>
<body>
... kus stránky ...
<div rel="simpleshop" data-from-id="main"></div>
... kus stránky mezi dvěma formuláři ...
<div rel="simpleshop" data-from-id="second"></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment