html RTQ - 关系表

此表是使用重新激活数据库字段构建的。列出SmartPak Supplements(列出的行)并包含一个红色按钮。 (按钮位于查询详细信息内部,因此不会重复)

RTQ_RelationalTable
<!--=======START HORSE ONE=======-->
<tr>
<td bgcolor="#ffffff" align="center" style="max-width: 560px; padding: 10px;">
<table align="center" border="0" cellpadding="0" cellspacing="0" width="560" class="responsive-table">  



<!-- Start Full Blue Cells -->
%%RT_LOOKUP_BEGIN query="/Shared/RTQ - SP Cancel Order Processing-14days-Horse1" order_by="" max_rows="1" %%
%%RT_HEADER_BEGIN%%  %%RT_HEADER_END%%
%%RT_ROW_BEGIN%%
<td align="left" style="font-size: 24px; font-family: Helvetica Neue, Helvetica, Arial, sans-serif; letter-spacing: 1px; padding-top: 10px; padding-bottom: 10px; padding-left: 15px; color: #333333; background-color: #d1e7fa; padding-left: 20px;"><span><strong>%%RecipientName%%'s SmartPaks</strong></span></td>%%RT_ROW_END%%
%%RT_FOOTER_BEGIN%% %%RT_FOOTER_END%% 
%%RT_NOT_FOUND_BEGIN%%%%RT_NOT_FOUND_END%%
%%RT_LOOKUP_END%%
<!-- End Full Blue Cells -->   
    
<tr>
    
<!-- START Product AREA --> 
<td align="left" style="letter-spacing: 1px; font-size: 18px; line-height: 28px; color: #07529e; padding-top: 20px; max-width: 200px; padding-left: 20px;vertical-align:middle;">
    
%%RT_LOOKUP_BEGIN query="/Shared/RTQ - SP Cancel Order Processing-14days-Horse1" order_by="" max_rows="10" %%
%%RT_HEADER_BEGIN%%  %%RT_HEADER_END%%
%%RT_ROW_BEGIN%%
<strong><a name="producturl2" xt="SPNOTRACK" href="http://recp.mkt32.net/ctt?m=%%MAILING_ID%%&r=%%RECIPIENT_ID%%&b=0&j=%%JOB_ID_CODE%%&k=Link_Name&kx=1&kt=12&kd=https://www.smartpakequine.com/%%WebProductRelativeURL%%?utm_source=email-lifecycle%26utm_medium=SmartPaksReactivation%26utm_content=%%MAILING_ID%%%26utm_campaign=OrderProcess" style="color:#07529E; text-decoration: none; line-height: 30px;">%%ProductName%%</a></strong><br>
%%RT_ROW_END%%
%%RT_FOOTER_BEGIN%% %%RT_FOOTER_END%% 
%%RT_NOT_FOUND_BEGIN%%%%RT_NOT_FOUND_END%%
%%RT_LOOKUP_END%%
</td>
<!-- End Product AREA -->    
</tr>
    

</table></td></tr>


<!-- START Red BUTTON -->
%%RT_LOOKUP_BEGIN query="/Shared/RTQ - SP Cancel Order Processing-14days-Horse1" order_by="" max_rows="1" %%
%%RT_HEADER_BEGIN%%  %%RT_HEADER_END%%
%%RT_ROW_BEGIN%%
<tr><td align="center">
<table bgcolor="#FFFFFF" align="center" cellpadding="0" cellspacing="0" border="0" style="background-color:#FFFFFF;"> 
<tr><td style="font-size: 16px; font-family:Helvetica Neue, Helvetica, Arial; line-height: 23px; text-align: left; padding:15px; padding-top: 0;">
<center><table bgcolor="#FFFFFF" style="background-color:#FFFFFF; width:100%;max-width:580px;" cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="10" width="100%" style="font-size: 10px; line-height: 10px;">&nbsp;</td>
</tr>
</table>
<table border="0" align="center" cellpadding="0" cellspacing="0" style="max-width:580px;">
<tr>
<td align="center">
<table border="0" cellpadding="0" cellspacing="0" style="Margin:0 auto; max-width:580px;">
<tr>
<td align="center" bgcolor="#A80000" height="45" style="margin-left: 40px; margin-right: 40px;">
<a name="Restart_RedButton"  href="https://www.smartpakequine.com/yourorders?utm_source=email-lifecycle" style="padding: 10px 40px 10px 40px; display: block;text-decoration: none;border:0;text-align: center;font-weight: bold;font-size: 18px;font-family:Helvetica Neue, Helvetica, Arial; color: #ffffff;background: #A80000;border: 1px solid #A80000; line-height:24px; letter-spacing: 1px;" xt="SPCLICK">RESTART YOUR SMARTPAKS</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="10" width="100%" style="font-size: 10px; line-height: 10px;">&nbsp;</td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</td>
</tr>
</table></td></tr>
%%RT_ROW_END%%
%%RT_FOOTER_BEGIN%% %%RT_FOOTER_END%% 
%%RT_NOT_FOUND_BEGIN%%%%RT_NOT_FOUND_END%%
%%RT_LOOKUP_END%%
<!-- END Red BUTTON --> 
<!--=======END HORSE ONE=======-->

