Commit 6ac63081 authored by Sean O'Donnell's avatar Sean O'Donnell

Dropdown changes for games

parent df851202
......@@ -202,16 +202,12 @@ class GameController extends Controller
return response()->json(['success' => true, 'message' => 'Game Only Mode Toggled', 'game_mode' => $user->game_mode]);
}
/**
* Fetch popular games from twitch and add them to our list.
*/
public function fetchDailyGames(Request $r){
// curl -H 'Client-ID: p0gch4mp101fy451do9uod1s1x9i4a' \
// -X GET 'https://api.twitch.tv/helix/streams?game_id=33214'
$startingID = 1;
//var_dump($gameName);
$status = '200';
$offset = 0;
$server_output = Array();
......@@ -253,10 +249,5 @@ class GameController extends Controller
echo("Games Updated!");
die();
}
}
......@@ -2976,6 +2976,8 @@ fieldset[disabled] a.btn {
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); }
.btn-light {
color: #111;
background-color: #f8f9fa;
......@@ -16430,7 +16432,7 @@ label {
.bootstrap-select .dropdown-menu a[aria-selected="true"] {
color: #fff !important;
background: #fb9678 !important; }
background: #51d2b7 !important; }
.bootstrap-select.btn-group.show-tick .dropdown-menu li.selected a span.check-mark {
top: 50%;
......@@ -70,7 +70,7 @@
<div class="form-group row">
<label class="text-left text-sm-right col-form-label col-sm-2">Game</label>
<div class="col-md-2">
<select class="form-control" id="game" name="game">
<select class="selectpicker form-control" data-style="btn-success" data-live-search="true" id="game" name="game">
@foreach(App\Game::all() as $g)
<option @if($activity->game_id == $g->id) selected="true" @endif value="{{$g->id}}">{{$g->name}}</option>
@endforeach
......@@ -112,4 +112,7 @@
@include('templates.footer')
</div>
<!--/ #wrapper -->
@include('templates.scripts')
\ No newline at end of file
@include('templates.scripts')
<script src="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.9/dist/js/bootstrap-select.min.js"></script>
\ No newline at end of file
......@@ -27,7 +27,7 @@
</script>
<script src="https://d1a4w6ucfnf7xc.cloudfront.net/su-assets/assets/js/pace.min.js"></script>
<link rel="stylesheet" href="https://d1a4w6ucfnf7xc.cloudfront.net/su-assets/assets/css/metisMenu.min.css">
<link href="https://d1a4w6ucfnf7xc.cloudfront.net/su-assets/assets/css/style.min.css" rel="stylesheet" type="text/css">
<link href="/assets/css/style.css" rel="stylesheet" type="text/css">
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-112741244-1"></script>
<script>
......@@ -37,3 +37,4 @@
gtag('config', 'UA-112741244-1');
</script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-select@1.13.9/dist/css/bootstrap-select.min.css">
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment