Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
spotify
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web
spotify
Merge requests
!42
Resolve "Migrate to Symfony framework"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Migrate to Symfony framework"
28-migrate-to-symfony-framework
into
master
Overview
0
Commits
1
Pipelines
0
Changes
81
Merged
Benoît Harrault
requested to merge
28-migrate-to-symfony-framework
into
master
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
81
Expand
Closes
#28 (closed)
Edited
2 years ago
by
Benoît Harrault
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
1f495c32
1 commit,
2 years ago
81 files
+
16099
−
790
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
81
Search (e.g. *.vue) (Ctrl+P)
public
/js/now-playing.js
→
assets
/js/now-playing.js
+
5
−
3
Options
var
lastFetchedNowPlayingData
=
""
;
var
lastFetchedNowPlayingData
=
""
;
function
updateNowPlaying
()
{
function
updateNowPlaying
()
{
var
apiUrl
=
"
now-playing
?api
"
;
var
apiUrl
=
"
now-playing
/data
"
;
var
newContent
=
fetch
(
apiUrl
)
var
newContent
=
fetch
(
apiUrl
)
.
then
(
function
(
response
)
{
.
then
(
function
(
response
)
{
@@ -80,5 +80,7 @@ function buildNowPlayingBlock(apiResponse) {
@@ -80,5 +80,7 @@ function buildNowPlayingBlock(apiResponse) {
return
html
;
return
html
;
}
}
updateNowPlaying
();
if
(
document
.
getElementById
(
"
now-playing
"
))
{
setInterval
(
updateNowPlaying
,
2000
);
updateNowPlaying
();
setInterval
(
updateNowPlaying
,
3000
);
}
Loading