This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//$(document).ready(function(){ <--- Or you can use this | |
jQuery(function($) { | |
$("submit").click(function(){ | |
var $form = $(this); | |
//var $target = $($form.attr('data-target')); | |
$.ajax({ | |
type: $form.attr('method'), | |
url: $form.attr('action'), | |
data: $form.serialize(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Chat extends Model { | |
protected $table = "chat"; | |
protected $appends = ['gamertag', 'slug']; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add full screen wrapper | |
.box { | |
top: 50%; | |
left: 50%; | |
margin: 0; | |
position: absolute; | |
transform: translate(-50%, -50%); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel"> | |
<!-- Indicators --> | |
<ol class="carousel-indicators"> | |
@foreach( $trip->photos as $photo ) | |
<li data-target="#carousel-example-generic" data-slide-to="{{ $loop->index }}" class="{{ $loop->first ? 'active' : '' }}"></li> | |
@endforeach | |
</ol> | |
<!-- Wrapper for slides --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.dont-break-out { | |
/* These are technically the same, but use both */ | |
overflow-wrap: break-word; | |
word-wrap: break-word; | |
-ms-word-break: break-all; | |
/* This is the dangerous one in WebKit, as it breaks things wherever */ | |
word-break: break-all; | |
/* Instead use this non-standard one: */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
$(".nav-link").on("click", function(){ | |
$(".nav").find(".active").removeClass("active"); | |
$(this).parent().addClass("active"); | |
}); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container-fluid no-padding hidden-xs"> | |
<?php foreach (get_posts(['post_type' => 'home_project_section', 'posts_per_page'=>100]) as $key => $homeProjects) { | |
$thumb_id = get_post_thumbnail_id($homeProjects); | |
$thumb_url_array = wp_get_attachment_image_src($thumb_id, 'thumbnail-size', true); | |
$thumb_url = $thumb_url_array[0]; | |
$website_url = '/projects/'; | |
$url_to_project = $website_url . $homeProjects->post_name; | |
?> | |
<?php if($key % 2 == 0) { ?> | |
<div class="col-xs-12 no-padding"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// HTML Part | |
<!doctype html> | |
<html lang="{{ config('app.locale') }}"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Laravel</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The taggable database table | |
public function up() { | |
Schema::create('stateables', function (Blueprint $table) { // In this case taggables | |
$table->increments('id'); | |
$table->string('stateables_type'); // In this case taggable_type | |
$table->integer('stateables_id')->unsigned(); // In this case taggables_id | |
$table->integer('state_id')->unsigned(); // In this case tag_id | |
$table->timestamps(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="col-sm-12 no-padding"> | |
<div v-if="this.myOffers.length > 0"> | |
<div v-for="chunk in offerChunks"> | |
<div class="row"> | |
<div class="col-sm-4" v-for="offer in chunk"> | |
<!--- Content here ----> | |
</div> | |
</div> | |
</div> |
OlderNewer