Repository navigation
Expand file tree
/
Copy pathdecompile.blade.php
More file actions
86 lines (79 loc) · 3.21 KB
/
Copy pathdecompile.blade.php
File metadata and controls
86 lines (79 loc) · 3.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
@extends('admin.layouts')
@section('css')
@endsection
@section('title', '控制面板')
@section('content')
<!-- BEGIN CONTENT BODY -->
<div class="page-content" style="padding-top:0;">
<!-- BEGIN PAGE BASE CONTENT -->
<div class="row">
<div class="col-md-12">
<!-- BEGIN PORTLET-->
<div class="portlet light bordered">
<div class="portlet-title">
<div class="caption font-dark">
<span class="caption-subject bold uppercase"> 反解析 </span>
</div>
</div>
<div class="portlet-body">
<div class="row">
<div class="col-md-6">
<textarea class="form-control" rows="33" name="content" id="content" placeholder="请填入要反解析的SS(R)链接,一行一条" autofocus></textarea>
</div>
<div class="col-md-6">
<textarea class="form-control" rows="33" name="result" id="result" readonly="readonly"></textarea>
</div>
</div>
<div class="row" style="margin-top:10px;">
<div class="col-md-6">
<button class="btn blue btn-block" onclick="doDecompile()">反解析</button>
</div>
<div class="col-md-6">
<button class="btn red btn-block" onclick="doDownload()">下 载</button>
</div>
</div>
</div>
</div>
<!-- END PORTLET-->
</div>
</div>
<!-- END PAGE BASE CONTENT -->
</div>
<!-- END CONTENT BODY -->
@endsection
@section('script')
<script src="/js/layer/layer.js" type="text/javascript"></script>
<script type="text/javascript">
// 转换
function doDecompile() {
var _token = '{{csrf_token()}}';
var content = $('#content').val();
if (content == '') {
layer.msg('请填入要反解析的链接信息', {time:1000});
return ;
}
layer.confirm('确定继续反解析吗?', {icon: 2, title:'警告'}, function(index) {
$.ajax({
type: "POST",
url: "{{url('admin/decompile')}}",
async: false,
data: {_token:_token, content: content},
dataType: 'json',
success: function (ret) {
if (ret.status == 'success') {
$("#result").val(ret.data);
} else {
$("#result").val(ret.message);
}
}
});
layer.close(index);
});
return false;
}
// 下载
function doDownload() {
window.location.href = '{{url('admin/download?type=2')}}';
}
</script>
@endsection