This file contains hidden or 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
$(function () { | |
var iframe = document.querySelector('#hero-movie'); | |
var player = new Vimeo.Player(iframe, {muted: true}); | |
player.ready().then(function () { | |
player.play(); | |
player.setVolume(0.5); | |
}); | |
}); |
This file contains hidden or 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> | |
<head> | |
<title>{page_title}</title> | |
</head> | |
<body> | |
<iframe id="hero-movie" src="https://player.vimeo.com/video/{video_id}" width="{video_width}" height="{video_height}" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> | |
<script src="https://player.vimeo.com/api/player.js"></script> | |
<script> |
This file contains hidden or 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
<?php | |
namespace Sparkweb\XePlugin\SparkPayment; | |
use Route; | |
use XeRegister; | |
use Xpressengine\Plugin\AbstractPlugin; | |
class Plugin extends AbstractPlugin | |
{ | |
/** |
This file contains hidden or 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
public function boot() | |
{ | |
// implement code | |
$this->route(); | |
$this->setSettingsMenu(); | |
} |
This file contains hidden or 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
private function setSettingsMenu() | |
{ | |
$menus = [ | |
'spark_business.config' => [ | |
'title' => '์จ๋ผ์ธ ๊ฒฐ์ ', | |
'display' => true, | |
'description' => '', | |
'ordering' => 6000 | |
], | |
]; |
This file contains hidden or 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
private function route() | |
{ | |
Route::group([ | |
'namespace' => 'Sparkweb\XePlugin\SparkPayment', | |
], function () { | |
require __DIR__ . '/routes.php'; | |
}); | |
} |
This file contains hidden or 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
php artisan make:plugin spark_payment sparkweb |
This file contains hidden or 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
let apeach = { | |
heart: 'pink', | |
bodyColor: 'White', | |
borderColor: 'Black' | |
} | |
({heart, ...color}) = apeach; | |
//heart: "pink" | |
//color: {bodyColor: "White", borderColor: "Black"} |
This file contains hidden or 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
var a = 1; | |
var b = 3; | |
[a, b] = [b, a]; | |
console.log(a); // 3 | |
console.log(b); // 1 |
This file contains hidden or 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
let apeach = { | |
heart: 'pink', | |
bodyColor: 'White', | |
borderColor: 'Black' | |
} | |
// apeach ์ค๋ธ์ ํธ์ ์์ฑ์ ์ถ์ถํ์ฌ ์ฌ์ฉํ ์ ์์ต๋๋ค. | |
function getApeachHeart({heart}) { | |
return heart; | |
} |
NewerOlder