Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
neciszhang committed Jun 26, 2018
1 parent 395af01 commit fe16885
Show file tree
Hide file tree
Showing 5 changed files with 5,302 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Created by .ignore support plugin (hsz.mobi)
.idea
back-end/node_modules
9 changes: 9 additions & 0 deletions front-end/register/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@
win.addEventListener(resizeEvt, recalc, false);
doc.addEventListener('DOMContentLoaded', recalc, false);
})(document, window);
function getUrlParameterByName(name) {
name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]');
var regex = new RegExp('[\\?&]' + name + '=([^&#]*)'),
results = regex.exec(location.search);
return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
}
if(!getUrlParameterByName('openid')){
window.location.href="http://wechat.mynecis.cn/wx/wx/oauth/openid?url="+window.location.origin+window.location.pathname;
}
</script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
</head>
Expand Down
4 changes: 3 additions & 1 deletion front-end/show/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
<body>
<div class="demo-frame">
<div class="demo-container">
<video id="video" width="960" height="720" preload autoplay loop muted></video>
<!-- <video id="video" width="960" height="720" preload autoplay loop muted playsinline></video> -->
<video id="video" width="480" height="360" preload autoplay loop muted playsinline></video>
<canvas id="canvas" width="960" height="720"></canvas>
</div>
<canvas id="full" width="960" height="720" style="opacity: 0;">
Expand All @@ -23,6 +24,7 @@
验证失败
</div>
</div>
<script src="scripts/adapter.js"></script>
<script src="scripts/jquery.min.js"></script>
<script src="scripts/tracking.min.js"></script>
<script src="scripts/face.min.js"></script>
Expand Down
Loading

0 comments on commit fe16885

Please sign in to comment.