html 异步加载CSS

https://www.filamentgroup.com/lab/load-css-simpler/?mc_cid=bb109cfcc5&mc_eid=1fa0704c9f

load-css-asynchronous.html
<link rel="stylesheet" href="/path/to/my.css" media="print" onload="this.media='all'">

html Sincronizacion dataTable JS Ajax

accion.js
$(document).ready(function(){
    
    /**
     * Setea e inicializa la tabla con datos
     */
	$("#tbl_ajax").DataTable({
		"ajax"	: URL_SERVICIO,
		"columns" : [
						{"data" : "col1" },
						{"data" : "col2"},
						{"data" : "col3"},
						{"data" : null, render: function(data, type, row, meta){
							return '<a href="'+row.col4+'" target="_blank">Accion</a>';
						}}
					]
	}); 
});

/**
 * Esta función recarga la
 * data de la tabla y se gatilla con 
 * un botón
 */
function filtrar () {
	$("#tbl_ajax").DataTable().ajax.url( URL_SERVICIO ).load(false, false);		
}
tabla.html
<table class="table table-hover table-bordered " width="100%" id="tbl_ajax">
	<thead>
		<tr>
			<th>col1</th>
			<th>col2</th>
			<th>col3</th> 
			<th>col4</th>
		</tr>
	</thead>
</table>

html django通用模板

html
https://stackoverflow.com/questions/4101458/how-to-put-javascript-at-the-bottom-of-django-pages-when-using-templatetags

<html>
<head>

{% block js-head %} Tags that need to go up top  {% endblock js-head %}

</head>
<body>
{% block header %}  Header {% endblock header %}

{% block body %} Body goes here {% endblock body %}

{% block footer %}  Footer {% endblock footer %}

{% block js-foot %}  All other javascript goes here {% endblock js-foot %}
</body>
</html>

So, you can override this with your own blocks

html 其中一项输入必须是强制性的

toggle required.html
<script>
  jQuery(function($) {
    var inputs = $('input[name$="_id"]');
    inputs.on('input', function() {
      inputs.not(this).prop('required', !$(this).val().length);
    });
});
</script>

<input required name="something_id" />
<input required name="another_id" />

html 的index.html

index.html
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="./css/style.css">
<title>タイトル</title>
<meta name="description" content="ディスクリプション">
<!-- <link rel="icon" href="./img/favicon.ico"> -->
</head>
<body>


<!-- header -->
<header id="header">
<div class="inner">

<h1 class="header-logo"><a href=""><img src="./img/header-logo.png" alt="ロゴ"></a></h1>

<!-- header-nav -->
<nav class="header-nav">
<ul class="header-list">
	<li><a href="#">MENU1</a></li>
	<li><a href="#">MENU2</a></li>
	<li><a href="#">MENU3</a></li>
	<li><a href="#">MENU4</a></li>
	<li><a href="#">MENU5</a></li>
</ul>
</nav><!-- /header-nav -->

</div><!-- /inner -->
</header><!-- /header -->


<!-- drawer -->
<div class="drawer">
<div class="drawer-open"><span></span></div>
<div class="drawer-close"></div>

<!-- drawer-content -->
<div class="drawer-content">
<nav class="drawer-nav">
<ul class="drawer-list">
	<li><a href="#">MENU1</a></li>
	<li><a href="#">MENU2</a></li>
	<li><a href="#">MENU3</a></li>
	<li><a href="#">MENU4</a></li>
	<li><a href="#">MENU5</a></li>
</ul>
</nav><!-- /drawer-nav -->

</div><!-- /drawer-content -->
</div><!-- /drawer -->


<!-- _mv.ejsの呼び出し -->
<!-- mv -->
<div id="mv">
<div class="inner">

</div><!-- /inner -->
</div><!-- /mv -->


<!-- content -->
<div id="content">
  <div class="inner">

    <!-- primary -->
    <main class="primary">
    </main><!-- primary -->

    <!-- _sidebar.ejsの呼び出し -->
    <!-- secondary -->
<aside id="secondary">
</aside><!-- /secondary -->


  </div><!-- /inner -->
</div><!-- /content -->

<!-- _footer.ejsの呼び出し -->
<!-- footer -->
<footer id="footer">
<div class="inner">

<p class="copy">&copy;</p><!-- /copy -->

</div><!-- /inner -->
</footer><!-- /footer -->


<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="./js/script.js"></script>

</body>
</html>

html 108字节CSS布局调试器

108字节CSS布局调试器

README.md
CSS Layout Debugger
=====================

A tweet-sized debugger for visualizing your CSS layouts. Outlines every DOM element on your page a random (valid) CSS hex color.

**One-line version to paste in your DevTools**

Use `$$` if your browser aliases it:

~ 108 byte version

```javascript
[].forEach.call($$("*"),function(a){a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)})
```

Using `document.querySelectorAll`:

~ 131 byte version

```javascript
[].forEach.call(document.querySelectorAll("*"),function(a){a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)})
```

~73 byte code-golfed version by @xem

