添加vip和产品图,调整fc模拟器资源路径
This commit is contained in:
parent
5b06e51f5d
commit
613ffbc8b5
1
.gitignore
vendored
1
.gitignore
vendored
@ -17,3 +17,4 @@ rev-manifest.json
|
||||
/package-lock.json
|
||||
/dist.tar.gz
|
||||
/roms
|
||||
/dist
|
||||
|
BIN
assets/product.jpg
Normal file
BIN
assets/product.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 421 KiB |
BIN
assets/vip.jpg
Normal file
BIN
assets/vip.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 39 KiB |
File diff suppressed because it is too large
Load Diff
@ -5,16 +5,16 @@
|
||||
<meta name="format-detection" content="telephone=no">
|
||||
<meta name="viewport" content="width=750,minimum-scale=0.4,maximum-scale=1,user-scalable=no">
|
||||
<title></title>
|
||||
<link href="dist/gbajs.min.css?v=1" rel="stylesheet" type="text/css"/>
|
||||
<link href="css/gbajs.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
|
||||
<script type="text/javascript" src="js/long.js"></script>
|
||||
<script type="text/javascript" src="js/bytebuffer.js"></script>
|
||||
<script type="text/javascript" src="js/protobuf.js?v=6"></script>
|
||||
<script type="text/javascript" src="js/jcmatchvs.js?v=6"></script>
|
||||
<script type="text/javascript" src="js/netWorkHandle.js?v=6"></script>
|
||||
<script type="text/javascript" src="js/network.js?v=6"></script>
|
||||
<script type="text/javascript" src="js/protobuf.js"></script>
|
||||
<script type="text/javascript" src="js/jcmatchvs.js"></script>
|
||||
<script type="text/javascript" src="js/netWorkHandle.js"></script>
|
||||
<script type="text/javascript" src="js/network.js?"></script>
|
||||
<script type="text/javascript" src="js/jquery.js"></script>
|
||||
<script type="text/javascript" src="js/nes-embed.js?v=6"></script>
|
||||
<script type="text/javascript" src="js/nes-embed.js"></script>
|
||||
<script type="text/javascript">
|
||||
var showInviteMask = function() {
|
||||
document.getElementById('info-mask').style.display = '';
|
||||
|
@ -158,8 +158,8 @@ window.vm = {
|
||||
|
||||
window.onload = function(){
|
||||
var gameId = getParameter("id")
|
||||
// var path = "http://h5games-al.kingsome.cn/emulator-static/roms/" + gameId + ".nes"
|
||||
var path = "http://192.168.100.229:7008/roms/" + gameId + ".nes"
|
||||
// var path = "http://h5games-al.kingsome.cn/emulator-static/roms/" + gameId + ".nes"
|
||||
var path = "http://192.168.100.232:7008/roms/" + gameId + ".nes"
|
||||
nes_load_url("screen", path)
|
||||
vm.initCtrl()
|
||||
|
||||
|
32
gulpfile.js
32
gulpfile.js
@ -4,8 +4,8 @@ var gulp = require('gulp'),
|
||||
uglify = require('gulp-uglify-es').default,
|
||||
rename = require('gulp-rename'),
|
||||
jshint = require('gulp-jshint'),
|
||||
notify = require('gulp-notify'),//提示信息
|
||||
stripDebug = require("gulp-strip-debug"),//移除console语句
|
||||
cleanCSS = require('gulp-clean-css'),
|
||||
gutil = require('gulp-util');
|
||||
|
||||
gulp.task('jslint', function () {
|
||||
@ -14,24 +14,34 @@ var gulp = require('gulp'),
|
||||
.pipe(jshint.reporter('default'))
|
||||
.pipe(notify({message: 'finished jslint'}));
|
||||
});
|
||||
|
||||
gulp.task('minifyjsfc', function() {
|
||||
return gulp.src('fc/js/*.js')
|
||||
gulp.task('disthtml', function(){
|
||||
return gulp.src(['**/*.html', '!node_modules/**/*', '!dist/**/*'])
|
||||
.pipe(gulp.dest('dist'));
|
||||
})
|
||||
gulp.task('distfccss', function() {
|
||||
return gulp.src(['fc/css/**/*.css'])
|
||||
.pipe(cleanCSS())
|
||||
.pipe(gulp.dest('dist/fc/css'));
|
||||
})
|
||||
gulp.task('distfcstatic', function() {
|
||||
return gulp.src(['fc/resources/**/*'])
|
||||
.pipe(gulp.dest('dist/fc/resources'));
|
||||
})
|
||||
gulp.task('distfcjs', function() {
|
||||
return gulp.src(['fc/js/*.js'])
|
||||
// .pipe(concat('main.js'))
|
||||
// .pipe(rename({suffix: '.min'}))
|
||||
//https://github.com/mishoo/UglifyJS2
|
||||
.pipe(uglify({
|
||||
mangle:false,
|
||||
compress:false,
|
||||
mangle:true,
|
||||
compress:true,
|
||||
output: {
|
||||
comments: false //保留注释, all: 保留所有,some:只保留license等信息,false: 不保留,正则或者function
|
||||
}
|
||||
}))
|
||||
.pipe(stripDebug())
|
||||
.pipe(gulp.dest('fc/dist/js'))
|
||||
.pipe(notify({message: 'finished minifyjsfc'}));
|
||||
.pipe(gulp.dest('dist/fc/js'));
|
||||
});
|
||||
gulp.task('distfc', ['disthtml', 'distfcjs', 'distfccss', 'distfcstatic'])
|
||||
|
||||
gulp.task('default', ['jslint'], function() {
|
||||
gulp.start('minifyjsfc');
|
||||
});
|
||||
gulp.task('default', ['distfc']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user