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
$breakpoints: ( | |
'phone': (320px, 480px), | |
'pad': (481px, 768px), | |
'notebook': (769px, 1024px), | |
'desktop': (1025px, 1200px), | |
'tv': 1201px | |
); | |
@mixin respondTo($media) { | |
$dp: map-get($breakpoints, $media); |
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"> | |
<title>files-h5</title> | |
</head> | |
<body> | |
<input type="file" id="file" onchange="showPreview(this, 'portrait')" /> | |
<img src="" id="portrait" style="width: 200px; height: 200px; display: block;" /> | |
<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
<?php | |
/** | |
* 初始控制器 | |
*/ | |
class MY_Controller extends CI_Controller | |
{ | |
// 是否检查用户登录状态 | |
public $check_login = true; // 默认检查用户是否登录, 子类可以在 __construct() 中禁用它 | |
public function __construct() |
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 | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
if (!function_exists('success')) | |
{ | |
function jump_success($msg='操作成功', $url='javascript:history.go(-1);', $wait=2) | |
{ | |
?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> |