Skip to content

Commit

Permalink
Merge pull request ksky521#158 from XinHuaLuFang/master
Browse files Browse the repository at this point in the history
图片添加禁止全屏的方法
  • Loading branch information
ksky521 authored Mar 23, 2017
2 parents 1fd3d66 + 422523d commit 1588633
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
8 changes: 5 additions & 3 deletions assets/js/img.screenfull.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
(function(window, document) {
var sf = function($imgs) {
$imgs.forEach(function($img) {
$img.addEventListener('click', function() {
show(this);
}, false);
if ($img.classname.indexOf('no-screenfull') === -1) {
$img.addEventListener('click', function () {
show(this);
}, false);
}
});
};

Expand Down
7 changes: 7 additions & 0 deletions ppts/demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,13 @@ nodeppt:https://github.com/ksky521/nodePPT
![小萝莉](/girl.jpg "小萝莉")


[slide]

## 图片,禁止全屏
----

<img src="/girl.jpg" class="not">

[slide]
[note]
##这里是note
Expand Down

0 comments on commit 1588633

Please sign in to comment.