<style type="text/css">
div.dialog-modal {
width: 340px !important;
}
</style>
<link rel="stylesheet" type="text/css" href="https://goframe.org/statics/plugins/votejs/alert.css"></head>
<script src="https://goframe.org/statics/plugins/votejs/alert.js"></script>
<script>
	var storageKey   = 'GFVoted';
	var storageValue = localStorage.getItem(storageKey);
	if (storageValue != "1") {
		var voteTips= 
		'<div>2021年度最佳人气项目开源软件评选</div>'+
		'<div>请为 <strong style="color: #FF0036;">GoFrame</strong> 投上您宝贵的一票,感谢大家</div>'+
		'<div><strong style="color: #FF0036;">在之前投过票的,已重置可以继续支持</strong></div>'+
		'<div><img src="https://goframe.org/statics/image/vote_gf_2021.png" width="240"></div>'+
		'<div>扫描二维码开始投票,本窗口只提示一次</div>';
		$.confirm({
			title:       '💕💕我们需要您的支持💕💕',
			content:     voteTips,
			confirmText: '💖朕知道了',
			cancelText:  '<span style="color:red">💔残忍拒绝</span>'
		}, function(){
			localStorage.setItem(storageKey, "1");
		}, function(){
			// localStorage.setItem(storageKey, "1");
		});
	}
</script>




  • No labels