Skip to content

Commit fd92b20

Browse files
Ярослав Репетаsera527
Ярослав Репета
authored andcommitted
Bad commit
1 parent e72698a commit fd92b20

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

app/Books.php app/Models/Books.php

File renamed without changes.

resources/views/base.blade.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
</div>
136136
</nav>
137137

138-
138+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
139139
<div class="tab-content">
140140
<div id="tab1" class="tab-pane fade in active">
141141
@yield('main')
@@ -164,7 +164,6 @@
164164
<div id="vk_subscribe2"></div>
165165
</footer>
166166
</div>
167-
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
168167
<script type="text/javascript">
169168
VK.init({
170169
apiId: 5177217

resources/views/index.blade.php

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
@extends('base')
2-
32
@section('active1', " class='active'")
43
@section('href1', '#')
5-
64
@section('main')
75
@foreach($books as $book)
86
<div style='padding: 10px' class='book" + r[i][0] + " row'>
@@ -21,7 +19,19 @@
2119
</form>
2220
</div>
2321
</div>
22+
<script>
23+
VK.Api.call('users.get', {user_ids: {{ $book->user }} }, function (r) {
24+
if (r.response) {
25+
aa = r.response[0].first_name + ' ' + r.response[0].last_name;
26+
$(a[id = {{ $book->id }}]).text(aa);
27+
}
28+
});
29+
</script>
2430
@endforeach
2531
@stop
26-
32+
@section('js')
33+
$('[target = _blank]').each(function(){
34+
var id = $().attr("")
35+
});
36+
@stop
2737

0 commit comments

Comments
 (0)