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
const defaultColor = 'rgb(255, 255, 0)'; | |
const stopColor = 'rgb(37, 37, 37)'; | |
/** | |
* Scroll | |
*/ | |
window.onscroll = scrollWindow; | |
/** | |
* スクロールされている間呼ばれる |
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
// | |
// TableViewController.swift | |
// MultipleCollectionView | |
// | |
// Created by Reo on 2019/11/08. | |
// Copyright © 2019 uruly.xyz. All rights reserved. | |
// | |
// I partially copied the following code. | |
// https://qiita.com/abouch/items/aca979b71ad792478687 |
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
<?php /* | |
https://ドメイン名/archives/external-link | |
で表示される画面(パーマリンク設定による) | |
*/ ?> | |
<?php get_header(); ?> | |
<div class="main-wrap"> | |
<div class="main-content single-page card"> | |
<?php |
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
// | |
// RealmMigration.swift | |
// | |
// Created by Reo on 2020/07/16. | |
// Copyright © 2020 uruly.xyz. All rights reserved. | |
// | |
import UIKit | |
import RealmSwift |
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
// | |
// CameraViewController.swift | |
// CameraTest | |
// | |
// Created by Reona Kubo on 2019/07/08. | |
// Copyright © 2019 Reona Kubo. All rights reserved. | |
// | |
import UIKit | |
import AVFoundation |
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
<?php | |
/* | |
Plugin Name: Additional Post Plugin | |
Description: 投稿ページに追記欄を作成する | |
Version: 1.0 | |
Author: Reo | |
*/ | |
define( 'ADDPP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); |
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
<?php | |
/** | |
* | |
* News_Posts_Plugin Common Settings . | |
* | |
*/ | |
if ( !class_exists('News_Posts') ) { | |
exit; | |
} |
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
// Google API Login | |
function youtubeLogin() { | |
gapi.load('client:auth2', () => { | |
gapi.client.init({ | |
apiKey: config.apiKey, | |
clientId: config.clientId, | |
discoveryDocs: config.discoveryDocs, | |
scope: config.scopes.join(' '), | |
}).then(() => { | |
gapi.client.load('youtube', 'v3', () => { |
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
window.onload = function() { | |
var header = document.querySelector('header'); | |
var headerOffsetY = header.offsetTop; | |
window.onscroll = function() { | |
var offsetY = window.pageYOffset; | |
if (headerOffsetY > offsetY) { | |
//ここで固定解除( 元々のものに戻す ) | |
header.style.position = 'absolute'; | |
header.style.top = ''; | |
header.style.bottom = '0'; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Page Title</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" type="text/css" href="style.css" /> | |
</head> | |
<body> |
NewerOlder