Създавам персонализиран бутон Pin It на Pinterest с Прости икони и използвам връзката, която Pinterest Widget Builder ми даде. В бутоните Pin It по подразбиране отваря тази връзка в напълно нов прозорец. Разгледах много SO въпроси, но всички те го отварят в нов раздел.
Имам нужда тази връзка да се отвори в нов прозорец, а не в раздел.
HTML:
<div class="pinit" onclick='window.open("http://www.pinterest.com/pin/create/button/?url=http%3A%2F%2Flocalhost%3A8080%2FHowl%2FHome.html&media=http%3A%2F%2Fi.imgur.com%2FToZz7PB.png&description=Howl%3A%20Share%20Your%20Life")'><img src="http://raw.github.com/danleech/simpleicons/master/icons/pinterest/pinterest-64.png"></div>
CSS:
.pinit {
background: #CB2027;
width: 65px;
border-radius: 10px;
cursor: pointer;
}
.pinit:hover {
background: #e41f11
}
JavaScript:
За JS използвах връзката към Pinterest: <script type="text/javascript" async src="//assets.pinterest.com/js/pinit.js"></script>