```javascript
$$('*').map(A=>A.style.outline=`1px solid hsl(${(A+A).length*9},99%,50%`)
```

~66 byte code-golfed version by @daliborgogic

```javascript
$$('*').map((A,B)=>A.style.outline=`1px solid hsl(${B*B},99%,50%`)
```

If you're looking for a proper version that uses a set color per tag type, check out [pesticide.io](http://pesticide.io).

## Screenshots

Tested from Chrome DevTools:

![](http://i.imgur.com/8w5y2q1.png)

Tested from Firefox DevTools:

![](http://i.imgur.com/3qgOAXJ.png)

Tested from WebKit Nightlies (Safari):

![](http://i.imgur.com/HeUZE2V.png)

Tested in IE:

![](http://i.imgur.com/j4A3eNq.png)

Thanks to [gregwhitworth](https://twitter.com/gregwhitworth/status/515533526549024768) for verifying.

# Tag Specific Layout Debugging In 82 Bytes

My original implementation outlined each DOM element on the page with a random (valid) hex color. 

Thanks to the work by @aemkei, @p01, @sindresorhus and other commenters, we now have an even shorter version (108 bytes golfed down to 82) that uses a specific hex color *per tag name*. This lets you visually group elements similar to how pesticide.io does. 

```js
for(i=0;A=$$("*")[i++];)A.style.outline="solid hsl("+(A+A).length*9+",99%,50%)1px"
```

Preview:

![](http://i.imgur.com/N5VkRC6.png)

Thanks for the awesome help improving this folks <3
annotated.js
function(a){                             // Supply a valid selector (e.g '*' for wildcard)
  [].forEach.call(                       // Treat Nodelist as an Array (fewer bytes than Array.prototype.forEach.call(...);)
                                         // Gets the prototype of Array & uses call to execute the function on the NodeList.
    document.querySelectorAll(a),        // Query DOM for elements matching the supplied selector 
                                         // (For 108 bytes, use $$() as Chrome, Safari & FF expose it in DevTools)
    function(b){                  
      b.style.outline = "1px solid #" +  // Set the selector outline 
      (~~(Math.random()*(1<<24)))        // Pick a valid random CSS hex color
      .toString(16)})                    // Convert to a base 16 number. BOOM.
}
index.js
function(a){return [].forEach.call(document.querySelectorAll(a),function(b){b.style.outline = "1px solid #" +(~~(Math.random()*(1<<24))).toString(16)});}
package.json
{
  "name": "CSSLayoutDebugger",

  "description": "A helper for debugging CSS layouts",

  "keywords": [
    "css",
    "layout",
    "debugger"
  ]
}
test.html
<!DOCTYPE html>
<title>CSS Layout Debugger</title>
<div>I am element</div>
<div>I am element</div>
<div>I am element</div>
<div>I am element</div>
<div>I am element</div>
<div>I am element</div>
<div>I am element</div>
<div>I am element</div>
<div>I am element</div>
<div>I am element</div>
<div>I am element</div>
<div>I am element</div>
<div>I am element</div>
<div>I am element</div>
<div>I am element</div>
<div>I am element</div>
<script>
var myFunction = function(a){            // Supply a valid selector (e.g '*' for wildcard)
  [].forEach.call(                       // Treat Nodelist as an Array (fewer bytes than Array.prototype.forEach.call(...);)
                                         // Gets the prototype of Array & uses call to execute the function on the NodeList.
    document.querySelectorAll(a),        // Query DOM for elements matching the supplied selector 
                                         // (For 110 bytes, use $$() as Chrome, Safari & FF expose it in DevTools)
    function(b){                  
      b.style.outline = "1px solid #" +  // Set the selector outline 
      (~~(Math.random()*(1<<24)))       // Pick a valid random CSS hex color
      .toString(16)})                   // Convert to a base 16 number. BOOM.
}
  myFunction('*');
</script>
<!-- quick JSBin:http://jsbin.com/soseq/2/edit -->

html 查找列devex的Custom-Data-Source

code
    this.usersDlDataSource = {
            store: new CustomStore({
                key: 'dlCode',
                load: (loadOption): any => {
                    return this.userAppService
                        .getAllCustomersDls(loadOption)
                        .toPromise()
                        .then(result => {
                            return result;
                        });
                },
                byKey: (key: any): any => {
                    return of([key]).toPromise();
                },
            }),
            paginate: true,
            pageSize: 10,
        };
markup
 <dxi-column dataField="dlCode" dataType="string" caption="کد تفضیلی">
    <dxo-lookup [dataSource]="usersDlDataSource"></dxo-lookup>
    <dxi-validation-rule type="required"></dxi-validation-rule>
 </dxi-column>

html 链接custom.CSS Wordpress

LinkCss
<link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_directory_uri(); ?>/ballaun.css?v=<? echo(rand(1,10000)); ?>" />

html 关注iOS表单和嵌入式视频:添加ontouchstart =“”

form-input-ios-ontouchstart.html
<input
  id="country"
  v-model="user.country"
  name="country"
  type="text"
  :class="{ error: errors.country }"
  required
  ontouchstart=""
  @click="resetError('country')"
>