вопрос если я с генерирую два кода и вставлю их на сайт
для десктоп
<!-- Put this script tag to the <head> of your page --> <script type="text/javascript" src="//vk.com/js/api/openapi.js?136"></script> <script type="text/javascript"> VK.init({apiId: 1111111, onlyWidgets: true}); </script> <!-- Put this div tag to the place, where the Comments block will be --> <div id="vk_comments"></div> <script type="text/javascript"> VK.Widgets.Comments("vk_comments", {limit: 10, width: "665", attach: "photo,video"}); </script>
<iframe src="//widget.stapico.ru/?q=1111111&s=200&w=3&h=2&b=1&p=2&effect=2" allowtransparency="true" frameborder="0" scrolling="no" style="border:none;overflow:hidden;width:656px; height: 569px" ></iframe> <!-- stapico - stapico.ru -->и для мобильной версии
<!-- Put this script tag to the <head> of your page --> <script type="text/javascript" src="//vk.com/js/api/openapi.js?136"></script> <script type="text/javascript"> VK.init({apiId: 5798351, onlyWidgets: true}); </script> <!-- Put this div tag to the place, where the Comments block will be --> <div id="vk_comments"></div> <script type="text/javascript"> VK.Widgets.Comments("vk_comments", {limit: 10, width: "344", attach: "photo,video"}); </script>
<iframe src="//widget.stapico.ru/?q=1111111&s=150&w=2&h=3&b=1&p=2&effect=0" allowtransparency="true" frameborder="0" scrolling="no" style="border:none;overflow:hidden;width:344px; height: 631px" ></iframe> <!-- stapico - stapico.ru -->
то как сделать, что бы мобильный виджет отображался только на мобильных устройствах, с десктоп на десктоп