Skip to content

Commit

Permalink
屏蔽右键菜单
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Nov 22, 2015
1 parent 8232b97 commit c5d4d95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ if(storedata&&storedata.length>0){
}else{
storageSave(maindata)
}

// 屏蔽右键菜单
document.oncontextmenu = function(){
return false;
}

// 默认展示十条数据
function storageSave(_data){
Expand Down
2 changes: 1 addition & 1 deletion templates/background.ejs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<% include ./_partial/header %>
<div id="main_nav_toggle">
<!-- Checkbox to toggle the menu -->
<input type="checkbox" checked="checked" id="tm" />
<input type="checkbox" id="tm" />
<!-- The menu -->
<div class="sidenav">
<ul>
Expand Down

0 comments on commit c5d4d95

Please sign in to comment.