Skip to content

Instantly share code, notes, and snippets.

View lettucebo's full-sized avatar
😶

Money lettucebo

😶
View GitHub Profile
<filter>
<filter-name>XssFilter</filter-name>
<filter-class>com.hyweb.gip.filter.XssFilter</filter-class>
<init-param>
<param-name>warningPage</param-name>
<param-value>/wSite/sp?xdUrl=/wSite/xssWarning.jsp</param-value>
</init-param>
<init-param>
<param-name>FILTER_MODE</param-name>
<param-value>true</param-value>
<input type="hidden" id="xItem" name="xItem" value="<%=request.getParameter("xItem")%>" />
<script type="text/javascript">
function GetxItem()
{
var url = window.location.toString();
var t1 = url.split("?");
var t2 = t1[2].split("&");
var t3 = t2[0].split("=");
return t3[1];
}
<script>
function highlight(container, what, spanClass) {
var content = container.innerHTML,
pattern = new RegExp('(>[^<.]*)(' + what + ')([^<.]*)', 'g'),
replaceWith = '$1<span ' + (spanClass ? 'class="' + spanClass + '"' : '') + '">$2</span>$3',
highlighted = content.replace(pattern, replaceWith);
return (container.innerHTML = highlighted) !== content;
}
</script>
<script type="text/javascript">
highlight(document.getElementById('inputText'), '<%= queryWord %>', 'highlight');
</script>
<div id ="inputText">
想要highlight的區塊內容...
</div>
@lettucebo
lettucebo / web.xml
Last active February 27, 2017 14:18
<context-param>
<param-name>frontSiteUrl</param-name>
<param-value>http://www.xxxxxx.gov.tw:80/xxxx/wSite</param-value>
</context-param>
// Remove Dark theme
//[$RootKey$\Themes\{1ded0138-47ce-435e-84ef-9ec1f439b749}]
//[$RootKey$\AD7Metrics\PortSupplier\{4103F338-2255-40C0-ACF5-7380E2BEA13D}]
//[$RootKey$\External Tools\Error Loo&kup]
//[$RootKey$\LightSwitch]
//[$RootKey$\Debugger\LaunchHooks110]
//[$RootKey$\DiagnosticsHub]
//[$RootKey$\FeatureFlags]
//[$RootKey$\VB Editor]
//[$RootKey$\Languages\CodeExpansions\C/C++]
Install-Package Microsoft.EntityFrameworkCore
Install-Package Microsoft.EntityFrameworkCore.SqlServer
Install-Package Microsoft.EntityFrameworkCore.Tools
Install-Package Microsoft.VisualStudio.Web.CodeGeneration.Design
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<RuntimeFrameworkVersion>2.0.3</RuntimeFrameworkVersion>
<NETStandardImplicitPackageVersion>2.0.3</NETStandardImplicitPackageVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.0.1" />
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<RuntimeFrameworkVersion>2.0.3</RuntimeFrameworkVersion>
<NETStandardImplicitPackageVersion>2.0.3</NETStandardImplicitPackageVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="2.0.1" />