Skip to content

Instantly share code, notes, and snippets.

@redstoneleo
redstoneleo / platform Download icon
Created October 25, 2019 13:55
svg_icon_iphone svg_icon_win svg_icon_mac svg_icon_ipad svg_icon_tv
<style type="text/css">
.dl_list{color: #666;}
</style>
<div class="dl_list">
<a class="item" target="_blank" href="http://v.qq.com/download.html#phone" _stat="page_footer:download_1">
<svg class="svg_icon svg_icon_iphone" viewBox="0 0 50 50" width="50" height="50"> <path d="M34 3h-18c-1.657 0-3 1.343-3 3v38c0 1.657 1.343 3 3 3h18c1.657 0 3-1.343 3-3v-38c0-1.657-1.343-3-3-3zm1 38h-20v-32h20v32z"></path> <!--[if lte IE 8 ]><image src="//puui.qpic.cn/vupload/0/20190105_svg_icon_iphone.png/0" xlink:href="" /><![endif]--> </svg>
<span class="text_icon">手机版</span>
@redstoneleo
redstoneleo / mouse.on_pressed
Last active February 10, 2020 04:40
mouse.on_pressed
def on_pressed(callback, args=()):
""" Invokes `callback` with `args` when the left button is pressed. """
return on_button(callback, args, [LEFT], [DOWN])