Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
media-resource
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨昕
media-resource
Commits
d1e5cd3e
Commit
d1e5cd3e
authored
Jul 06, 2020
by
杨昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code format
parent
d69560b6
Pipeline
#9801
passed with stages
in 34 seconds
Changes
9
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
3 additions
and
430 deletions
+3
-430
MediaCategoryModel.php
app/Model/MediaCategoryModel.php
+2
-4
MediaModel.php
app/Model/MediaModel.php
+1
-10
common.blade.php
resources/views/admin/common_bak/common.blade.php
+0
-133
commonMedia.blade.php
resources/views/admin/common_bak/commonMedia.blade.php
+0
-34
fiveCityMap.blade.php
resources/views/admin/common_bak/fiveCityMap.blade.php
+0
-100
foot.blade.php
resources/views/admin/common_bak/foot.blade.php
+0
-15
header.blade.php
resources/views/admin/common_bak/header.blade.php
+0
-0
left.blade.php
resources/views/admin/common_bak/left.blade.php
+0
-134
newContent.blade.php
resources/views/admin/common_bak/newContent.blade.php
+0
-0
No files found.
app/Model/MediaCategoryModel.php
View file @
d1e5cd3e
...
@@ -3,8 +3,6 @@
...
@@ -3,8 +3,6 @@
namespace
App\Model
;
namespace
App\Model
;
use
App\Exceptions\DatabaseException
;
use
App\Exceptions\DatabaseException
;
use
Illuminate\Database\Eloquent\Model
;
use
Illuminate\Support\Facades\DB
;
use
Jenssegers\Mongodb\Eloquent\Model
as
Eloquent
;
use
Jenssegers\Mongodb\Eloquent\Model
as
Eloquent
;
class
MediaCategoryModel
extends
Eloquent
class
MediaCategoryModel
extends
Eloquent
...
@@ -24,7 +22,7 @@ class MediaCategoryModel extends Eloquent
...
@@ -24,7 +22,7 @@ class MediaCategoryModel extends Eloquent
public
static
function
catgList
(
$request
){
public
static
function
catgList
(
$request
){
try
{
try
{
self
::
addMediaCatg
(
$request
);;
$catgList
=
MediaCategoryModel
::
get
()
->
toArray
();
$catgList
=
MediaCategoryModel
::
get
()
->
toArray
();
}
catch
(
\Exception
$exception
){
}
catch
(
\Exception
$exception
){
...
@@ -44,7 +42,7 @@ class MediaCategoryModel extends Eloquent
...
@@ -44,7 +42,7 @@ class MediaCategoryModel extends Eloquent
try
{
try
{
$data
=
[
$data
=
[
'name'
=>
$request
->
name
??
"百度"
,
'name'
=>
$request
->
name
??
"百度
1
"
,
'status'
=>
0
'status'
=>
0
];
];
...
...
app/Model/MediaModel.php
View file @
d1e5cd3e
...
@@ -4,9 +4,6 @@ namespace App\Model;
...
@@ -4,9 +4,6 @@ namespace App\Model;
use
App\Exceptions\DatabaseException
;
use
App\Exceptions\DatabaseException
;
use
Jenssegers\Mongodb\Eloquent\Model
as
Eloquent
;
use
Jenssegers\Mongodb\Eloquent\Model
as
Eloquent
;
use
Illuminate\Support\Facades\DB
;
use
Qiniu\Config
;
use
Qiniu\Storage\FormUploader
;
class
MediaModel
extends
Eloquent
class
MediaModel
extends
Eloquent
{
{
...
@@ -18,26 +15,20 @@ class MediaModel extends Eloquent
...
@@ -18,26 +15,20 @@ class MediaModel extends Eloquent
public
static
function
mediaList
(
$request
){
public
static
function
mediaList
(
$request
){
try
{
try
{
$where
=
[];
$where
=
[];
if
(
$request
->
name
){
if
(
$request
->
name
){
$where
[
'name'
]
=
$request
->
name
;
$where
[
'name'
]
=
$request
->
name
;
}
}
$medias
=
DB
::
connection
(
'mongodb'
)
->
collection
(
'media'
)
$medias
=
MediaModel
::
where
(
$where
)
->
paginate
(
10
);
->
where
(
$where
)
->
paginate
(
10
);
}
catch
(
\Exception
$exception
){
}
catch
(
\Exception
$exception
){
throw
new
DatabaseException
(
$exception
->
getMessage
());
throw
new
DatabaseException
(
$exception
->
getMessage
());
}
}
return
$medias
;
return
$medias
;
}
}
/**
/**
...
...
resources/views/admin/common_bak/common.blade.php
deleted
100644 → 0
View file @
d69560b6
<!doctype html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
/>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black-translucent"
/>
<meta
name=
"format-detection"
content=
"telephone=no,email=no"
/>
<meta
name=
"apple-touch-fullscreen"
content=
"yes"
>
<meta
name=
"App-Config"
content=
"fullscreen=yes,useHistoryState=yes,transition=yes"
>
<title>
宁夏广播电视台新闻客户端
</title>
{{--
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{{URL::asset('css/base.css')}}"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{{URL::asset('css/slider.css')}}"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{{URL::asset('css/layout.css')}}"
>
--}}
<style
type=
"text/css"
>
font
{
color
:
#FFFFFF
;
}
img
{
height
:
auto
;
width
:
auto
\
9
;
width
:
100%
;
}
</style>
<script
src=
"{{URL::asset('js/zepto.js')}}"
></script>
<script
src=
"{{URL::asset('js/slider.js')}}"
></script>
</head>
<body>
<div
class=
"mnews"
>
<p
class=
"content_p"
style=
"font-size: 14px;"
style=
"text-indent:2em;"
>
{!! $content !!}
</p>
<p
style=
"text-indent:2em;"
>
</p>
</div>
<script>
(
function
(
doc
,
win
)
{
var
docEl
=
doc
.
documentElement
,
//根元素html
//判断窗口有没有orientationchange这个方法,有就赋值给一个变量,没有就返回resize方法。
resizeEvt
=
'orientationchange'
in
window
?
'orientationchange'
:
'resize'
,
recalc
=
function
()
{
var
clientWidth
=
docEl
.
clientWidth
;
if
(
!
clientWidth
)
return
;
//把document的fontSize大小设置成跟窗口成一定比例的大小,从而实现响应式效果。
docEl
.
style
.
fontSize
=
20
*
(
clientWidth
/
320
)
+
'px'
;
};
if
(
!
doc
.
addEventListener
)
return
;
win
.
addEventListener
(
resizeEvt
,
recalc
,
false
);
//addEventListener事件方法接受三个参数:第一个是事件名称比如点击事件onclick,第二个是要执行的函数,第三个是布尔值
doc
.
addEventListener
(
'DOMContentLoaded'
,
recalc
,
false
);
//绑定浏览器缩放与加载时间
})(
document
,
window
);
</script>
<script
src=
" {{URL::asset('js/common.js')}}"
></script>
<script
src=
"{{URL::asset('js/mobile.js')}}"
></script>
<script
type=
"text/javascript"
>
//判断浏览器下载
$
(
function
()
{
//浏览器判断
var
browser
=
{
versions
:
function
(){
var
u
=
navigator
.
userAgent
,
app
=
navigator
.
appVersion
;
return
{
//移动终端浏览器版本信息
trident
:
u
.
indexOf
(
'Trident'
)
>
-
1
,
//IE内核
presto
:
u
.
indexOf
(
'Presto'
)
>
-
1
,
//opera内核
webKit
:
u
.
indexOf
(
'AppleWebKit'
)
>
-
1
,
//苹果、谷歌内核
gecko
:
u
.
indexOf
(
'Gecko'
)
>
-
1
&&
u
.
indexOf
(
'KHTML'
)
==
-
1
,
//火狐内核
mobile
:
!!
u
.
match
(
/AppleWebKit.*Mobile.*/
)
||!!
u
.
match
(
/AppleWebKit/
),
//是否为移动终端
ios
:
!!
u
.
match
(
/
\(
i
[^
;
]
+;
(
U;
)?
CPU.+Mac OS X/
),
//ios终端
android
:
u
.
indexOf
(
'Android'
)
>
-
1
||
u
.
indexOf
(
'Linux'
)
>
-
1
,
//android终端或者uc浏览器
iPhone
:
u
.
indexOf
(
'iPhone'
)
>
-
1
||
u
.
indexOf
(
'Mac'
)
>
-
1
,
//是否为iPhone或者QQHD浏览器
iPad
:
u
.
indexOf
(
'iPad'
)
>
-
1
,
//是否iPad
webApp
:
u
.
indexOf
(
'Safari'
)
==
-
1
,
//是否web应该程序,没有头部与底部
weiXin
:
u
.
indexOf
(
'MicroMessenger'
)
>
-
1
,
QQ
:
u
.
indexOf
(
'QQ'
)
>
-
1
};
}(),
language
:(
navigator
.
browserLanguage
||
navigator
.
language
).
toLowerCase
()
}
//判断浏览器下载
$
(
".goDownload,.down_but"
).
on
(
"click"
,
function
(){
if
(
browser
.
versions
.
iPhone
||
browser
.
versions
.
iPad
||
browser
.
versions
.
ios
){
//alert("https://itunes.apple.com/us/app/hong-gou-qi/id790073439?l=zh&ls=1&mt=8");return;
if
(
browser
.
versions
.
weiXin
){
$
(
".iosweixin"
).
show
();
}
else
if
(
browser
.
versions
.
QQ
){
$
(
".iosweixin"
).
show
();
}
else
{
location
.
href
=
"https://itunes.apple.com/us/app/hong-gou-qi/id790073439?l=zh&ls=1&mt=8"
;
}
}
else
if
(
browser
.
versions
.
android
){
//alert("http://video.sinosns.cn/nxtv/V3_2_3.apk");return;
if
(
browser
.
versions
.
weiXin
){
$
(
".androidweixin"
).
show
();
}
else
{
location
.
href
=
"http://video.sinosns.cn/nxtv/V3_2_3.apk"
;
}
}
else
{
//alert("123");return;
location
.
href
=
"http://video.sinosns.cn/nxtv/V3_2_3.apk"
;
}
})
$
(
".androidweixin,.iosweixin"
).
on
(
"click"
,
function
(
e
){
$
(
this
).
hide
();
})
})
var
_bdhmProtocol
=
((
"https:"
==
document
.
location
.
protocol
)
?
" https://"
:
" http://"
);
document
.
write
(
unescape
(
"%3Cscript src='"
+
_bdhmProtocol
+
"hm.baidu.com/h.js%3Fab8ab62edab2a66f3b4358c4adbd08c0' type='text/javascript'%3E%3C/script%3E"
));
</script>
</body>
</html>
\ No newline at end of file
resources/views/admin/common_bak/commonMedia.blade.php
deleted
100644 → 0
View file @
d69560b6
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"description"
content=
""
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
name=
"robots"
content=
"all,follow"
>
<title>
后台管理系统
</title>
<link
rel=
"shortcut icon"
href=
"img/test.ico"
>
<script
src=
"{{ asset('xadmin/js/jquery.min.js')}}"
></script>
<script
src=
"{{ asset('xadmin/js/jquery.cookie.js')}}"
></script>
<script
src=
"{{ asset('xadmin/js/common.js')}}"
></script>
<script
src=
"{{ asset('xadmin/js/jquery.validate.js')}}"
></script>
{{--
<script
src=
"{{ asset('xadmin/extra/bootstrapvalidator-master/dist/js/bootstrapValidator.js')}}"
></script>
--}}
<!-- global stylesheets -->
<link
rel=
"stylesheet"
href=
"{{ asset('xadmin/css/base.css')}}"
>
<link
href=
"https://fonts.googleapis.com/css?family=Roboto+Condensed"
rel=
"stylesheet"
>
<link
rel=
"stylesheet"
href=
"{{ asset('xadmin/css/bootstrap.min.css')}}"
>
<link
rel=
"stylesheet"
href=
"{{ asset('xadmin/font-awesome-4.7.0/css/font-awesome.min.css')}}"
>
<link
rel=
"stylesheet"
href=
"{{ asset('xadmin/css/font-icon-style.css')}}"
>
<link
rel=
"stylesheet"
href=
"{{ asset('xadmin/css/style.default.css')}}"
id=
"theme-stylesheet"
>
<!-- Core stylesheets -->
<link
rel=
"stylesheet"
href=
"{{ asset('xadmin/css/ui-elements/card.css')}}"
>
<link
rel=
"stylesheet"
href=
"{{ asset('xadmin/css/style.css')}}"
>
<link
rel=
"stylesheet"
href=
"{{ asset('xadmin/css/common.css')}}"
>
</head>
\ No newline at end of file
resources/views/admin/common_bak/fiveCityMap.blade.php
deleted
100644 → 0
View file @
d69560b6
<!doctype html>
<html>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"
/>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
/>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black-translucent"
/>
<meta
name=
"format-detection"
content=
"telephone=no,email=no"
/>
<meta
name=
"apple-touch-fullscreen"
content=
"yes"
>
<meta
name=
"App-Config"
content=
"fullscreen=yes,useHistoryState=yes,transition=yes"
>
<!-- uc强制竖屏 -->
<meta
name=
"screen-orientation"
content=
"portrait"
>
<!-- QQ强制竖屏 -->
<meta
name=
"x5-orientation"
content=
"portrait"
>
<!-- UC强制全屏 -->
<meta
name=
"full-screen"
content=
"yes"
>
<!-- QQ强制全屏 -->
<meta
name=
"x5-fullscreen"
content=
"true"
>
<!-- UC应用模式 -->
<meta
name=
"browsermode"
content=
"application"
>
{{--
<meta
name=
"csrf-token"
content=
"{{ csrf_token() }}"
/>
--}}
<title>
宁夏广播电视台新闻客户端
</title>
<head>
<style
type=
"text/css"
>
*
{
margin
:
0
;
padding
:
0
;}
html
,
body
{
width
:
100%
;
/*height:100%*/
}
body
{
font-family
:
"华文细黑"
;
background
:
url({{URL::asset('images/five_bj.png')
}
}
)
no-repeat
;
background-size
:
cover
;
}
</style>
</head>
<body>
<div
id=
"main"
style=
"margin:0 auto;width:100%;height:650px;"
></div>
{{--margin:-10px auto auto auto;"--}}
<script
type=
"text/JavaScript"
src=
"{{URL::asset('js/echarts.min.js')}}"
></script>
<script
type=
"text/JavaScript"
src=
"{{URL::asset('js/ningxia.js')}}"
></script>
<script
type=
"text/javascript"
>
var
he
=
document
.
body
.
clientHeight
;
var
oDiv
=
document
.
getElementById
(
'main'
);
oDiv
.
style
.
height
=
he
-
40
-
49
-
40
+
'px'
;
var
dom
=
document
.
getElementById
(
"main"
);
var
myChart
=
echarts
.
init
(
dom
);
var
chart
=
echarts
.
init
(
document
.
getElementById
(
'main'
));
chart
.
setOption
({
series
:
[{
type
:
'map'
,
//selectedMode : 'single',
map
:
'宁夏'
,
itemStyle
:{
normal
:{
label
:{
show
:
true
},
borderColor
:
'blue'
,
areaColor
:
'#ffffff'
,
},
emphasis
:
{
areaColor
:
'red'
,
borderWidth
:
1
,
label
:{
show
:
true
},
}
},
data
:{
!!
$data
!!
}
,
}]
});
function
setupWebViewJavascriptBridge
(
callback
)
{
if
(
window
.
WebViewJavascriptBridge
)
{
callback
(
WebViewJavascriptBridge
)
}
else
{
document
.
addEventListener
(
'WebViewJavascriptBridgeReady'
,
function
()
{
callback
(
WebViewJavascriptBridge
)
},
false
);
}
// =====以下是iOS必须的特殊处理========
if
(
window
.
WVJBCallbacks
)
{
return
window
.
WVJBCallbacks
.
push
(
callback
);
}
window
.
WVJBCallbacks
=
[
callback
];
var
WVJBIframe
=
document
.
createElement
(
'iframe'
);
WVJBIframe
.
style
.
display
=
'none'
;
WVJBIframe
.
src
=
'wvjbscheme://__BRIDGE_LOADED__'
;
document
.
documentElement
.
appendChild
(
WVJBIframe
);
setTimeout
(
function
()
{
document
.
documentElement
.
removeChild
(
WVJBIframe
)
},
0
);
// =====以上是iOS必须的特殊处理========
}
myChart
.
on
(
'click'
,
function
(
params
){
//console.log("OC中返回的参数:", params)
//alert(params.data.id);
// 注意:abc是html跟iOS和安卓定义好的一个名字,后面的{}里面是传过去的参数,用这个上面必须得引用header的一堆关于webviewjavascript的js
setupWebViewJavascriptBridge
(
function
(
bridge
)
{
bridge
.
callHandler
(
'interactive'
,
{
'id'
:
params
.
data
.
id
},
function
responseCallback
(
responseData
)
{
console
.
log
(
"OC中返回的参数:"
,
responseData
)
});
})
});
</script>
</body>
</html>
\ No newline at end of file
resources/views/admin/common_bak/foot.blade.php
deleted
100644 → 0
View file @
d69560b6
<!--Global Javascript -->
<script
src=
"{{ asset('xadmin/js/popper/popper.min.js')}}"
></script>
<script
src=
"{{ asset('xadmin/js/tether.min.js')}}"
></script>
<script
src=
"{{ asset('xadmin/js/bootstrap.min.js')}}"
></script>
<script
src=
"{{ asset('xadmin/js/jquery.cookie.js')}}"
></script>
<script
src=
"{{ asset('xadmin/js/chart.min.js')}}"
></script>
<script
src=
"{{ asset('xadmin/js/front.js')}}"
></script>
<!--Core Javascript -->
{{--
<script
src=
"{{ asset('xadmin/js/mychart.js')}}"
></script>
--}}
{{--
<link
rel=
"stylesheet"
href=
"{{ asset('xadmin/extra/jqueryToast/css/toast.style.css')}}"
>
--}}
<link
rel=
"stylesheet"
href=
"{{ asset('xadmin/icon/iconfont.css')}}"
>
resources/views/admin/common_bak/header.blade.php
deleted
100644 → 0
View file @
d69560b6
This diff is collapsed.
Click to expand it.
resources/views/admin/common_bak/left.blade.php
deleted
100644 → 0
View file @
d69560b6
<!--***** SIDE NAVBAR *****-->
<style>
nav
.side-navbar
ul
a
.choice
{
background
:
linear-gradient
(
to
left
,
#7c8ce4
,
#2196f3
)
!important
;
border-left
:
4px
solid
#7b4397
!important
;
color
:
#fff
!important
;
}
</style>
<nav
class=
"side-navbar"
>
<div
class=
"sidebar-header d-flex align-items-center"
>
<div
class=
"avatar"
><img
src=
" {{ asset('xadmin/img/avatar-1.jpg')}}"
alt=
"..."
class=
"img-fluid rounded-circle"
></div>
<div
class=
"title"
>
<h1
class=
"h4"
id=
"nav-username"
></h1>
</div>
</div>
<hr>
<!-- Sidebar Navidation Menus-->
<ul
class=
"list-unstyled first"
>
<li><a
href=
"/web/admin"
id=
"home-li"
><i
class=
"icon-home"
></i>
首页
</a></li>
@foreach($top as $key => $item)
<li
class=
""
>
{{--
<a
href=
"index.blade.php2"
><i
class=
"icon-home"
></i>
Home
</a>
--}}
@if(count($item['son'])>0)
<a
href=
"#top{{$key}}"
data-toggle=
"collapse"
>
{{--
<i
class=
""
style=
"font-size:20px;"
></i>
--}}
<i
class=
"iconfont"
>
{!! $item['icon'] !!}
</i>
<cite>
{{$item['name']}}
</cite>
{{--
<cite>
{{trans('index.'.$item['key_name'])}}
</cite>
--}}
{{--
<i
class=
"iconfont nav_right"
>

</i>
--}}
</a>
@else
<a
href=
"#top{{$key}}"
>
{{--
<i
class=
"{{$item['icon']}}"
style=
"font-size:20px;"
></i>
--}}
<i
class=
"icon-home"
></i>
<cite>
{{$item['name']}}
</cite>
{{--
<cite>
{{trans('index.'.$item['key_name'])}}
</cite>
--}}
{{--
<i
class=
"iconfont nav_right"
>

</i>
--}}
</a>
@endif
@if(count($item['son'])>0)
<ul
id=
"top{{$key}}"
class=
"second collapse list-unstyled"
>
@foreach($item['son'] as $k => $child_item)
@if($child_item['show'] == 1)
<li
class=
"{{parse_custom_str($child_item['link'])}}"
>
<a
href=
"{{get_prefix().$child_item['link']}}"
>
{{--
<i
class=
"iconfont"
>

</i>
--}}
<cite>
{{$child_item['name']}}
</cite>
{{--
<cite>
{{ trans('index.'.$child_item['key_name']) }}
</cite>
--}}
</a>
</li>
@endif
@endforeach
</ul>
@endif
</li>
@endforeach
</ul>
</nav>
<script>
$
(
'nav.side-navbar ul li'
).
removeClass
(
'active'
);
var
current_url
=
window
.
location
.
pathname
;
var
li_arr
=
$
(
'nav.side-navbar ul.second > li'
);
var
urlexist
=
false
;
for
(
var
i
=
0
;
i
<
li_arr
.
length
;
i
++
)
{
//console.log($(li_arr[i]).attr('class'))
// console.log('get_prefix()',"{{get_prefix()}}"+$(li_arr[i]).attr('class')+current_url)
if
(
"{{get_prefix()}}"
+
"/"
+
$
(
li_arr
[
i
]).
attr
(
'class'
)
==
current_url
)
{
urlexist
=
true
;
$
.
cookie
(
'previous_url'
,
$
(
li_arr
[
i
]).
attr
(
'class'
).
substr
(
$
(
li_arr
[
i
]).
attr
(
'class'
).
lastIndexOf
(
"/"
)
+
1
));
if
(
urlexist
)
{
//console.log("$(li_arr[i]).attr('class') parent",$(li_arr[i]).parent().parent().addClass('active'))
//设置选中侧边栏背景颜色,即ul.first li背景颜色
$
(
li_arr
[
i
]).
parent
().
parent
().
addClass
(
'active'
);
//设置选中侧边箭头朝下,即ul.first > a 属性aria-expanded=true
$
(
li_arr
[
i
]).
parent
().
parent
().
children
(
"a:eq(0)"
).
attr
(
'aria-expanded'
,
true
);
//设置选中侧边展开
$
(
li_arr
[
i
]).
parent
().
addClass
(
'show'
);
//设置选择项颜色
$
(
li_arr
[
i
]).
children
(
"a:eq(0)"
).
addClass
(
'choice'
);
console
.
log
(
'$(li_arr[i])'
,
$
(
li_arr
[
i
]))
}
}
}
if
(
!
urlexist
)
{
previous_url
=
$
.
cookie
(
'previous_url'
);
$
(
'nav.side-navbar ul li.'
+
previous_url
+
''
).
parent
().
parent
().
addClass
(
'active'
);
$
(
'nav.side-navbar ul li.'
+
previous_url
+
''
).
parent
().
parent
().
children
(
"a:eq(0)"
).
attr
(
'aria-expanded'
,
true
);
$
(
'nav.side-navbar ul li.'
+
previous_url
+
''
).
parent
().
addClass
(
'show'
);
$
(
'nav.side-navbar ul li.'
+
previous_url
+
''
).
children
(
"a:eq(0)"
).
addClass
(
'choice'
);
}
if
(
current_url
==
'/web/admin'
)
{
$
(
'a'
).
removeClass
(
'choice'
)
$
(
'a'
).
attr
(
'aria-expanded'
,
false
)
$
(
'ul'
).
removeClass
(
'show'
);
$
(
'li'
).
removeClass
(
'active'
);
$
(
'#home-li'
).
addClass
(
'choice'
);
}
</script>
resources/views/admin/common_bak/newContent.blade.php
deleted
100644 → 0
View file @
d69560b6
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment