gbbooks.js
1.14 KB
$(function(){
$(".bookdemoqrcode").popover({"html":true,"placement":"bottom","template":'<div class="popover" role="tooltip"><h3 class="popover-title"></h3><div class="popover-content"></div></div>'});
$(".bookdebugqrcode").popover({"html":true,"placement":"bottom","template":'<div class="popover" role="tooltip"><h3 class="popover-title"></h3><div class="popover-content"></div></div>'});
$('.bookdemoqrcode').on('shown.bs.popover', function () {
var $this = $(this),
id = $this.data("id");
$this.parent().find(".popover-content").html('<img width="100%" src="http://www.gbtags.com/gb/qrcode?t=http://www.gbtags.com/gb/rtreplayerpreview-standalone/' + id + '.htm"><p class="text-primary text-center">扫一扫在移动端预览代码运行效果</p>');
});
$('.bookdebugqrcode').on('shown.bs.popover', function () {
var $this = $(this),
id = $this.data("id");
$this.parent().find(".popover-content").html('<img width="100%" src="http://www.gbtags.com/gb/qrcode?t=http://www.gbtags.com/gb/rtreplayerpreview/' + id + '.htm"><p class="text-primary text-center">扫一扫在移动端调试代码</p>');
});
});