code stringlengths 4 1.01M |
|---|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_31) on Wed Dec 17 20:48:31 PST 2014 -->
<title>Uses of Class org.omg.CORBA.StringValueHelper (Java Platform SE 8 )</title>
<meta name="date" content="2014-12-17">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class org.omg.CORBA.StringValueHelper (Java Platform SE 8 )";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../org/omg/CORBA/StringValueHelper.html" title="class in org.omg.CORBA">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><strong>Java™ Platform<br>Standard Ed. 8</strong></div>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/omg/CORBA/class-use/StringValueHelper.html" target="_top">Frames</a></li>
<li><a href="StringValueHelper.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h2 title="Uses of Class org.omg.CORBA.StringValueHelper" class="title">Uses of Class<br>org.omg.CORBA.StringValueHelper</h2>
</div>
<div class="classUseContainer">No usage of org.omg.CORBA.StringValueHelper</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../org/omg/CORBA/StringValueHelper.html" title="class in org.omg.CORBA">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
<div class="aboutLanguage"><strong>Java™ Platform<br>Standard Ed. 8</strong></div>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/omg/CORBA/class-use/StringValueHelper.html" target="_top">Frames</a></li>
<li><a href="StringValueHelper.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small><font size="-1"> <a href="http://bugreport.sun.com/bugreport/">Submit a bug or feature</a> <br>For further API reference and developer documentation, see <a href="http://download.oracle.com/javase/8/docs/index.html" target="_blank">Java SE Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.<br> <a href="../../../../../legal/cpyr.html">Copyright</a> © 1993, 2015, Oracle and/or its affiliates. All rights reserved. </font></small></p>
</body>
</html>
|
<?php
namespace O876\MVC\Adapter;
/**
* Adapteur
* Interface permettant la création d'une classe gérant la connexion à une base de données
* @author raphael.marandet
*
*/
interface Intf {
/**
* Permet de définir les paramètre de connexion à une base de données
* serveur, identifiant, mot de passe, encodage...
* @param array $aConf
*/
public function setConfiguration(array $aConf);
/**
* Envoie une requête à la base de donnée.
* @param string $sQuery requête
* @return array résultat de requête
*/
public function query($sQuery);
/**
* Renvoie le dernier identifiant auto incrément généré par un insert
* @return int
*/
public function getLastInsertId();
} |
<md-toolbar>
<div class="md-toolbar-tools">
<h1>Youtube</h1>
</div>
</md-toolbar>
<md-content>
<md-list flex>
<md-list-item ng-href="/youtube/search">
<md-icon md-font-set="fa" md-font-icon="fa-search"></md-icon>
<p>Search</p>
</md-list-item>
<md-divider></md-divider>
<md-list-item ng-if="relatedPlaylists.likes" ng-href="/youtube/playlist/{{ relatedPlaylists.likes }}">
<md-icon md-font-set="fa" md-font-icon="fa-thumbs-o-up"></md-icon>
<p>Liked videos</p>
</md-list-item>
<md-list-item ng-if="relatedPlaylists.uploads" ng-href="/youtube/playlist/{{ relatedPlaylists.uploads }}">
<md-icon md-font-set="fa" md-font-icon="fa-upload"></md-icon>
<p>Uploads</p>
</md-list-item>
<md-divider></md-divider>
<md-subheader class="md-no-sticky" ng-if="playlists.length">My playlists</md-subheader>
<md-list-item ng-repeat="playlist in playlists" ng-href="/youtube/playlist/{{ playlist.id }}">
<md-icon md-font-set="fa" md-font-icon="fa-list"></md-icon>
<p>{{ playlist.snippet.title }}</p>
</md-list-item>
</md-list>
</md-content>
|
# BRAML
BRAML (Bracket Markup Language) is an alternative to html.
Tags in BRAML are started with a '%'. e.g. '%div'
Which is then followed by parentheses which holds the properties for the tag. e.g. '%div(id='myDiv')'
Which is then followed by Braces that contains what your tag will contain i.e another tag or plain text. e.g. '%div(id='myDiv'){%h1(){\`hello\`}$}$'
The end of the file or just before anyset of braces that contain something must end in a '$'.
THE FILE MUST END WITH '$' without quotes.
# Usage
To compile a file to HTML simply run 'braml input.braml ouput.html'
or directly
`var braml = require('braml');
braml('%h1(){}$'); //<h1></h1>
` |
"""
Visualization module.
"""
import numpy as np
from matplotlib import animation
import matplotlib.pyplot as plt
from mpl_toolkits.basemap import Basemap
from mpl_toolkits.axes_grid1.inset_locator import zoomed_inset_axes
from mpl_toolkits.axes_grid1.inset_locator import mark_inset
from pca import create_handles
import warnings
warnings.filterwarnings('ignore')
def get_temp_markers(year, attacks):
"""
Gives all the information about the markers needed for the
year passed in argument.
"""
data_given_year = attacks[attacks['Year'] == year].reset_index()
num_markers = data_given_year.shape[0]
markers = np.zeros(num_markers, dtype=[('Longitude', float, 1),
('Latitude', float, 1),
('Size', float, 1),
('Color', float, 1)])
killed = data_given_year['Killed']
_MIN, _MAX, _MEDIAN = killed.min(), killed.max(), killed.median()
markers['Longitude'] = data_given_year['Longitude']
markers['Latitude'] = data_given_year['Latitude']
markers['Size'] = 10* np.abs(killed - _MEDIAN) + 1
markers['Color'] = (killed - _MIN)/(_MAX - _MIN)
return markers, _MAX
def world_view(attacks):
"""
Creates an animation where we see the evolution of the worldwide terrorist attacks
among the available years.
"""
fig = plt.figure(figsize=(10, 10))
cmap = plt.get_cmap('inferno')
# create the map
map = Basemap(projection='cyl')
map.drawmapboundary()
map.fillcontinents(color='lightgray', zorder=0)
# define the frame values (as 1993 is not contained in the database
# we have to remove it, otherwise we will have an empty frame)
frames = np.append(np.arange(1970, 1993), np.arange(1994, 2017))
# create the plot structure
temp_markers, _MAX = get_temp_markers(frames[0], attacks)
xs, ys = map(temp_markers['Longitude'], temp_markers['Latitude'])
scat = map.scatter(xs, ys, s=temp_markers['Size'], c=temp_markers['Color'], cmap=cmap, marker='o',
alpha=0.3, zorder=10)
year_text = plt.text(-170, 80, str(frames[0]),fontsize=15)
cbar = map.colorbar(scat, location='bottom')
cbar.set_label('number of killed people 0.0 = min [0] 1.0 = max [{}]' .format(_MAX))
plt.title('Activity of terrorism attacks from 1970 to 2016')
plt.savefig('world_view.pdf', bbox_inches='tight')
plt.show()
def update(year):
"""
Updates the content of each frame during the animation for
the year passed in argument.
"""
# retrieve necessary information from the markers
temp_markers, _MAX = get_temp_markers(year, attacks)
# update the map content
xs, ys = map(temp_markers['Longitude'], temp_markers['Latitude'])
scat.set_offsets(np.hstack((xs[:,np.newaxis], ys[:, np.newaxis])))
scat.set_color(cmap(temp_markers['Color']))
scat.set_sizes(temp_markers['Size'])
year_text.set_text(str(year))
cbar.set_label('number of killed people 0.0 = min [0] 1.0 = max [{}]' .format(_MAX))
return scat,
# create animation
ani = animation.FuncAnimation(fig, update, interval=1000, frames=frames, blit=True)
ani.save('visualization.mp4', writer = 'ffmpeg', fps=1, bitrate=-1)
plt.show()
def get_group_markers(attacks, group):
"""
Gives all the information about the markers for the
group passed in argument.
"""
data_given_group = attacks[attacks['Group'] == group]
num_markers = data_given_group.shape[0]
markers = np.zeros(num_markers, dtype=[('Longitude', float, 1),
('Latitude', float, 1),
('Size', float, 1),
('Color', float, 1)])
killed = data_given_group['Killed']
_MIN, _MAX, _MEDIAN = killed.min(), killed.max(), killed.median()
markers['Longitude'] = data_given_group['Longitude']
markers['Latitude'] = data_given_group['Latitude']
markers['Size'] = 10* np.abs(killed - _MEDIAN) + 1
markers['Color'] = (killed - _MIN)/(_MAX - _MIN)
return markers, _MAX
def zoom_taliban_intensity(attacks):
"""
Zooms in the particular location of the attacks perpetrated by the Taliban group
showing the intensity of the attacks.
"""
fig = plt.figure(figsize=(15,15))
ax = fig.add_subplot(111)
cmap = plt.get_cmap('inferno')
plt.title('Intensity of attacks perpetrated by the Taliban group\n')
# create the map
map = Basemap(projection='cyl',lat_0=0, lon_0=0)
map.drawmapboundary()
map.fillcontinents(color='lightgray', zorder=0)
# create the plot structure
temp_markers, _MAX = get_group_markers(attacks, 'Taliban')
xs, ys = map(temp_markers['Longitude'], temp_markers['Latitude'])
scat = map.scatter(xs, ys, s=temp_markers['Size'], c=temp_markers['Color'], cmap=cmap, marker='o',
alpha=0.3, zorder=10)
axins = zoomed_inset_axes(ax, 9, loc=2)
axins.set_xlim(25, 40)
axins.set_ylim(60, 75)
plt.xticks(visible=False)
plt.yticks(visible=False)
map2 = Basemap(llcrnrlon=55,llcrnrlat=25,urcrnrlon=75,urcrnrlat=40, ax=axins)
map2.drawmapboundary()
map2.fillcontinents(color='lightgray', zorder=0)
map2.drawcoastlines()
map2.drawcountries()
map2.scatter(xs, ys, s=temp_markers['Size']/5., c=cmap(temp_markers['Color']), alpha=0.5)
mark_inset(ax, axins, loc1=2, loc2=4, fc="none", ec="0.5")
plt.savefig('taliban_zoom_intensity.pdf', bbox_inches='tight')
plt.show()
def get_group_attack_types_markers(attacks, group):
"""
Gives the description of the attack types about the markers for the
group passed in argument.
"""
data_given_year = attacks[attacks['Group'] == group]
list_attack_type_unique = data_given_year['Attack_type'].unique().tolist()
list_attack_type = data_given_year['Attack_type'].tolist()
# assign each attack to the corresponding color
colors_attack_type = plt.cm.tab20(list(range(1,len(list_attack_type_unique)+1)))
label_color_dict_attack_type = dict(zip(list_attack_type_unique, colors_attack_type))
cvec_attack_type = [label_color_dict_attack_type[label] for label in list_attack_type]
num_markers = data_given_year.shape[0]
markers = np.zeros(num_markers, dtype=[('Longitude', float, 1),
('Latitude', float, 1),
('Size', float, 1),
('Color', float, 4)])
killed = data_given_year['Killed']
_MIN, _MAX, _MEDIAN = killed.min(), killed.max(), killed.median()
markers['Longitude'] = data_given_year['Longitude']
markers['Latitude'] = data_given_year['Latitude']
markers['Size'] = 100
markers['Color'] = np.array(cvec_attack_type)
return markers, label_color_dict_attack_type
def zoom_taliban_attack_types(attacks):
"""
Zooms in the particular location of the attacks perpetrated by the Taliban group
showing the different attack types.
"""
group = 'Taliban'
fig = plt.figure(figsize=(15,15))
ax = fig.add_subplot(111)
cmap = plt.get_cmap('inferno')
plt.title('Attack types perpetrated by the Taliban group\n')
# create the map
map = Basemap(projection='cyl',lat_0=0, lon_0=0)
map.drawmapboundary()
map.fillcontinents(color='lightgray', zorder=0)
# create the plot structure
temp_markers, _MAX = get_group_markers(attacks, group)
xs, ys = map(temp_markers['Longitude'], temp_markers['Latitude'])
scat = map.scatter(xs, ys, s=temp_markers['Size'], c=temp_markers['Color'], cmap=cmap, marker='o',
alpha=0.5, zorder=10)
axins = zoomed_inset_axes(ax, 9, loc=2)
axins.set_xlim(25, 40)
axins.set_ylim(60, 75)
plt.xticks(visible=False)
plt.yticks(visible=False)
map2 = Basemap(llcrnrlon=55,llcrnrlat=25,urcrnrlon=75,urcrnrlat=40, ax=axins)
map2.drawmapboundary()
map2.fillcontinents(color='lightgray', zorder=0)
map2.drawcoastlines()
map2.drawcountries()
temp_markers, label_color_dict_attack_type = get_group_attack_types_markers(attacks, group)
map2.scatter(xs, ys, s=temp_markers['Size']/5., c=temp_markers['Color'], alpha=0.5)
mark_inset(ax, axins, loc1=2, loc2=4, fc="none", ec="0.5")
handles = create_handles(label_color_dict_attack_type, ax)
labels = [h.get_label() for h in handles]
ax.legend(loc='upper left', bbox_to_anchor=(1, 1), handles=handles, labels=labels)
plt.savefig('taliban_zoom_attack_types.pdf', bbox_inches='tight')
plt.show()
|
<!doctype html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<![endif]-->
<head>
{% include _head.html %}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-101270544-1', 'auto');
ga('send', 'pageview');
</script>
</head>
<body class="home">
{% include _browser-upgrade.html %}
{% include _navigation.html %}
{% if page.image.feature %}
<div class="image-wrap">
<img src=
{% if page.image.feature contains 'http' %}
"{{ page.image.feature }}"
{% else %}
"{{ site.url }}/images/{{ page.image.feature }}"
{% endif %}
alt="{{ page.title }} feature image">
{% if page.image.credit %}
<span class="image-credit">Photo Credit: <a href="{{ page.image.creditlink }}">{{ page.image.credit }}</a></span>
{% endif %}
</div><!-- /.image-wrap -->
{% endif %}
<div id="main" role="main">
<div class="article-author-side">
{% include _author-bio.html %}
</div>
<div id="index">
<h3><a href="{{ site.url}}/posts/">Recent Posts</a></h3>
{% for post in site.posts limit:5 %}
<article>
{% if post.link %}
<h2 class="link-post"><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a> <a href="{{ post.link }}" target="_blank" title="{{ post.title }}"><i class="fa fa-link"></i></a></h2>
{% else %}
<h2><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h2>
<p>{{ post.excerpt | strip_html | truncate: 160 }}</p>
{% endif %}
</article>
{% endfor %}
</div>
<!-- /#index -->
<img src="{{ site.url }}/images/cam.jpg" align="right">
</div><!-- /#main -->
<div class="footer-wrap">
<footer>
{% include _footer.html %}
</footer>
</div><!-- /.footer-wrap -->
{% include _scripts.html %}
</body>
</html>
|
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Metadata.
pkg: grunt.file.readJSON('package.json'),
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n',
// Task configuration.
concat: {
options: {
banner: '<%= banner %>',
stripBanners: true
},
dist: {
src: ['lib/<%= pkg.name %>.js'],
dest: 'dist/<%= pkg.name %>.js'
}
},
uglify: {
options: {
banner: '<%= banner %>'
},
dist: {
src: '<%= concat.dist.dest %>',
dest: 'dist/<%= pkg.name %>.min.js'
}
},
jshint: {
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
unused: true,
boss: true,
eqnull: true,
browser: true,
globals: {
jQuery: true
}
},
gruntfile: {
src: 'Gruntfile.js'
},
lib_test: {
src: ['lib/**/*.js', 'test/**/*.js']
}
},
qunit: {
files: ['test/**/*.html']
},
watch: {
gruntfile: {
files: '<%= jshint.gruntfile.src %>',
tasks: ['jshint:gruntfile']
},
lib_test: {
files: '<%= jshint.lib_test.src %>',
tasks: ['jshint:lib_test', 'qunit']
},
stylesheets: {
files: 'stylesheets/sass/**/*.scss',
tasks:['sass:dist']
}
},
sass: {
dist: {
files: [{
expand: true,
cwd: 'stylesheets/sass/project',
src: ['*.scss'],
dest: 'stylesheets/styles',
ext: '.css'
}]
}
}
});
// These plugins provide necessary tasks.
//grunt.loadNpmTasks('grunt-contrib-concat');
//grunt.loadNpmTasks('grunt-contrib-uglify');
//grunt.loadNpmTasks('grunt-contrib-qunit');
//grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-sass');
// Default task.
//grunt.registerTask('default', ['jshint', 'qunit', 'concat', 'uglify']);
};
|
export declare const skills_en: string;
|
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/><!-- using block title in layout.dt--><!-- using block ddox.defs in ddox.layout.dt--><!-- using block ddox.title in ddox.layout.dt-->
<title>Method Adapter.height</title>
<link rel="stylesheet" type="text/css" href="../../../styles/ddox.css"/>
<link rel="stylesheet" href="../../../prettify/prettify.css" type="text/css"/>
<script type="text/javascript" src="../../../scripts/jquery.js">/**/</script>
<script type="text/javascript" src="../../../prettify/prettify.js">/**/</script>
<script type="text/javascript" src="../../../scripts/ddox.js">/**/</script>
</head>
<body onload="prettyPrint(); setupDdox();">
<nav id="main-nav"><!-- using block navigation in layout.dt-->
<ul class="tree-view">
<li class="collapsed tree-view">
<a href="#" class="package">components</a>
<ul class="tree-view">
<li>
<a href="../../../components/animation.html" class=" module">animation</a>
</li>
<li>
<a href="../../../components/assets.html" class=" module">assets</a>
</li>
<li>
<a href="../../../components/camera.html" class=" module">camera</a>
</li>
<li>
<a href="../../../components/icomponent.html" class=" module">icomponent</a>
</li>
<li>
<a href="../../../components/lights.html" class=" module">lights</a>
</li>
<li>
<a href="../../../components/material.html" class=" module">material</a>
</li>
<li>
<a href="../../../components/mesh.html" class=" module">mesh</a>
</li>
<li>
<a href="../../../components/userinterface.html" class=" module">userinterface</a>
</li>
</ul>
</li>
<li class="collapsed tree-view">
<a href="#" class="package">core</a>
<ul class="tree-view">
<li>
<a href="../../../core/dgame.html" class=" module">dgame</a>
</li>
<li>
<a href="../../../core/gameobject.html" class=" module">gameobject</a>
</li>
<li>
<a href="../../../core/prefabs.html" class=" module">prefabs</a>
</li>
<li>
<a href="../../../core/properties.html" class=" module">properties</a>
</li>
<li>
<a href="../../../core/reflection.html" class=" module">reflection</a>
</li>
<li>
<a href="../../../core/scene.html" class=" module">scene</a>
</li>
</ul>
</li>
<li class=" tree-view">
<a href="#" class="package">graphics</a>
<ul class="tree-view">
<li class=" tree-view">
<a href="#" class="package">adapters</a>
<ul class="tree-view">
<li>
<a href="../../../graphics/adapters/adapter.html" class="selected module">adapter</a>
</li>
<li>
<a href="../../../graphics/adapters/linux.html" class=" module">linux</a>
</li>
<li>
<a href="../../../graphics/adapters/mac.html" class=" module">mac</a>
</li>
<li>
<a href="../../../graphics/adapters/win32.html" class=" module">win32</a>
</li>
</ul>
</li>
<li class="collapsed tree-view">
<a href="#" class="package">shaders</a>
<ul class="tree-view">
<li class="collapsed tree-view">
<a href="#" class="package">glsl</a>
<ul class="tree-view">
<li>
<a href="../../../graphics/shaders/glsl/ambientlight.html" class=" module">ambientlight</a>
</li>
<li>
<a href="../../../graphics/shaders/glsl/animatedgeometry.html" class=" module">animatedgeometry</a>
</li>
<li>
<a href="../../../graphics/shaders/glsl/directionallight.html" class=" module">directionallight</a>
</li>
<li>
<a href="../../../graphics/shaders/glsl/geometry.html" class=" module">geometry</a>
</li>
<li>
<a href="../../../graphics/shaders/glsl/pointlight.html" class=" module">pointlight</a>
</li>
<li>
<a href="../../../graphics/shaders/glsl/userinterface.html" class=" module">userinterface</a>
</li>
</ul>
</li>
<li>
<a href="../../../graphics/shaders/glsl.html" class=" module">glsl</a>
</li>
<li>
<a href="../../../graphics/shaders/shaders.html" class=" module">shaders</a>
</li>
</ul>
</li>
<li>
<a href="../../../graphics/adapters.html" class=" module">adapters</a>
</li>
<li>
<a href="../../../graphics/graphics.html" class=" module">graphics</a>
</li>
<li>
<a href="../../../graphics/shaders.html" class=" module">shaders</a>
</li>
</ul>
</li>
<li class="collapsed tree-view">
<a href="#" class="package">utility</a>
<ul class="tree-view">
<li>
<a href="../../../utility/awesomium.html" class=" module">awesomium</a>
</li>
<li>
<a href="../../../utility/concurrency.html" class=" module">concurrency</a>
</li>
<li>
<a href="../../../utility/config.html" class=" module">config</a>
</li>
<li>
<a href="../../../utility/filepath.html" class=" module">filepath</a>
</li>
<li>
<a href="../../../utility/input.html" class=" module">input</a>
</li>
<li>
<a href="../../../utility/output.html" class=" module">output</a>
</li>
<li>
<a href="../../../utility/string.html" class=" module">string</a>
</li>
<li>
<a href="../../../utility/tasks.html" class=" module">tasks</a>
</li>
<li>
<a href="../../../utility/time.html" class=" module">time</a>
</li>
</ul>
</li>
<li>
<a href="../../../components.html" class=" module">components</a>
</li>
<li>
<a href="../../../core.html" class=" module">core</a>
</li>
<li>
<a href="../../../graphics.html" class=" module">graphics</a>
</li>
<li>
<a href="../../../utility.html" class=" module">utility</a>
</li>
</ul>
<noscript>
<p style="color: red">The search functionality needs JavaScript enabled</p>
</noscript>
<div id="symbolSearchPane" style="display: none">
<p>
<input id="symbolSearch" type="text" placeholder="Search for symbols" onchange="performSymbolSearch(24);" onkeypress="this.onchange();" onpaste="this.onchange();" oninput="this.onchange();"/>
</p>
<ul id="symbolSearchResults" style="display: none"></ul>
<script type="application/javascript" src="../../../symbols.js"></script>
<script type="application/javascript">
//<![CDATA[
var symbolSearchRootDir = "../../../"; $('#symbolSearchPane').show();
//]]>
</script>
</div>
</nav>
<div id="main-contents">
<h1>Method Adapter.height</h1><!-- using block body in layout.dt--><!-- Default block ddox.description in ddox.layout.dt--><!-- Default block ddox.sections in ddox.layout.dt--><!-- using block ddox.members in ddox.layout.dt-->
<section>
<h2>Authors</h2><!-- using block ddox.authors in ddox.layout.dt-->
</section>
<section>
<h2>Copyright</h2><!-- using block ddox.copyright in ddox.layout.dt-->
</section>
<section>
<h2>License</h2><!-- using block ddox.license in ddox.layout.dt-->
</section>
</div>
</body>
</html> |
#!/usr/bin/perl
$usage = qq{
rnaseqIds.pl <rnaseq-data>
<rnaseq-data> e.g. Ctr1_Lt_0h.txt or AAAAAA.txt
};
die "$usage" unless @ARGV == 1;
$file = $ARGV[0];
$med4 = 0;
$phm2 = 0;
open (FILE, $file) or die "No likey the file $file!";
@data = <FILE>;
close FILE;
foreach $line (@data) {
chomp $line;
@fields = split(/\t/,$line);
if ($fields[0] eq "MED4") {
$med4 += 1;
if ($med4 < 10) {
$fields[0] = "MED4-000$med4";
} elsif ($med4 < 100) {
$fields[0] = "MED4-00$med4";
} elsif ($med4 < 1000) {
$fields[0] = "MED4-0$med4";
} else {
$fields[0] = "MED4-$med4";
}
$newline = join("\t",@fields);
print "$newline\n";
}
if ($fields[0] eq "PHM2") {
$phm2 += 1;
if ($phm2 < 10) {
$fields[0] = "PHM2-00$phm2";
} elsif ($phm2 < 100) {
$fields[0] = "PHM2-0$phm2";
} else {
$fields[0] = "PHM2-$phm2";
}
$newline = join("\t",@fields);
print "$newline\n";
}
}
exit;
|
/*
* Copyright (c) 2011 Ayan Dave http://daveayan.com
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
* associated documentation files (the "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
* following conditions:
*
* 1) The above copyright notice and this permission notice shall be included without any changes or alterations
* in all copies or substantial portions of the Software.
* 2) The copyright notice part of the org.json package and its classes shall be honored.
* 3) This software shall be used for Good, not Evil.
* portions of the Software.
*
* The copyright notice part of the org.json package and its classes shall be honored.
* This software shall be used for Good, not Evil.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
* BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package com.daveayan.rjson.utils;
import java.io.File;
import java.io.IOException;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.daveayan.json.JSONArray;
import com.daveayan.json.JSONException;
import com.daveayan.json.JSONObject;
import com.daveayan.json.JSONTokener;
import com.daveayan.rjson.Rjson;
import com.daveayan.rjson.transformer.BaseTransformer;
public class RjsonUtil {
private static Log log = LogFactory.getLog(BaseTransformer.class);
public static Object getJsonObject(String json) throws JSONException {
log.debug("getJsonObject for " + json);
if(StringUtils.isEmpty(json)) {
return "";
}
JSONTokener tokener = new JSONTokener(json);
char firstChar = tokener.nextClean();
if (firstChar == '\"') {
return tokener.nextString('\"');
}
if (firstChar == '{') {
tokener.back();
return new JSONObject(tokener);
}
if (firstChar == '[') {
tokener.back();
return new JSONArray(tokener);
}
if (Character.isDigit(firstChar)) {
tokener.back();
return tokener.nextValue();
}
tokener.back();
return tokener.nextValue();
}
public static String reformat(String inputJson) {
String outputJson = new String(inputJson);
try {
JSONObject jo = new JSONObject(inputJson.toString());
outputJson = jo.toString(2);
} catch (JSONException e) {
}
return outputJson;
}
public static Object fileAsObject(String filename) throws IOException {
return Rjson.newInstance().toObject(fileAsString(filename));
}
public static String fileAsString(String file) throws IOException {
return FileUtils.readFileToString(new File(file)).replaceAll("\\r\\n", "\n");
}
public static Rjson completeSerializer() {
return Rjson.newInstance().with(new NullifyDateTransformer()).andRecordAllModifiers();
}
public static Rjson pointInTimeSerializer() {
return Rjson.newInstance().andRecordAllModifiers().andRecordFinal().andDoNotFormatJson();
}
public static void recordJsonToFile(Object object, String absolutePath) {
recordJsonToFile(object, absolutePath, RjsonUtil.completeSerializer());
}
public static void recordJsonToFile(Object object, String absolutePath, Rjson rjson) {
try {
FileUtils.writeStringToFile(new File(absolutePath), rjson.toJson(object));
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
public static String escapeJsonCharactersIn(String string) {
String newString = StringUtils.replace(string, "\"", "");
newString = StringUtils.replace(newString, "[", "\\[");
newString = StringUtils.replace(newString, "]", "\\]");
newString = StringUtils.replace(newString, "{", "\\{");
newString = StringUtils.replace(newString, "}", "\\}");
return newString;
}
public static String unEscapeJsonCharactersIn(String string) {
String newString = StringUtils.replace(string, "\"", "");
newString = StringUtils.replace(newString, "\\[", "[");
newString = StringUtils.replace(newString, "\\]", "]");
newString = StringUtils.replace(newString, "\\{", "{");
newString = StringUtils.replace(newString, "\\}", "}");
return newString;
}
} |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Taskling.Blocks.RangeBlocks;
using Taskling.InfrastructureContracts.Blocks.CommonRequests;
namespace Taskling.InfrastructureContracts.Blocks
{
public interface IRangeBlockRepository
{
Task ChangeStatusAsync(BlockExecutionChangeStatusRequest changeStatusRequest);
Task<RangeBlock> GetLastRangeBlockAsync(LastBlockRequest lastRangeBlockRequest);
}
}
|
# sven-amann.de
Jekyll project with my website.
|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>W29553_text</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div style="margin-left: auto; margin-right: auto; width: 800px; overflow: hidden;">
<div style="float: left;">
<a href="page36.html">«</a>
</div>
<div style="float: right;">
</div>
</div>
<hr/>
<div style="position: absolute; margin-left: 330px; margin-top: 357px;">
<p class="styleSans10.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>">Alternatives to Flaring <br/>6a. <br/>6b. <br/>Purchaser capacity is not expected to be sufficient for the volumes produced from these wells. in the event that electric power is required on-site, a natural gas powered generator will be evaluated. Installation of a liquid stripping plant to be utilized in the event of upset conditions would not be economic. Such an installation will be re-evaluated as additional wells are completed and if conditions change. <br/>A natural gas powered generator could be expected to reduce flare volumes by approximately 30-40 MCFD. A liquid stripping plant could be expected to reduce flare volumes by approximately 40%. On lease gas use by Heater/Treaters will consume approximately 15 MCFD </p>
</div>
<div style="position: absolute; margin-left: 907px; margin-top: 1952px;">
<p class="styleSans1.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>"></p>
</div>
<div style="position: absolute; margin-left: 880px; margin-top: 2502px;">
<p class="styleSans12000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>"></p>
</div>
<div style="position: absolute; margin-left: 990px; margin-top: 2805px;">
<p class="styleSans1.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle>"></p>
</div>
</body>
</html>
|
/*********************************************************************
** Copyright (C) 2003 Terabit Pty Ltd. All rights reserved.
**
** This file is part of the POSIX-Proactor module.
**
** @file SslChannel.h
**
**
** @author Alexander Libman <libman@terabit.com.au>
**
**
**
**********************************************************************/
#ifndef TERABIT_SSLCHANNEL_H
#define TERABIT_SSLCHANNEL_H
#include "IOTerabit/SSL/IOTERABIT_SSL_Export.h"
#include "IOTerabit/AsynchChannel.h"
#include "TProactor/Monitor_T.h"
#include "TProactor/SSL/SSL_Asynch_Stream.h"
namespace Terabit {
// *************************************************************
// SslChannel
// *************************************************************
class IOTERABIT_SSL_Export SslChannel :
public AsynchChannel
{
public:
SslChannel (int id);
virtual ~SslChannel (void);
private:
virtual void handle_wakeup ();
virtual int open_impl (ACE_HANDLE handle, bool flg_server);
virtual int close_impl ();
virtual int start_read_impl (ACE_Message_Block& mb, size_t nbytes);
virtual int start_write_impl (ACE_Message_Block& mb, size_t nbytes);
virtual bool has_specific_events ();
virtual int reset_impl ();
TRB_SSL_Asynch_Stream *ssl_stream_;
};
// *************************************************************
// SslChannelFactory
// *************************************************************
class IOTERABIT_SSL_Export SslChannelFactory :
public AsynchChannelFactory
{
public:
typedef ACE_SYNCH_MUTEX Mutex;
typedef ACE_SYNCH_CONDITION Condition;
typedef Monitor_T<Mutex,Condition> Monitor;
typedef Guard_Monitor_T<Monitor> Guard_Monitor;
typedef Guard_Monitor::Save_Guard Save_Guard;
SslChannelFactory (unsigned int min_cache_size = 0,
unsigned int max_cache_size = (size_t) -1);
virtual ~SslChannelFactory ();
virtual AsynchChannel* create_channel();
virtual void destroy_channel (AsynchChannel *channel);
void set_pool_size (unsigned int min_cache_size,
unsigned int max_cache_size);
private:
void add_channels (unsigned int count);
void del_channels (unsigned int count);
Monitor monitor_;
AsynchChannelList free_list_; // pool of free channel for reuse
unsigned int min_free_channels_; // min number of channels in the pool
unsigned int max_free_channels_; // max number of channels in the pool
unsigned int num_channels_; // current number active and free channels
unsigned int next_id_; // next channel id to assign
};
} //namespace Terabit
#endif // TERABIT_SSLCHANNEL_H
|
namespace LSLib.LS.Enums
{
public enum CompressionLevel
{
FastCompression,
DefaultCompression,
MaxCompression
};
} |
version https://git-lfs.github.com/spec/v1
oid sha256:2566f139073c240a090aee1fb4254ec2b799a9402dd6494447afbe4e12c97654
size 6184
|
<div class="container">
<h3>Welcome, new Citizens!</h3>
<p>Awesome that you got to this page. A journey starts with a step, and you have started a step. Applaud yourself!</p>
<a href="{% url 'cQuiz:detail' latest_question_list.0.id %}" class="btn btn-primary"> Start Quiz </a>
</div> |
<?php
/*
|--------------------------------------------------------------------------
| Create The Application
|--------------------------------------------------------------------------
|
| The first thing we will do is create a new Laravel application instance
| which serves as the "glue" for all the components of Laravel, and is
| the IoC container for the system binding all of the various parts.
|
*/
$app = new Illuminate\Foundation\Application(
realpath(__DIR__.'/../')
);
/*
|--------------------------------------------------------------------------
| Bind Important Interfaces
|--------------------------------------------------------------------------
|
| Next, we need to bind some important interfaces into the container so
| we will be able to resolve them when needed. The kernels serve the
| incoming requests to this application from both the web and CLI.
|
*/
$app->singleton(
Illuminate\Contracts\Http\Kernel::class,
Klauskpm\Http\Kernel::class
);
$app->singleton(
Illuminate\Contracts\Console\Kernel::class,
Klauskpm\Console\Kernel::class
);
$app->singleton(
Illuminate\Contracts\Debug\ExceptionHandler::class,
Klauskpm\Exceptions\Handler::class
);
/*
|--------------------------------------------------------------------------
| Return The Application
|--------------------------------------------------------------------------
|
| This script returns the application instance. The instance is given to
| the calling script so we can separate the building of the instances
| from the actual running of the application and sending responses.
|
*/
return $app;
|
namespace DataBoss.Linq
{
public static class Collection
{
public static EmptyCollection<T> Empty<T>() => new();
}
} |
package de.tum.in.www1.artemis.repository;
import java.util.List;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import de.tum.in.www1.artemis.domain.modeling.ModelingSubmission;
/**
* Spring Data JPA repository for the ModelingSubmission entity.
*/
@SuppressWarnings("unused")
@Repository
public interface ModelingSubmissionRepository extends JpaRepository<ModelingSubmission, Long> {
@Query("select distinct submission from ModelingSubmission submission left join fetch submission.result r left join fetch r.assessor where submission.id = :#{#submissionId}")
Optional<ModelingSubmission> findByIdWithEagerResult(@Param("submissionId") Long submissionId);
@Query("select distinct submission from ModelingSubmission submission left join fetch submission.result r left join fetch r.feedbacks left join fetch r.assessor where submission.id = :#{#submissionId}")
Optional<ModelingSubmission> findByIdWithEagerResultAndFeedback(@Param("submissionId") Long submissionId);
@Query("select distinct submission from ModelingSubmission submission left join fetch submission.participation p left join fetch submission.result r left join fetch r.feedbacks where p.exercise.id = :#{#exerciseId} and r.assessmentType = 'MANUAL'")
List<ModelingSubmission> findByExerciseIdWithEagerResultsWithManualAssessment(@Param("exerciseId") Long exerciseId);
@Query("select distinct submission from ModelingSubmission submission left join fetch submission.result r left join fetch r.feedbacks where submission.exampleSubmission = true and submission.id = :#{#submissionId}")
Optional<ModelingSubmission> findExampleSubmissionByIdWithEagerResult(@Param("submissionId") Long submissionId);
/**
* @param courseId the course we are interested in
* @param submitted boolean to check if an exercise has been submitted or not
* @return number of submissions belonging to courseId with submitted status
*/
long countByParticipation_Exercise_Course_IdAndSubmitted(Long courseId, boolean submitted);
/**
* @param courseId the course id we are interested in
* @return the number of submissions belonging to the course id, which have the submitted flag set to true and the submission date before the exercise due date, or no exercise
* due date at all
*/
@Query("SELECT COUNT (DISTINCT submission) FROM ModelingSubmission submission WHERE submission.participation.exercise.course.id = :#{#courseId} AND submission.submitted = TRUE AND (submission.submissionDate < submission.participation.exercise.dueDate OR submission.participation.exercise.dueDate IS NULL)")
long countByCourseIdSubmittedBeforeDueDate(@Param("courseId") Long courseId);
/**
* @param exerciseId the exercise id we are interested in
* @return the number of submissions belonging to the exercise id, which have the submitted flag set to true and the submission date before the exercise due date, or no
* exercise due date at all
*/
@Query("SELECT COUNT (DISTINCT submission) FROM ModelingSubmission submission WHERE submission.participation.exercise.id = :#{#exerciseId} AND submission.submitted = TRUE AND (submission.submissionDate < submission.participation.exercise.dueDate OR submission.participation.exercise.dueDate IS NULL)")
long countByExerciseIdSubmittedBeforeDueDate(@Param("exerciseId") Long exerciseId);
}
|
/*
* Qt4 facoin GUI.
*
* W.J. van der Laan 2011-2012
* The Facoin Developers 2011-2012
*/
#include "facoingui.h"
#include "transactiontablemodel.h"
#include "addressbookpage.h"
#include "sendcoinsdialog.h"
#include "signverifymessagedialog.h"
#include "optionsdialog.h"
#include "aboutdialog.h"
#include "clientmodel.h"
#include "walletmodel.h"
#include "editaddressdialog.h"
#include "optionsmodel.h"
#include "transactiondescdialog.h"
#include "addresstablemodel.h"
#include "transactionview.h"
#include "overviewpage.h"
#include "facoinunits.h"
#include "guiconstants.h"
#include "askpassphrasedialog.h"
#include "notificator.h"
#include "guiutil.h"
#include "rpcconsole.h"
#include "wallet.h"
#ifdef Q_OS_MAC
#include "macdockiconhandler.h"
#endif
#include <QApplication>
#include <QMainWindow>
#include <QMenuBar>
#include <QMenu>
#include <QIcon>
#include <QTabWidget>
#include <QVBoxLayout>
#include <QToolBar>
#include <QStatusBar>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QLocale>
#include <QMessageBox>
#include <QMimeData>
#include <QProgressBar>
#include <QStackedWidget>
#include <QDateTime>
#include <QMovie>
#include <QFileDialog>
#include <QDesktopServices>
#include <QTimer>
#include <QDragEnterEvent>
#include <QUrl>
#include <QStyle>
#include <iostream>
extern CWallet* pwalletMain;
extern int64_t nLastCoinStakeSearchInterval;
double GetPoSKernelPS();
FacoinGUI::FacoinGUI(QWidget *parent):
QMainWindow(parent),
clientModel(0),
walletModel(0),
encryptWalletAction(0),
changePassphraseAction(0),
unlockWalletAction(0),
lockWalletAction(0),
aboutQtAction(0),
trayIcon(0),
notificator(0),
rpcConsole(0),
nWeight(0)
{
resize(850, 550);
setWindowTitle(tr("FACOIN") + " - " + tr("Wallet"));
#ifndef Q_OS_MAC
qApp->setWindowIcon(QIcon(":icons/facoin"));
setWindowIcon(QIcon(":icons/facoin"));
#else
setUnifiedTitleAndToolBarOnMac(true);
QApplication::setAttribute(Qt::AA_DontShowIconsInMenus);
#endif
// Accept D&D of URIs
setAcceptDrops(true);
// Create actions for the toolbar, menu bar and tray/dock icon
createActions();
// Create application menu bar
createMenuBar();
// Create the toolbars
createToolBars();
// Create the tray icon (or setup the dock icon)
createTrayIcon();
// Create tabs
overviewPage = new OverviewPage();
transactionsPage = new QWidget(this);
QVBoxLayout *vbox = new QVBoxLayout();
transactionView = new TransactionView(this);
vbox->addWidget(transactionView);
transactionsPage->setLayout(vbox);
addressBookPage = new AddressBookPage(AddressBookPage::ForEditing, AddressBookPage::SendingTab);
receiveCoinsPage = new AddressBookPage(AddressBookPage::ForEditing, AddressBookPage::ReceivingTab);
sendCoinsPage = new SendCoinsDialog(this);
signVerifyMessageDialog = new SignVerifyMessageDialog(this);
centralWidget = new QStackedWidget(this);
centralWidget->addWidget(overviewPage);
centralWidget->addWidget(transactionsPage);
centralWidget->addWidget(addressBookPage);
centralWidget->addWidget(receiveCoinsPage);
centralWidget->addWidget(sendCoinsPage);
setCentralWidget(centralWidget);
// Create status bar
statusBar();
// Status bar notification icons
QFrame *frameBlocks = new QFrame();
frameBlocks->setContentsMargins(0,0,0,0);
frameBlocks->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred);
QHBoxLayout *frameBlocksLayout = new QHBoxLayout(frameBlocks);
frameBlocksLayout->setContentsMargins(3,0,3,0);
frameBlocksLayout->setSpacing(3);
labelEncryptionIcon = new QLabel();
labelStakingIcon = new QLabel();
labelConnectionsIcon = new QLabel();
labelBlocksIcon = new QLabel();
frameBlocksLayout->addStretch();
frameBlocksLayout->addWidget(labelEncryptionIcon);
frameBlocksLayout->addStretch();
frameBlocksLayout->addWidget(labelStakingIcon);
frameBlocksLayout->addStretch();
frameBlocksLayout->addWidget(labelConnectionsIcon);
frameBlocksLayout->addStretch();
frameBlocksLayout->addWidget(labelBlocksIcon);
frameBlocksLayout->addStretch();
if (GetBoolArg("-staking", true))
{
QTimer *timerStakingIcon = new QTimer(labelStakingIcon);
connect(timerStakingIcon, SIGNAL(timeout()), this, SLOT(updateStakingIcon()));
timerStakingIcon->start(30 * 1000);
updateStakingIcon();
}
// Progress bar and label for blocks download
progressBarLabel = new QLabel();
progressBarLabel->setVisible(false);
progressBar = new QProgressBar();
progressBar->setAlignment(Qt::AlignCenter);
progressBar->setVisible(false);
// Override style sheet for progress bar for styles that have a segmented progress bar,
// as they make the text unreadable (workaround for issue #1071)
// See https://qt-project.org/doc/qt-4.8/gallery.html
QString curStyle = qApp->style()->metaObject()->className();
if(curStyle == "QWindowsStyle" || curStyle == "QWindowsXPStyle")
{
progressBar->setStyleSheet("QProgressBar { background-color: #e8e8e8; border: 1px solid grey; border-radius: 7px; padding: 1px; text-align: center; } QProgressBar::chunk { background: QLinearGradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #FF8000, stop: 1 orange); border-radius: 7px; margin: 0px; }");
}
statusBar()->addWidget(progressBarLabel);
statusBar()->addWidget(progressBar);
statusBar()->addPermanentWidget(frameBlocks);
syncIconMovie = new QMovie(":/movies/update_spinner", "mng", this);
// Clicking on a transaction on the overview page simply sends you to transaction history page
connect(overviewPage, SIGNAL(transactionClicked(QModelIndex)), this, SLOT(gotoHistoryPage()));
connect(overviewPage, SIGNAL(transactionClicked(QModelIndex)), transactionView, SLOT(focusTransaction(QModelIndex)));
// Double-clicking on a transaction on the transaction history page shows details
connect(transactionView, SIGNAL(doubleClicked(QModelIndex)), transactionView, SLOT(showDetails()));
rpcConsole = new RPCConsole(this);
connect(openRPCConsoleAction, SIGNAL(triggered()), rpcConsole, SLOT(show()));
// Clicking on "Verify Message" in the address book sends you to the verify message tab
connect(addressBookPage, SIGNAL(verifyMessage(QString)), this, SLOT(gotoVerifyMessageTab(QString)));
// Clicking on "Sign Message" in the receive coins page sends you to the sign message tab
connect(receiveCoinsPage, SIGNAL(signMessage(QString)), this, SLOT(gotoSignMessageTab(QString)));
gotoOverviewPage();
}
FacoinGUI::~FacoinGUI()
{
if(trayIcon) // Hide tray icon, as deleting will let it linger until quit (on Ubuntu)
trayIcon->hide();
#ifdef Q_OS_MAC
delete appMenuBar;
#endif
}
void FacoinGUI::createActions()
{
QActionGroup *tabGroup = new QActionGroup(this);
overviewAction = new QAction(QIcon(":/icons/overview"), tr("&Overview"), this);
overviewAction->setToolTip(tr("Show general overview of wallet"));
overviewAction->setCheckable(true);
overviewAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_1));
tabGroup->addAction(overviewAction);
sendCoinsAction = new QAction(QIcon(":/icons/send"), tr("&Send coins"), this);
sendCoinsAction->setToolTip(tr("Send coins to a FACOIN address"));
sendCoinsAction->setCheckable(true);
sendCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_2));
tabGroup->addAction(sendCoinsAction);
receiveCoinsAction = new QAction(QIcon(":/icons/receiving_addresses"), tr("&Receive coins"), this);
receiveCoinsAction->setToolTip(tr("Show the list of addresses for receiving payments"));
receiveCoinsAction->setCheckable(true);
receiveCoinsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_3));
tabGroup->addAction(receiveCoinsAction);
historyAction = new QAction(QIcon(":/icons/history"), tr("&Transactions"), this);
historyAction->setToolTip(tr("Browse transaction history"));
historyAction->setCheckable(true);
historyAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_4));
tabGroup->addAction(historyAction);
addressBookAction = new QAction(QIcon(":/icons/address-book"), tr("&Address Book"), this);
addressBookAction->setToolTip(tr("Edit the list of stored addresses and labels"));
addressBookAction->setCheckable(true);
addressBookAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_5));
tabGroup->addAction(addressBookAction);
connect(overviewAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
connect(overviewAction, SIGNAL(triggered()), this, SLOT(gotoOverviewPage()));
connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(gotoSendCoinsPage()));
connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(gotoReceiveCoinsPage()));
connect(historyAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
connect(historyAction, SIGNAL(triggered()), this, SLOT(gotoHistoryPage()));
connect(addressBookAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
connect(addressBookAction, SIGNAL(triggered()), this, SLOT(gotoAddressBookPage()));
quitAction = new QAction(QIcon(":/icons/quit"), tr("E&xit"), this);
quitAction->setToolTip(tr("Quit application"));
quitAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_Q));
quitAction->setMenuRole(QAction::QuitRole);
aboutAction = new QAction(QIcon(":/icons/facoin"), tr("&About FACOIN"), this);
aboutAction->setToolTip(tr("Show information about FACOIN"));
aboutAction->setMenuRole(QAction::AboutRole);
aboutQtAction = new QAction(QIcon(":/trolltech/qmessagebox/images/qtlogo-64.png"), tr("About &Qt"), this);
aboutQtAction->setToolTip(tr("Show information about Qt"));
aboutQtAction->setMenuRole(QAction::AboutQtRole);
optionsAction = new QAction(QIcon(":/icons/options"), tr("&Options..."), this);
optionsAction->setToolTip(tr("Modify configuration options for FACOIN"));
optionsAction->setMenuRole(QAction::PreferencesRole);
toggleHideAction = new QAction(QIcon(":/icons/facoin"), tr("&Show / Hide"), this);
encryptWalletAction = new QAction(QIcon(":/icons/lock_closed"), tr("&Encrypt Wallet..."), this);
encryptWalletAction->setToolTip(tr("Encrypt or decrypt wallet"));
encryptWalletAction->setCheckable(true);
backupWalletAction = new QAction(QIcon(":/icons/filesave"), tr("&Backup Wallet..."), this);
backupWalletAction->setToolTip(tr("Backup wallet to another location"));
changePassphraseAction = new QAction(QIcon(":/icons/key"), tr("&Change Passphrase..."), this);
changePassphraseAction->setToolTip(tr("Change the passphrase used for wallet encryption"));
unlockWalletAction = new QAction(QIcon(":/icons/lock_open"), tr("&Unlock Wallet..."), this);
unlockWalletAction->setToolTip(tr("Unlock wallet"));
lockWalletAction = new QAction(QIcon(":/icons/lock_closed"), tr("&Lock Wallet"), this);
lockWalletAction->setToolTip(tr("Lock wallet"));
signMessageAction = new QAction(QIcon(":/icons/edit"), tr("Sign &message..."), this);
verifyMessageAction = new QAction(QIcon(":/icons/transaction_0"), tr("&Verify message..."), this);
exportAction = new QAction(QIcon(":/icons/export"), tr("&Export..."), this);
exportAction->setToolTip(tr("Export the data in the current tab to a file"));
openRPCConsoleAction = new QAction(QIcon(":/icons/debugwindow"), tr("&Debug window"), this);
openRPCConsoleAction->setToolTip(tr("Open debugging and diagnostic console"));
connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit()));
connect(aboutAction, SIGNAL(triggered()), this, SLOT(aboutClicked()));
connect(aboutQtAction, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
connect(optionsAction, SIGNAL(triggered()), this, SLOT(optionsClicked()));
connect(toggleHideAction, SIGNAL(triggered()), this, SLOT(toggleHidden()));
connect(encryptWalletAction, SIGNAL(triggered(bool)), this, SLOT(encryptWallet(bool)));
connect(backupWalletAction, SIGNAL(triggered()), this, SLOT(backupWallet()));
connect(changePassphraseAction, SIGNAL(triggered()), this, SLOT(changePassphrase()));
connect(unlockWalletAction, SIGNAL(triggered()), this, SLOT(unlockWallet()));
connect(lockWalletAction, SIGNAL(triggered()), this, SLOT(lockWallet()));
connect(signMessageAction, SIGNAL(triggered()), this, SLOT(gotoSignMessageTab()));
connect(verifyMessageAction, SIGNAL(triggered()), this, SLOT(gotoVerifyMessageTab()));
}
void FacoinGUI::createMenuBar()
{
#ifdef Q_OS_MAC
// Create a decoupled menu bar on Mac which stays even if the window is closed
appMenuBar = new QMenuBar();
#else
// Get the main window's menu bar on other platforms
appMenuBar = menuBar();
#endif
// Configure the menus
QMenu *file = appMenuBar->addMenu(tr("&File"));
file->addAction(backupWalletAction);
file->addAction(exportAction);
file->addAction(signMessageAction);
file->addAction(verifyMessageAction);
file->addSeparator();
file->addAction(quitAction);
QMenu *settings = appMenuBar->addMenu(tr("&Settings"));
settings->addAction(encryptWalletAction);
settings->addAction(changePassphraseAction);
settings->addAction(unlockWalletAction);
settings->addAction(lockWalletAction);
settings->addSeparator();
settings->addAction(optionsAction);
QMenu *help = appMenuBar->addMenu(tr("&Help"));
help->addAction(openRPCConsoleAction);
help->addSeparator();
help->addAction(aboutAction);
help->addAction(aboutQtAction);
}
void FacoinGUI::createToolBars()
{
QToolBar *toolbar = addToolBar(tr("Tabs toolbar"));
toolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
toolbar->addAction(overviewAction);
toolbar->addAction(sendCoinsAction);
toolbar->addAction(receiveCoinsAction);
toolbar->addAction(historyAction);
toolbar->addAction(addressBookAction);
QToolBar *toolbar2 = addToolBar(tr("Actions toolbar"));
toolbar2->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
toolbar2->addAction(exportAction);
}
void FacoinGUI::setClientModel(ClientModel *clientModel)
{
this->clientModel = clientModel;
if(clientModel)
{
// Replace some strings and icons, when using the testnet
if(clientModel->isTestNet())
{
setWindowTitle(windowTitle() + QString(" ") + tr("[testnet]"));
#ifndef Q_OS_MAC
qApp->setWindowIcon(QIcon(":icons/facoin_testnet"));
setWindowIcon(QIcon(":icons/facoin_testnet"));
#else
MacDockIconHandler::instance()->setIcon(QIcon(":icons/facoin_testnet"));
#endif
if(trayIcon)
{
trayIcon->setToolTip(tr("FACOIN client") + QString(" ") + tr("[testnet]"));
trayIcon->setIcon(QIcon(":/icons/toolbar_testnet"));
toggleHideAction->setIcon(QIcon(":/icons/toolbar_testnet"));
}
aboutAction->setIcon(QIcon(":/icons/toolbar_testnet"));
}
// Keep up to date with client
setNumConnections(clientModel->getNumConnections());
connect(clientModel, SIGNAL(numConnectionsChanged(int)), this, SLOT(setNumConnections(int)));
setNumBlocks(clientModel->getNumBlocks(), clientModel->getNumBlocksOfPeers());
connect(clientModel, SIGNAL(numBlocksChanged(int,int)), this, SLOT(setNumBlocks(int,int)));
// Report errors from network/worker thread
connect(clientModel, SIGNAL(error(QString,QString,bool)), this, SLOT(error(QString,QString,bool)));
rpcConsole->setClientModel(clientModel);
addressBookPage->setOptionsModel(clientModel->getOptionsModel());
receiveCoinsPage->setOptionsModel(clientModel->getOptionsModel());
}
}
void FacoinGUI::setWalletModel(WalletModel *walletModel)
{
this->walletModel = walletModel;
if(walletModel)
{
// Report errors from wallet thread
connect(walletModel, SIGNAL(error(QString,QString,bool)), this, SLOT(error(QString,QString,bool)));
// Put transaction list in tabs
transactionView->setModel(walletModel);
overviewPage->setModel(walletModel);
addressBookPage->setModel(walletModel->getAddressTableModel());
receiveCoinsPage->setModel(walletModel->getAddressTableModel());
sendCoinsPage->setModel(walletModel);
signVerifyMessageDialog->setModel(walletModel);
setEncryptionStatus(walletModel->getEncryptionStatus());
connect(walletModel, SIGNAL(encryptionStatusChanged(int)), this, SLOT(setEncryptionStatus(int)));
// Balloon pop-up for new transaction
connect(walletModel->getTransactionTableModel(), SIGNAL(rowsInserted(QModelIndex,int,int)),
this, SLOT(incomingTransaction(QModelIndex,int,int)));
// Ask for passphrase if needed
connect(walletModel, SIGNAL(requireUnlock()), this, SLOT(unlockWallet()));
}
}
void FacoinGUI::createTrayIcon()
{
QMenu *trayIconMenu;
#ifndef Q_OS_MAC
trayIcon = new QSystemTrayIcon(this);
trayIconMenu = new QMenu(this);
trayIcon->setContextMenu(trayIconMenu);
trayIcon->setToolTip(tr("FACOIN client"));
trayIcon->setIcon(QIcon(":/icons/toolbar"));
connect(trayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)),
this, SLOT(trayIconActivated(QSystemTrayIcon::ActivationReason)));
trayIcon->show();
#else
// Note: On Mac, the dock icon is used to provide the tray's functionality.
MacDockIconHandler *dockIconHandler = MacDockIconHandler::instance();
dockIconHandler->setMainWindow((QMainWindow *)this);
trayIconMenu = dockIconHandler->dockMenu();
#endif
// Configuration of the tray icon (or dock icon) icon menu
trayIconMenu->addAction(toggleHideAction);
trayIconMenu->addSeparator();
trayIconMenu->addAction(sendCoinsAction);
trayIconMenu->addAction(receiveCoinsAction);
trayIconMenu->addSeparator();
trayIconMenu->addAction(signMessageAction);
trayIconMenu->addAction(verifyMessageAction);
trayIconMenu->addSeparator();
trayIconMenu->addAction(optionsAction);
trayIconMenu->addAction(openRPCConsoleAction);
#ifndef Q_OS_MAC // This is built-in on Mac
trayIconMenu->addSeparator();
trayIconMenu->addAction(quitAction);
#endif
notificator = new Notificator(qApp->applicationName(), trayIcon);
}
#ifndef Q_OS_MAC
void FacoinGUI::trayIconActivated(QSystemTrayIcon::ActivationReason reason)
{
if(reason == QSystemTrayIcon::Trigger)
{
// Click on system tray icon triggers show/hide of the main window
toggleHideAction->trigger();
}
}
#endif
void FacoinGUI::optionsClicked()
{
if(!clientModel || !clientModel->getOptionsModel())
return;
OptionsDialog dlg;
dlg.setModel(clientModel->getOptionsModel());
dlg.exec();
}
void FacoinGUI::aboutClicked()
{
AboutDialog dlg;
dlg.setModel(clientModel);
dlg.exec();
}
void FacoinGUI::setNumConnections(int count)
{
QString icon;
switch(count)
{
case 0: icon = ":/icons/connect_0"; break;
case 1: case 2: case 3: icon = ":/icons/connect_1"; break;
case 4: case 5: case 6: icon = ":/icons/connect_2"; break;
case 7: case 8: case 9: icon = ":/icons/connect_3"; break;
default: icon = ":/icons/connect_4"; break;
}
labelConnectionsIcon->setPixmap(QIcon(icon).pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
labelConnectionsIcon->setToolTip(tr("%n active connection(s) to FACOIN network", "", count));
}
void FacoinGUI::setNumBlocks(int count, int nTotalBlocks)
{
// don't show / hide progress bar and its label if we have no connection to the network
if (!clientModel || clientModel->getNumConnections() == 0)
{
progressBarLabel->setVisible(false);
progressBar->setVisible(false);
return;
}
QString strStatusBarWarnings = clientModel->getStatusBarWarnings();
QString tooltip;
if(count < nTotalBlocks)
{
int nRemainingBlocks = nTotalBlocks - count;
float nPercentageDone = count / (nTotalBlocks * 0.01f);
if (strStatusBarWarnings.isEmpty())
{
progressBarLabel->setText(tr("Synchronizing with network..."));
progressBarLabel->setVisible(true);
progressBar->setFormat(tr("~%n block(s) remaining", "", nRemainingBlocks));
progressBar->setMaximum(nTotalBlocks);
progressBar->setValue(count);
progressBar->setVisible(true);
}
tooltip = tr("Downloaded %1 of %2 blocks of transaction history (%3% done).").arg(count).arg(nTotalBlocks).arg(nPercentageDone, 0, 'f', 2);
}
else
{
if (strStatusBarWarnings.isEmpty())
progressBarLabel->setVisible(false);
progressBar->setVisible(false);
tooltip = tr("Downloaded %1 blocks of transaction history.").arg(count);
}
// Override progressBarLabel text and hide progress bar, when we have warnings to display
if (!strStatusBarWarnings.isEmpty())
{
progressBarLabel->setText(strStatusBarWarnings);
progressBarLabel->setVisible(true);
progressBar->setVisible(false);
}
QDateTime lastBlockDate = clientModel->getLastBlockDate();
int secs = lastBlockDate.secsTo(QDateTime::currentDateTime());
QString text;
// Represent time from last generated block in human readable text
if(secs <= 0)
{
// Fully up to date. Leave text empty.
}
else if(secs < 60)
{
text = tr("%n second(s) ago","",secs);
}
else if(secs < 60*60)
{
text = tr("%n minute(s) ago","",secs/60);
}
else if(secs < 24*60*60)
{
text = tr("%n hour(s) ago","",secs/(60*60));
}
else
{
text = tr("%n day(s) ago","",secs/(60*60*24));
}
// Set icon state: spinning if catching up, tick otherwise
if(secs < 90*60 && count >= nTotalBlocks)
{
tooltip = tr("Up to date") + QString(".<br>") + tooltip;
labelBlocksIcon->setPixmap(QIcon(":/icons/synced").pixmap(STATUSBAR_ICONSIZE, STATUSBAR_ICONSIZE));
overviewPage->showOutOfSyncWarning(false);
}
else
{
tooltip = tr("Catching up...") + QString("<br>") + tooltip;
labelBlocksIcon->setMovie(syncIconMovie);
syncIconMovie->start();
overviewPage->showOutOfSyncWarning(true);
}
if(!text.isEmpty())
{
tooltip += QString("<br>");
tooltip += tr("Last received block was generated %1.").arg(text);
}
// Don't word-wrap this (fixed-width) tooltip
tooltip = QString("<nobr>") + tooltip + QString("</nobr>");
labelBlocksIcon->setToolTip(tooltip);
progressBarLabel->setToolTip(tooltip);
progressBar->setToolTip(tooltip);
}
void FacoinGUI::error(const QString &title, const QString &message, bool modal)
{
// Report errors from network/worker thread
if(modal)
{
QMessageBox::critical(this, title, message, QMessageBox::Ok, QMessageBox::Ok);
} else {
notificator->notify(Notificator::Critical, title, message);
}
}
void FacoinGUI::changeEvent(QEvent *e)
{
QMainWindow::changeEvent(e);
#ifndef Q_OS_MAC // Ignored on Mac
if(e->type() == QEvent::WindowStateChange)
{
if(clientModel && clientModel->getOptionsModel()->getMinimizeToTray())
{
QWindowStateChangeEvent *wsevt = static_cast<QWindowStateChangeEvent*>(e);
if(!(wsevt->oldState() & Qt::WindowMinimized) && isMinimized())
{
QTimer::singleShot(0, this, SLOT(hide()));
e->ignore();
}
}
}
#endif
}
void FacoinGUI::closeEvent(QCloseEvent *event)
{
if(clientModel)
{
#ifndef Q_OS_MAC // Ignored on Mac
if(!clientModel->getOptionsModel()->getMinimizeToTray() &&
!clientModel->getOptionsModel()->getMinimizeOnClose())
{
qApp->quit();
}
#endif
}
QMainWindow::closeEvent(event);
}
void FacoinGUI::askFee(qint64 nFeeRequired, bool *payFee)
{
QString strMessage =
tr("This transaction is over the size limit. You can still send it for a fee of %1, "
"which goes to the nodes that process your transaction and helps to support the network. "
"Do you want to pay the fee?").arg(
FacoinUnits::formatWithUnit(FacoinUnits::FAC, nFeeRequired));
QMessageBox::StandardButton retval = QMessageBox::question(
this, tr("Confirm transaction fee"), strMessage,
QMessageBox::Yes|QMessageBox::Cancel, QMessageBox::Yes);
*payFee = (retval == QMessageBox::Yes);
}
void FacoinGUI::incomingTransaction(const QModelIndex & parent, int start, int end)
{
if(!walletModel || !clientModel)
return;
TransactionTableModel *ttm = walletModel->getTransactionTableModel();
qint64 amount = ttm->index(start, TransactionTableModel::Amount, parent)
.data(Qt::EditRole).toULongLong();
if(!clientModel->inInitialBlockDownload())
{
// On new transaction, make an info balloon
// Unless the initial block download is in progress, to prevent balloon-spam
QString date = ttm->index(start, TransactionTableModel::Date, parent)
.data().toString();
QString type = ttm->index(start, TransactionTableModel::Type, parent)
.data().toString();
QString address = ttm->index(start, TransactionTableModel::ToAddress, parent)
.data().toString();
QIcon icon = qvariant_cast<QIcon>(ttm->index(start,
TransactionTableModel::ToAddress, parent)
.data(Qt::DecorationRole));
notificator->notify(Notificator::Information,
(amount)<0 ? tr("Sent transaction") :
tr("Incoming transaction"),
tr("Date: %1\n"
"Amount: %2\n"
"Type: %3\n"
"Address: %4\n")
.arg(date)
.arg(FacoinUnits::formatWithUnit(walletModel->getOptionsModel()->getDisplayUnit(), amount, true))
.arg(type)
.arg(address), icon);
}
}
void FacoinGUI::gotoOverviewPage()
{
overviewAction->setChecked(true);
centralWidget->setCurrentWidget(overviewPage);
exportAction->setEnabled(false);
disconnect(exportAction, SIGNAL(triggered()), 0, 0);
}
void FacoinGUI::gotoHistoryPage()
{
historyAction->setChecked(true);
centralWidget->setCurrentWidget(transactionsPage);
exportAction->setEnabled(true);
disconnect(exportAction, SIGNAL(triggered()), 0, 0);
connect(exportAction, SIGNAL(triggered()), transactionView, SLOT(exportClicked()));
}
void FacoinGUI::gotoAddressBookPage()
{
addressBookAction->setChecked(true);
centralWidget->setCurrentWidget(addressBookPage);
exportAction->setEnabled(true);
disconnect(exportAction, SIGNAL(triggered()), 0, 0);
connect(exportAction, SIGNAL(triggered()), addressBookPage, SLOT(exportClicked()));
}
void FacoinGUI::gotoReceiveCoinsPage()
{
receiveCoinsAction->setChecked(true);
centralWidget->setCurrentWidget(receiveCoinsPage);
exportAction->setEnabled(true);
disconnect(exportAction, SIGNAL(triggered()), 0, 0);
connect(exportAction, SIGNAL(triggered()), receiveCoinsPage, SLOT(exportClicked()));
}
void FacoinGUI::gotoSendCoinsPage()
{
sendCoinsAction->setChecked(true);
centralWidget->setCurrentWidget(sendCoinsPage);
exportAction->setEnabled(false);
disconnect(exportAction, SIGNAL(triggered()), 0, 0);
}
void FacoinGUI::gotoSignMessageTab(QString addr)
{
// call show() in showTab_SM()
signVerifyMessageDialog->showTab_SM(true);
if(!addr.isEmpty())
signVerifyMessageDialog->setAddress_SM(addr);
}
void FacoinGUI::gotoVerifyMessageTab(QString addr)
{
// call show() in showTab_VM()
signVerifyMessageDialog->showTab_VM(true);
if(!addr.isEmpty())
signVerifyMessageDialog->setAddress_VM(addr);
}
void FacoinGUI::dragEnterEvent(QDragEnterEvent *event)
{
// Accept only URIs
if(event->mimeData()->hasUrls())
event->acceptProposedAction();
}
void FacoinGUI::dropEvent(QDropEvent *event)
{
if(event->mimeData()->hasUrls())
{
int nValidUrisFound = 0;
QList<QUrl> uris = event->mimeData()->urls();
foreach(const QUrl &uri, uris)
{
if (sendCoinsPage->handleURI(uri.toString()))
nValidUrisFound++;
}
// if valid URIs were found
if (nValidUrisFound)
gotoSendCoinsPage();
else
notificator->notify(Notificator::Warning, tr("URI handling"), tr("URI can not be parsed! This can be caused by an invalid FACOIN address or malformed URI parameters."));
}
event->acceptProposedAction();
}
void FacoinGUI::handleURI(QString strURI)
{
// URI has to be valid
if (sendCoinsPage->handleURI(strURI))
{
showNormalIfMinimized();
gotoSendCoinsPage();
}
else
notificator->notify(Notificator::Warning, tr("URI handling"), tr("URI can not be parsed! This can be caused by an invalid FACOIN address or malformed URI parameters."));
}
void FacoinGUI::setEncryptionStatus(int status)
{
switch(status)
{
case WalletModel::Unencrypted:
labelEncryptionIcon->hide();
encryptWalletAction->setChecked(false);
changePassphraseAction->setEnabled(false);
unlockWalletAction->setVisible(false);
lockWalletAction->setVisible(false);
encryptWalletAction->setEnabled(true);
break;
case WalletModel::Unlocked:
labelEncryptionIcon->show();
labelEncryptionIcon->setPixmap(QIcon(":/icons/lock_open").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
labelEncryptionIcon->setToolTip(tr("Wallet is <b>encrypted</b> and currently <b>unlocked</b>"));
encryptWalletAction->setChecked(true);
changePassphraseAction->setEnabled(true);
unlockWalletAction->setVisible(false);
lockWalletAction->setVisible(true);
encryptWalletAction->setEnabled(false); // TODO: decrypt currently not supported
break;
case WalletModel::Locked:
labelEncryptionIcon->show();
labelEncryptionIcon->setPixmap(QIcon(":/icons/lock_closed").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
labelEncryptionIcon->setToolTip(tr("Wallet is <b>encrypted</b> and currently <b>locked</b>"));
encryptWalletAction->setChecked(true);
changePassphraseAction->setEnabled(true);
unlockWalletAction->setVisible(true);
lockWalletAction->setVisible(false);
encryptWalletAction->setEnabled(false); // TODO: decrypt currently not supported
break;
}
}
void FacoinGUI::encryptWallet(bool status)
{
if(!walletModel)
return;
AskPassphraseDialog dlg(status ? AskPassphraseDialog::Encrypt:
AskPassphraseDialog::Decrypt, this);
dlg.setModel(walletModel);
dlg.exec();
setEncryptionStatus(walletModel->getEncryptionStatus());
}
void FacoinGUI::backupWallet()
{
QString saveDir = QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation);
QString filename = QFileDialog::getSaveFileName(this, tr("Backup Wallet"), saveDir, tr("Wallet Data (*.dat)"));
if(!filename.isEmpty()) {
if(!walletModel->backupWallet(filename)) {
QMessageBox::warning(this, tr("Backup Failed"), tr("There was an error trying to save the wallet data to the new location."));
}
}
}
void FacoinGUI::changePassphrase()
{
AskPassphraseDialog dlg(AskPassphraseDialog::ChangePass, this);
dlg.setModel(walletModel);
dlg.exec();
}
void FacoinGUI::unlockWallet()
{
if(!walletModel)
return;
// Unlock wallet when requested by wallet model
if(walletModel->getEncryptionStatus() == WalletModel::Locked)
{
AskPassphraseDialog::Mode mode = sender() == unlockWalletAction ?
AskPassphraseDialog::UnlockStaking : AskPassphraseDialog::Unlock;
AskPassphraseDialog dlg(mode, this);
dlg.setModel(walletModel);
dlg.exec();
}
}
void FacoinGUI::lockWallet()
{
if(!walletModel)
return;
walletModel->setWalletLocked(true);
}
void FacoinGUI::showNormalIfMinimized(bool fToggleHidden)
{
// activateWindow() (sometimes) helps with keyboard focus on Windows
if (isHidden())
{
show();
activateWindow();
}
else if (isMinimized())
{
showNormal();
activateWindow();
}
else if (GUIUtil::isObscured(this))
{
raise();
activateWindow();
}
else if(fToggleHidden)
hide();
}
void FacoinGUI::toggleHidden()
{
showNormalIfMinimized(true);
}
void FacoinGUI::updateWeight()
{
if (!pwalletMain)
return;
TRY_LOCK(cs_main, lockMain);
if (!lockMain)
return;
TRY_LOCK(pwalletMain->cs_wallet, lockWallet);
if (!lockWallet)
return;
uint64_t nMinWeight = 0, nMaxWeight = 0;
pwalletMain->GetStakeWeight(*pwalletMain, nMinWeight, nMaxWeight, nWeight);
}
void FacoinGUI::updateStakingIcon()
{
updateWeight();
if (nLastCoinStakeSearchInterval && nWeight)
{
uint64_t nNetworkWeight = GetPoSKernelPS();
unsigned nEstimateTime = nTargetSpacing * nNetworkWeight / nWeight;
QString text;
if (nEstimateTime < 60)
{
text = tr("%n second(s)", "", nEstimateTime);
}
else if (nEstimateTime < 60*60)
{
text = tr("%n minute(s)", "", nEstimateTime/60);
}
else if (nEstimateTime < 24*60*60)
{
text = tr("%n hour(s)", "", nEstimateTime/(60*60));
}
else
{
text = tr("%n day(s)", "", nEstimateTime/(60*60*24));
}
labelStakingIcon->setPixmap(QIcon(":/icons/staking_on").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
labelStakingIcon->setToolTip(tr("Staking.<br>Your weight is %1<br>Network weight is %2<br>Expected time to earn reward is %3").arg(nWeight).arg(nNetworkWeight).arg(text));
}
else
{
labelStakingIcon->setPixmap(QIcon(":/icons/staking_off").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));
if (pwalletMain && pwalletMain->IsLocked())
labelStakingIcon->setToolTip(tr("Not staking because wallet is locked"));
else if (vNodes.empty())
labelStakingIcon->setToolTip(tr("Not staking because wallet is offline"));
else if (IsInitialBlockDownload())
labelStakingIcon->setToolTip(tr("Not staking because wallet is syncing"));
else if (!nWeight)
labelStakingIcon->setToolTip(tr("Not staking because you don't have mature coins"));
else
labelStakingIcon->setToolTip(tr("Not staking"));
}
}
|
class MoviesController < ApplicationController
def index
@movies = Movie.all.sort { |a,b| a.title <=> b.title }
end
def show
@movie = Movie.find(params[:id])
@roles = @movie.roles.sort { |a,b| a.actor.name <=> b.actor.name }
@suckr = ImageSuckr::GoogleSuckr.new
end
def new
@movie = Movie.new
end
def create
@movie = Movie.create(movie_params)
redirect_to movie_path(@movie.id)
end
private
def movie_params
params.require(:movie).permit(:title, :year)
end
end
|
package edu.psu.compbio.seqcode.gse.ewok.nouns;
import java.util.Vector;
import edu.psu.compbio.seqcode.gse.datasets.species.Gene;
public class GeneDomainTimeSeries {
public static final int window = 30000;
private Gene gene;
private Vector<GeneDomainData> data;
public GeneDomainTimeSeries(Gene g, int tps) {
gene = g;
data = new Vector<GeneDomainData>();
for(int i = 0; i < tps; i++) {
data.add(new GeneDomainData(gene, window));
}
}
public void addDomain(SimpleDomain sd, int tp) {
data.get(tp).addDomain(sd);
}
public boolean isCovered(int tp) {
return data.get(tp).isTSSCovered();
}
public String getBitString() {
String str = "";
for(int i = 0; i < data.size(); i++) {
str += isCovered(i) ? "1" : "0";
}
return str;
}
public String toString() { return gene.getID() + " " + getBitString(); }
}
|
import React from 'react'
export default class NoteItem extends React.Component {
render () {
return (
<div>
<p>Category = {this.props.note.category}</p>
<p>The Note = {this.props.note.noteText}</p>
<hr />
</div>
)
}
} |
---
published: true
title: Plaza Garibaldi
layout: post
---
Para informações gerais e história consulte o [Site Oficial](http://www.plazagaribaldi.com.mx)
# Onde fica?
A Praça Garibaldi fica a cerca de 1.5km do Zócalo (Praça principal do centro histórico).
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3762.3457390439908!2d-99.14110084971966!3d19.440654845396715!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x85d1f92ec7757c1f%3A0xe4295c2ada8f4af7!2sPlaza+Garibaldi!5e0!3m2!1spt-BR!2sbr!4v1455835451018" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>
# Como chegar?
A melhor forma é de [Metrô](/2016/02/18/transporte.html#metr).
Dependendo da linha é possível descer direto na estação Garibaldi e caminhar menos de 1 minuto até a praça.
Outra opção é caminhar 15min a partir do Zócalo.
# O que fazer?
Na praça está localizado o [Museu da Tequila e Mezcal](http://www.mutemgaribaldi.mx/museo.html) onde é contada a história e o processo de produção destas bebidas, são expostas centenas de rótulos das mais diversas variedades e incluso no valor da entrada está uma degustação de tequila ou mezcal.

O Museu ainda tem uma breve história dos Mariachis, símbolos da cultura Mexicana e presentes em toda parte.

O Museu abre todos os dias, e de quinta a domingo fica até as 02:30! Uma boa opção pra fazer um esquenta hahaha.
Na praça também está localizada a [Escola de Mariachis](http://www.cultura.df.gob.mx/index.php/de-mariachi-ollin-yoliztli-garibaldi), e todas as noites dezenas de grupos se apresentam por lá. Normalmente eles oferecem "serenatas" para as pessoas e cobram por música!

<iframe width="420" height="315" src="https://www.youtube.com/embed/VCb9_0U1U1Y" frameborder="0" allowfullscreen></iframe>
Além disso, ao redor da praça existem diversos bares e restaurantes competindo por público. Todos eles tem pessoas na frente convidando (as vezes insistentemente) para entrar.
Nós fomos apenas a um desses restaurantes, o [Salón Tenampa](http://www.salontenampa.com). Um lugar bem agradável com comida muito boa e um preço justo.

|
<html><body>
<h4>Windows 10 x64 (19041.264)</h4><br>
<h2>_GENERAL_LOOKASIDE_POOL</h2>
<font face="arial"> +0x000 ListHead : <a href="./_SLIST_HEADER.html">_SLIST_HEADER</a><br>
+0x000 SingleListHead : <a href="./_SINGLE_LIST_ENTRY.html">_SINGLE_LIST_ENTRY</a><br>
+0x010 Depth : Uint2B<br>
+0x012 MaximumDepth : Uint2B<br>
+0x014 TotalAllocates : Uint4B<br>
+0x018 AllocateMisses : Uint4B<br>
+0x018 AllocateHits : Uint4B<br>
+0x01c TotalFrees : Uint4B<br>
+0x020 FreeMisses : Uint4B<br>
+0x020 FreeHits : Uint4B<br>
+0x024 Type : <a href="./_POOL_TYPE.html">_POOL_TYPE</a><br>
+0x028 Tag : Uint4B<br>
+0x02c Size : Uint4B<br>
+0x030 AllocateEx : Ptr64 void* <br>
+0x030 Allocate : Ptr64 void* <br>
+0x038 FreeEx : Ptr64 void <br>
+0x038 Free : Ptr64 void <br>
+0x040 ListEntry : <a href="./_LIST_ENTRY.html">_LIST_ENTRY</a><br>
+0x050 LastTotalAllocates : Uint4B<br>
+0x054 LastAllocateMisses : Uint4B<br>
+0x054 LastAllocateHits : Uint4B<br>
+0x058 Future : [2] Uint4B<br>
</font></body></html> |
<html><body>
<h4>Windows 10 x64 (19041.388)</h4><br>
<h2>RTLP_CSPARSE_BITMAP_STATE</h2>
<font face="arial"> CommitBitmapInvalid = 0n0<br>
UserBitmapInvalid = 0n1<br>
UserBitmapValid = 0n2<br>
</font></body></html> |
<?php
/*
* This file is part of ImgCache.
*
* (c) Igor Lazarev <strider2038@rambler.ru>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Strider2038\ImgCache\Enum;
use MyCLabs\Enum\Enum;
/**
* @author Igor Lazarev <strider2038@rambler.ru>
*/
class HttpProtocolVersionEnum extends Enum
{
public const V1_0 = '1.0';
public const V1_1 = '1.1';
}
|
<!doctype html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>总线设备驱动模型 – Yixin-Hong</title>
<meta name="description" content="该博文主要描述linux 驱动总线设备驱动模型">
<meta name="keywords" content="Linux驱动">
<!-- Twitter Cards -->
<meta name="twitter:title" content="总线设备驱动模型 ">
<meta name="twitter:description" content="该博文主要描述linux 驱动总线设备驱动模型">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://hntea.github.io/images/site-logo.png">
<!-- Open Graph -->
<meta property="og:locale" content="China">
<meta property="og:type" content="article">
<meta property="og:title" content="总线设备驱动模型 ">
<meta property="og:description" content="该博文主要描述linux 驱动总线设备驱动模型">
<meta property="og:url" content="https://hntea.github.io/%E9%A9%B1%E5%8A%A8%E5%BC%80%E5%8F%91/%E6%80%BB%E7%BA%BF%E8%AE%BE%E5%A4%87%E9%A9%B1%E5%8A%A8%E6%A8%A1%E5%9E%8B/">
<meta property="og:site_name" content="Yixin-Hong">
<link rel="canonical" href="https://hntea.github.io/%E9%A9%B1%E5%8A%A8%E5%BC%80%E5%8F%91/%E6%80%BB%E7%BA%BF%E8%AE%BE%E5%A4%87%E9%A9%B1%E5%8A%A8%E6%A8%A1%E5%9E%8B/">
<link href="https://hntea.github.io/feed.xml" type="application/atom+xml" rel="alternate" title="Yixin-Hong Feed">
<!-- https://t.co/dKP3o1e -->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- For all browsers -->
<link rel="stylesheet" href="https://hntea.github.io/assets/css/main.css">
<!-- Webfonts -->
<script src="https://use.edgefonts.net/source-sans-pro:n2,i2,n3,i3,n4,i4,n6,i6,n7,i7,n9,i9;source-code-pro:n4,n7;volkhov.js"></script>
<meta http-equiv="cleartype" content="on">
<!-- HTML5 Shiv and Media Query Support -->
<!--[if lt IE 9]>
<script src="https://hntea.github.io/assets/js/vendor/html5shiv.min.js"></script>
<script src="https://hntea.github.io/assets/js/vendor/respond.min.js"></script>
<![endif]-->
<!-- Modernizr -->
<script src="https://hntea.github.io/assets/js/vendor/modernizr-2.7.1.custom.min.js"></script>
<!-- MathJax -->
<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<!-- Icons -->
<!-- 16x16 -->
<link rel="shortcut icon" href="https://hntea.github.io/favicon.ico">
<!-- 32x32 -->
<link rel="shortcut icon" href="https://hntea.github.io/favicon.png">
<!-- 57x57 (precomposed) for iPhone 3GS, pre-2011 iPod Touch and older Android devices -->
<link rel="apple-touch-icon-precomposed" href="https://hntea.github.io/images/apple-touch-icon-precomposed.png">
<!-- 72x72 (precomposed) for 1st generation iPad, iPad 2 and iPad mini -->
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="https://hntea.github.io/images/apple-touch-icon-72x72-precomposed.png">
<!-- 114x114 (precomposed) for iPhone 4, 4S, 5 and post-2011 iPod Touch -->
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="https://hntea.github.io/images/apple-touch-icon-114x114-precomposed.png">
<!-- 144x144 (precomposed) for iPad 3rd and 4th generation -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="https://hntea.github.io/images/apple-touch-icon-144x144-precomposed.png">
</head>
<body id="post">
<!-- Add by hntea start-->
<span id="http://www.cloudchou.com" class="leancloud_visitors meta_data_item" data-flag-title="">
<span class="post-meta-item-icon">
<span class="octicon octicon-eye"></span>
</span>
<span class="old-visitors-count" style="display: none;"></span>
<span class="leancloud-visitors-count"></span>
<span class="post-meta-item-text">次浏览</span>
</span>
<!--
<body style="background-color:hsl(0,5%,65%);"/>
-->
<!--
<div class="cinc-postPanel"
user-id="https://hntea.github.io/"
data-key="/%E9%A9%B1%E5%8A%A8%E5%BC%80%E5%8F%91/总线设备驱动模型"
data-title="总线设备驱动模型 "
data-url="https://hntea.github.io//%E9%A9%B1%E5%8A%A8%E5%BC%80%E5%8F%91/%E6%80%BB%E7%BA%BF%E8%AE%BE%E5%A4%87%E9%A9%B1%E5%8A%A8%E6%A8%A1%E5%9E%8B/"
isReadOnly=true>
</div>
<script type="text/javascript" async=""
src="http://kelresource.oss-cn-shenzhen.aliyuncs.com/postPanel.min.js"
charset="UTF-8"></script>
-->
<!-- Add by hntea end-->
<div class="navigation-wrapper">
<nav role="navigation" id="site-nav" class="animated drop">
<ul>
<li><a href="https://hntea.github.io/about" >Author</a></li>
<li><a href="https://hntea.github.io/category/" >Category</a></li>
<li><a href="https://hntea.github.io/blog/" >Blog</a></li>
<li><a href="https://github.com/hntea" target="_blank">GitHub</a></li>
<li><a href="https://hntea.github.io/search/" >search</a></li>
</ul>
</nav>
</div><!-- /.navigation-wrapper -->
<!--[if lt IE 9]><div class="upgrade"><strong><a href="http://whatbrowser.org/">Your browser is quite old!</strong> Why not upgrade to a different browser to better enjoy this site?</a></div><![endif]-->
<header class="masthead">
<div class="wrap">
<a href="https://hntea.github.io/" class="site-logo" rel="home" title="Yixin-Hong"><img src="https://hntea.github.io/images/site-logo.png" width="200" height="200" alt="Yixin-Hong logo" class="animated fadeInDown"></a>
<h1 class="site-title animated fadeIn"><a href="https://hntea.github.io/">Yixin-Hong</a></h1>
<h2 class="site-description animated fadeIn" itemprop="description">To Be Better</h2>
</div>
</header><!-- /.masthead -->
<div class="js-menu-screen menu-screen"></div>
<div id="main" role="main">
<article class="hentry">
<div class="entry-wrapper">
<header class="entry-header">
<ul class="entry-tags">
<li><a href="https://hntea.github.io/tags/#Linux驱动" title="Pages tagged Linux驱动">Linux驱动</a></li>
</ul>
<h1 class="entry-title">总线设备驱动模型 </h1>
</header>
<footer class="entry-meta">
<img src="https://hntea.github.io/images/Hntea-Hong.jpg" class="bio-photo" alt="Hntea bio photo"></a>
<span class="author vcard">By <span class="fn">Hntea</span></span>
<span class="entry-date date published"><time datetime="2016-03-15T03:39:55+08:00"><i class="fa fa-calendar-o"></i> March 14, 2016</time></span>
</footer>
<div class="entry-content">
<h2 id="section">概念</h2>
<p>将属于同一种接口(如USB,I2C等)的不同设备挂载在总线上,设备可以通过总线匹配到相应的驱动程序。</p>
<h2 id="section-1">优点:</h2>
<p>a) 支持热插拔</p>
<p>b) 驱动程序可移植性提高</p>
<h2 id="section-2">关系图解</h2>
<h3 id="includelinuxxdeviceh">头文件#include<linuxx/device.h></h3>
<p><img src="http://img.blog.csdn.net/20160404154130906?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="总线原理图" /></p>
<h3 id="section-3">图解说明</h3>
<p>a) 总线设备包含三个结构既:</p>
<ul>
<li>设备</li>
<li>设备的驱动</li>
<li>总线</li>
</ul>
<p>b) 设备和其驱动通过struct bus_type 结构体实现挂载在同一条总线上</p>
<p>c) 总线结构体中的match匹配函数将通过设备和设备驱动结构体中的name成员来匹配,如果名字相同,则匹配上,返回0。然后调用设备驱动中的probe 函数来驱动设备;其实这里的匹配函数是搜索挂载在总线上的所有设备和驱动,然后逐个匹配</p>
<h2 id="section-4">总线描述结构及函数</h2>
<div class="language-c highlighter-rouge"><pre class="highlight"><code><span class="k">struct</span> <span class="n">bus_type</span> <span class="p">{</span>
<span class="k">const</span> <span class="kt">char</span><span class="o">*</span><span class="n">name</span><span class="p">;</span><span class="cm">/*总线名,在/sys/bus目录下注册的名*/</span>
<span class="p">...</span>
<span class="kt">int</span> <span class="p">(</span><span class="o">*</span><span class="n">match</span><span class="p">)(</span><span class="k">struct</span> <span class="n">device</span> <span class="o">*</span><span class="n">dev</span><span class="p">,</span> <span class="k">struct</span> <span class="n">device_driver</span> <span class="o">*</span><span class="n">drv</span><span class="p">);</span><span class="cm">/*匹配函数*/</span>
<span class="kt">int</span> <span class="p">(</span><span class="o">*</span><span class="n">uevent</span><span class="p">)(</span><span class="k">struct</span> <span class="n">device</span> <span class="o">*</span><span class="n">dev</span><span class="p">,</span> <span class="k">struct</span> <span class="n">kobj_uevent_env</span> <span class="o">*</span><span class="n">env</span><span class="p">);</span>
<span class="kt">int</span> <span class="p">(</span><span class="o">*</span><span class="n">probe</span><span class="p">)(</span><span class="k">struct</span> <span class="n">device</span> <span class="o">*</span><span class="n">dev</span><span class="p">);</span><span class="cm">/*设备捕获*/</span>
<span class="kt">int</span> <span class="p">(</span><span class="o">*</span><span class="n">remove</span><span class="p">)(</span><span class="k">struct</span> <span class="n">device</span> <span class="o">*</span><span class="n">dev</span><span class="p">);</span> <span class="cm">/*设备移除*/</span>
<span class="kt">void</span> <span class="p">(</span><span class="o">*</span><span class="n">shutdown</span><span class="p">)(</span><span class="k">struct</span> <span class="n">device</span> <span class="o">*</span><span class="n">dev</span><span class="p">);</span>
<span class="kt">int</span> <span class="p">(</span><span class="o">*</span><span class="n">suspend</span><span class="p">)(</span><span class="k">struct</span> <span class="n">device</span> <span class="o">*</span><span class="n">dev</span><span class="p">,</span> <span class="n">pm_message_t</span> <span class="n">state</span><span class="p">);</span>
<span class="kt">int</span> <span class="p">(</span><span class="o">*</span><span class="n">resume</span><span class="p">)(</span><span class="k">struct</span> <span class="n">device</span> <span class="o">*</span><span class="n">dev</span><span class="p">);</span>
<span class="k">const</span> <span class="k">struct</span> <span class="n">dev_pm_ops</span> <span class="o">*</span><span class="n">pm</span><span class="p">;</span>
<span class="k">struct</span> <span class="n">subsys_private</span> <span class="o">*</span><span class="n">p</span><span class="p">;</span>
<span class="p">};</span>
</code></pre>
</div>
<ul>
<li>注册
<div class="language-c highlighter-rouge"><pre class="highlight"><code><span class="kt">int</span> <span class="n">bus_register</span><span class="p">(</span><span class="k">struct</span> <span class="n">bus_type</span> <span class="o">*</span><span class="n">bus</span><span class="p">);</span> <span class="c1">//注册成功将在/sys/bus下生成目录文件
</span></code></pre>
</div>
</li>
<li>注销
<div class="language-c highlighter-rouge"><pre class="highlight"><code><span class="kt">void</span> <span class="n">bus_unregister</span><span class="p">(</span><span class="k">struct</span> <span class="n">bus_type</span> <span class="o">*</span><span class="n">bus</span><span class="p">);</span>
</code></pre>
</div>
</li>
</ul>
<h2 id="section-5">设备驱动结构描述及函数</h2>
<div class="language-c highlighter-rouge"><pre class="highlight"><code><span class="k">struct</span> <span class="n">device_driver</span> <span class="p">{</span>
<span class="k">const</span> <span class="kt">char</span><span class="o">*</span><span class="n">name</span><span class="p">;</span><span class="cm">/*必须和设备结构体中的name名相同*/</span>
<span class="k">struct</span> <span class="n">bus_type</span><span class="o">*</span><span class="n">bus</span><span class="p">;</span>
<span class="p">....</span>
<span class="kt">int</span> <span class="p">(</span><span class="o">*</span><span class="n">probe</span><span class="p">)</span> <span class="p">(</span><span class="k">struct</span> <span class="n">device</span> <span class="o">*</span><span class="n">dev</span><span class="p">);</span><span class="cm">/*总线驱动匹配成功将调用该函数*/</span>
<span class="kt">int</span> <span class="p">(</span><span class="o">*</span><span class="n">remove</span><span class="p">)</span> <span class="p">(</span><span class="k">struct</span> <span class="n">device</span> <span class="o">*</span><span class="n">dev</span><span class="p">);</span>
<span class="kt">void</span> <span class="p">(</span><span class="o">*</span><span class="n">shutdown</span><span class="p">)</span> <span class="p">(</span><span class="k">struct</span> <span class="n">device</span> <span class="o">*</span><span class="n">dev</span><span class="p">);</span>
<span class="kt">int</span> <span class="p">(</span><span class="o">*</span><span class="n">suspend</span><span class="p">)</span> <span class="p">(</span><span class="k">struct</span> <span class="n">device</span> <span class="o">*</span><span class="n">dev</span><span class="p">,</span> <span class="n">pm_message_t</span> <span class="n">state</span><span class="p">);</span>
<span class="kt">int</span> <span class="p">(</span><span class="o">*</span><span class="n">resume</span><span class="p">)</span> <span class="p">(</span><span class="k">struct</span> <span class="n">device</span> <span class="o">*</span><span class="n">dev</span><span class="p">);</span>
<span class="p">...</span>
<span class="p">};</span>
</code></pre>
</div>
<ul>
<li>注册
<div class="language-c highlighter-rouge"><pre class="highlight"><code><span class="kt">int</span> <span class="n">driver_register</span><span class="p">(</span><span class="k">struct</span> <span class="n">device_driver</span> <span class="o">*</span><span class="n">drv</span><span class="p">);</span>
</code></pre>
</div>
</li>
<li>注销
<div class="language-c highlighter-rouge"><pre class="highlight"><code><span class="kt">void</span> <span class="n">driver_unregister</span><span class="p">(</span><span class="k">struct</span> <span class="n">device_driver</span> <span class="o">*</span><span class="n">drv</span><span class="p">);</span>
</code></pre>
</div>
</li>
</ul>
<h2 id="section-6">设备描述结构及函数</h2>
<div class="language-c highlighter-rouge"><pre class="highlight"><code><span class="k">struct</span> <span class="n">device</span> <span class="p">{</span>
<span class="p">....</span>
<span class="k">struct</span> <span class="n">kobject</span> <span class="n">kobj</span><span class="p">;</span> <span class="cm">/*设备初始化名字之后存放到该结构体中*/</span>
<span class="k">const</span> <span class="kt">char</span> <span class="o">*</span><span class="n">init_name</span><span class="p">;</span> <span class="cm">/* initial name of the device */</span>
<span class="p">...</span>
<span class="k">struct</span> <span class="n">bus_type</span> <span class="o">*</span><span class="n">bus</span><span class="p">;</span> <span class="cm">/* type of bus device is on */</span>
<span class="k">struct</span> <span class="n">device_driver</span> <span class="o">*</span><span class="n">driver</span><span class="p">;</span> <span class="cm">/* which driver has allocated this device */</span>
<span class="p">...</span>
<span class="p">}</span>
</code></pre>
</div>
<ul>
<li>注册函数
<div class="language-c highlighter-rouge"><pre class="highlight"><code><span class="kt">int</span> <span class="n">__must_check</span> <span class="n">device_register</span><span class="p">(</span><span class="k">struct</span> <span class="n">device</span> <span class="o">*</span><span class="n">dev</span><span class="p">);</span>
</code></pre>
</div>
</li>
<li>注销函数
<div class="language-c highlighter-rouge"><pre class="highlight"><code><span class="kt">void</span> <span class="n">device_unregister</span><span class="p">(</span><span class="k">struct</span> <span class="n">device</span> <span class="o">*</span><span class="n">dev</span><span class="p">);</span>
</code></pre>
</div>
</li>
</ul>
<hr />
<h1 id="section-7">程序设计</h1>
<p>a) 初始化</p>
<p>b) 注册</p>
<p>c) 注销</p>
<p>d) 总结:Linux 每一种设备都是这种套路,彼此之间相对独立,只有在某一方面通过某个结构体联系在一起</p>
<h2 id="section-8">驱动程序设计</h2>
<h3 id="section-9">总线创建</h3>
<div class="language-c highlighter-rouge"><pre class="highlight"><code><span class="cm">/************************************
作者:hntea
时间:2016/3/16
函数功能:总线测试
查看/sys/bus 目录下生成目录
************************************/</span>
<span class="cp">#include<linux/init.h>
</span>
<span class="cp">#include<linux/module.h>
</span>
<span class="cp">#include<linux/device.h>
</span>
<span class="cm">/*初始化新总线*/</span>
<span class="k">static</span> <span class="kt">int</span> <span class="nf">newmatch</span><span class="p">(</span><span class="k">struct</span> <span class="n">device</span> <span class="o">*</span><span class="n">dev</span><span class="p">,</span> <span class="k">struct</span> <span class="n">device_driver</span> <span class="o">*</span><span class="n">drv</span><span class="p">)</span>
<span class="p">{</span>
<span class="cm">/*总线驱动会自动去寻找匹配,这里这么写就够了*/</span>
<span class="k">return</span> <span class="o">!</span><span class="n">strncmp</span><span class="p">(</span><span class="n">dev</span><span class="o">-></span><span class="n">kobj</span><span class="p">.</span><span class="n">name</span><span class="p">,</span><span class="n">drv</span><span class="o">-></span><span class="n">name</span><span class="p">,</span><span class="n">strlen</span><span class="p">(</span><span class="n">drv</span><span class="o">-></span><span class="n">name</span><span class="p">));</span>
<span class="p">}</span>
<span class="k">struct</span> <span class="n">bus_type</span> <span class="n">newbus</span> <span class="o">=</span>
<span class="p">{</span>
<span class="p">.</span><span class="n">name</span> <span class="o">=</span> <span class="s">"newbus"</span><span class="p">,</span>
<span class="p">.</span><span class="n">match</span> <span class="o">=</span> <span class="n">newmatch</span><span class="p">,</span> <span class="cm">/*匹配函数*/</span>
<span class="p">};</span>
<span class="n">EXPORT_SYMBOL</span><span class="p">(</span><span class="n">newbus</span><span class="p">);</span> <span class="cm">/*符号输出*/</span>
<span class="k">static</span> <span class="kt">int</span> <span class="nf">newbusInit</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
<span class="p">{</span>
<span class="kt">int</span> <span class="n">ret</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
<span class="n">ret</span> <span class="o">=</span> <span class="n">bus_register</span><span class="p">(</span><span class="o">&</span><span class="n">newbus</span><span class="p">);</span>
<span class="k">return</span> <span class="n">ret</span><span class="p">;</span>
<span class="p">}</span>
<span class="k">static</span> <span class="kt">void</span> <span class="nf">newbusExit</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
<span class="p">{</span>
<span class="n">bus_unregister</span><span class="p">(</span><span class="o">&</span><span class="n">newbus</span><span class="p">);</span>
<span class="p">}</span>
<span class="n">MODULE_LICENSE</span><span class="p">(</span><span class="s">"GPL"</span><span class="p">);</span>
<span class="n">MODULE_AUTHOR</span><span class="p">(</span><span class="s">"Hntea"</span><span class="p">);</span>
<span class="n">module_init</span><span class="p">(</span><span class="n">newbusInit</span><span class="p">);</span>
<span class="n">module_exit</span><span class="p">(</span><span class="n">newbusExit</span><span class="p">);</span>
</code></pre>
</div>
<h3 id="section-10">设备驱动创建</h3>
<div class="language-c highlighter-rouge"><pre class="highlight"><code><span class="cm">/************************************
作者:hntea
时间:2016/3/16
函数功能:总线测试
************************************/</span>
<span class="cp">#include<linux/init.h>
</span>
<span class="cp">#include<linux/module.h>
</span>
<span class="cp">#include<linux/device.h>
</span>
<span class="cm">/*初始化设备驱动*/</span>
<span class="k">extern</span> <span class="k">struct</span> <span class="n">bus_type</span> <span class="n">newbus</span> <span class="p">;</span>
<span class="kt">int</span> <span class="nf">A_probe</span><span class="p">(</span><span class="k">struct</span> <span class="n">device</span> <span class="o">*</span><span class="n">dev</span><span class="p">)</span>
<span class="p">{</span>
<span class="n">printk</span><span class="p">(</span><span class="s">"I find A"</span><span class="p">);</span>
<span class="k">return</span> <span class="mi">0</span><span class="p">;</span>
<span class="p">}</span>
<span class="k">struct</span> <span class="n">device_driver</span> <span class="n">A_drv</span> <span class="o">=</span>
<span class="p">{</span>
<span class="p">.</span><span class="n">name</span> <span class="o">=</span> <span class="s">"A_device"</span><span class="p">,</span>
<span class="p">.</span><span class="n">bus</span> <span class="o">=</span> <span class="o">&</span><span class="n">newbus</span><span class="p">,</span>
<span class="p">.</span><span class="n">probe</span> <span class="o">=</span> <span class="n">A_probe</span><span class="p">,</span>
<span class="p">};</span>
<span class="k">static</span> <span class="kt">int</span> <span class="nf">a_driverInit</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
<span class="p">{</span>
<span class="kt">int</span> <span class="n">ret</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
<span class="n">ret</span> <span class="o">=</span> <span class="n">driver_register</span><span class="p">(</span><span class="o">&</span><span class="n">A_drv</span><span class="p">);</span>
<span class="k">return</span> <span class="n">ret</span><span class="p">;</span>
<span class="p">}</span>
<span class="k">static</span> <span class="kt">void</span> <span class="nf">a_driverExit</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
<span class="p">{</span>
<span class="n">driver_unregister</span><span class="p">(</span><span class="o">&</span><span class="n">A_drv</span><span class="p">);</span>
<span class="p">}</span>
<span class="n">MODULE_LICENSE</span><span class="p">(</span><span class="s">"GPL"</span><span class="p">);</span>
<span class="n">MODULE_AUTHOR</span><span class="p">(</span><span class="s">"Hntea"</span><span class="p">);</span>
<span class="n">module_init</span><span class="p">(</span><span class="n">a_driverInit</span><span class="p">);</span>
<span class="n">module_exit</span><span class="p">(</span><span class="n">a_driverExit</span><span class="p">);</span>
</code></pre>
</div>
<h3 id="section-11">设备创建</h3>
<div class="language-c highlighter-rouge"><pre class="highlight"><code><span class="cm">/************************************
作者:hntea
时间:2016/3/16
函数功能:总线测试
************************************/</span>
<span class="cp">#include<linux/init.h>
</span>
<span class="cp">#include<linux/module.h>
</span>
<span class="cp">#include<linux/device.h>
</span>
<span class="cm">/*初始化设备*/</span>
<span class="k">extern</span> <span class="k">struct</span> <span class="n">bus_type</span> <span class="n">newbus</span> <span class="p">;</span>
<span class="cm">/*这个函数要填充,要卸载时会有警告*/</span>
<span class="kt">void</span> <span class="nf">A_release</span><span class="p">(</span><span class="k">struct</span> <span class="n">device</span> <span class="o">*</span><span class="n">dev</span><span class="p">)</span>
<span class="p">{</span>
<span class="p">}</span>
<span class="k">struct</span> <span class="n">device</span> <span class="n">A_dev</span><span class="o">=</span>
<span class="p">{</span>
<span class="p">.</span><span class="n">init_name</span> <span class="o">=</span> <span class="s">"A_device"</span><span class="p">,</span> <span class="cm">/* initial name of the device */</span>
<span class="p">.</span><span class="n">bus</span> <span class="o">=</span> <span class="o">&</span><span class="n">newbus</span><span class="p">,</span> <span class="cm">/* type of bus device is on */</span>
<span class="p">.</span><span class="n">release</span> <span class="o">=</span> <span class="n">A_release</span>
<span class="p">};</span>
<span class="k">static</span> <span class="kt">int</span> <span class="nf">a_deviceInit</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
<span class="p">{</span>
<span class="kt">int</span> <span class="n">ret</span> <span class="o">=</span> <span class="mi">0</span><span class="p">;</span>
<span class="n">ret</span> <span class="o">=</span> <span class="n">device_register</span><span class="p">(</span><span class="o">&</span><span class="n">A_dev</span><span class="p">);</span>
<span class="k">return</span> <span class="n">ret</span><span class="p">;</span>
<span class="p">}</span>
<span class="k">static</span> <span class="kt">void</span> <span class="nf">a_deviceExit</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
<span class="p">{</span>
<span class="n">device_unregister</span><span class="p">(</span><span class="o">&</span><span class="n">A_dev</span><span class="p">);</span>
<span class="p">}</span>
<span class="n">MODULE_LICENSE</span><span class="p">(</span><span class="s">"GPL"</span><span class="p">);</span>
<span class="n">MODULE_AUTHOR</span><span class="p">(</span><span class="s">"Hntea"</span><span class="p">);</span>
<span class="n">module_init</span><span class="p">(</span><span class="n">a_deviceInit</span><span class="p">);</span>
<span class="n">module_exit</span><span class="p">(</span><span class="n">a_deviceExit</span><span class="p">);</span>
</code></pre>
</div>
<!--add by hntea start-->
<!--
<img src="https://hntea.github.io/images/pagement2.jpg" alt="pagement image"></img>
-->
<!--add by hntea end-->
<!-- 多说评论框 start -->
<div class="ds-thread" data-thread-key="/%E9%A9%B1%E5%8A%A8%E5%BC%80%E5%8F%91/总线设备驱动模型" data-title="总线设备驱动模型 " data-url="http://hntea.com//%E9%A9%B1%E5%8A%A8%E5%BC%80%E5%8F%91/%E6%80%BB%E7%BA%BF%E8%AE%BE%E5%A4%87%E9%A9%B1%E5%8A%A8%E6%A8%A1%E5%9E%8B/"></div>
<!-- 多说评论框 end -->
<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
<script type="text/javascript">
var duoshuoQuery = {short_name:"hntea"};
(function() {
var ds = document.createElement('script');
ds.type = 'text/javascript';ds.async = true;
ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
ds.charset = 'UTF-8';
(document.getElementsByTagName('head')[0]
|| document.getElementsByTagName('body')[0]).appendChild(ds);
})();
</script>
<!-- 多说公共JS代码 end -->
</div><!-- /.entry-content -->
</div><!-- /.entry-wrapper -->
<nav class="pagination" role="navigation">
<a href="https://hntea.github.io/%E9%A9%B1%E5%8A%A8%E5%BC%80%E5%8F%91/%E8%AE%BE%E5%A4%87%E9%98%BB%E5%A1%9E%E4%B9%8B%E7%AD%89%E5%BE%85%E9%98%9F%E5%88%97/" class="btn" title="设备阻塞访问之等待队列 ">Previous</a>
<a href="https://hntea.github.io/%E9%A9%B1%E5%8A%A8%E5%BC%80%E5%8F%91/%E5%B9%B3%E5%8F%B0%E6%80%BB%E7%BA%BF%E8%AE%BE%E5%A4%87%E9%A9%B1%E5%8A%A8%E6%A8%A1%E5%9E%8B/" class="btn" title="平台总线驱动模型 ">Next</a>
</nav><!-- /.pagination -->
</article>
</div><!-- /#main -->
<div class="footer-wrapper">
<footer role="contentinfo" class="entry-wrapper">
<span>© 2017 Hntea. Powered by <a href="http://jekyllrb.com" rel="nofollow">Jekyll</a> using the <a href="https://mademistakes.com/work/so-simple-jekyll-theme/" rel="nofollow">So Simple Theme</a>.</span>
<div class="social-icons">
<a href="https://github.com/hntea" title="Hntea on Github" target="_blank"><i class="fa fa-github-square fa-2x"></i></a>
<a href="https://hntea.github.io/feed.xml" title="Atom/RSS feed"><i class="fa fa-rss-square fa-2x"></i></a>
</div><!-- /.social-icons -->
<!--add by hntea-->
<!--访问LeanCloud的js包装脚本-->
<script src="https://cdn1.lncld.net/static/js/av-core-mini-0.6.1.js"></script>
<!--初始化LeanCloud的AV对象-->
<script>
AV.initialize("hQbdf5f1KrAGwtP4cXqprx7y-gzGzoHsz", "7F5Wwjbvx11t0bBmyIgmtpy5");
</script>
<!--实现计数的js包装脚本-->
<script type="text/javascript">
function showTime(Counter) {
var query = new AV.Query(Counter);
var entries = [];
var $visitors = $(".leancloud_visitors");
$visitors.each(function() {
entries.push($(this).attr("id").trim());
});
query.containedIn('url', entries);
query.find()
.done(function(results) {
var COUNT_CONTAINER_REF = '.leancloud-visitors-count';
var OLD_COUNT_CONTAINER_REF = '.old-visitors-count';
// if (results.length === 0) {
// $visitors.find(COUNT_CONTAINER_REF).text(0);
// return;
// }
for (var i = 0; i < results.length; i++) {
var item = results[i];
var url = item.get('url');
var time = item.get('time');
var element = document.getElementById(url);
$(element).find(COUNT_CONTAINER_REF).text(time);
}
for (var i = 0; i < entries.length; i++) {
var url = entries[i];
var element = document.getElementById(url);
var countSpan = $(element).find(COUNT_CONTAINER_REF);
if (countSpan.text() == '') {
var oldCountSpan = $(element).find(OLD_COUNT_CONTAINER_REF).text();
if(oldCountSpan!=''){
countSpan.text(0+parseInt(oldCountSpan));
}else{
countSpan.text(0);
}
}
}
})
.fail(function(object, error) {
console.log("Error: " + error.code + " " + error.message);
});
}
function addCount(Counter) {
var $visitors = $(".leancloud_visitors");
var url = $visitors.attr('id').trim();
var title = $visitors.attr('data-flag-title').trim();
var query = new AV.Query(Counter);
query.equalTo("url", url);
query.find({
success: function(results) {
if (results.length > 0) {
var counter = results[0];
counter.fetchWhenSave(true);
counter.increment("time");
counter.save(null, {
success: function(counter) {
var $element = $(document.getElementById(url));
$element.find('.leancloud-visitors-count').text(counter.get('time'));
},
error: function(counter, error) {
console.log('Failed to save Visitor num, with error message: ' + error.message);
}
});
} else {
var newcounter = new Counter();
/* Set ACL */
var acl = new AV.ACL();
acl.setPublicReadAccess(true);
acl.setPublicWriteAccess(true);
newcounter.setACL(acl);
/* End Set ACL */
newcounter.set("title", title);
newcounter.set("url", url);
var OLD_COUNT_CONTAINER_REF = '.old-visitors-count';
var $element = $(document.getElementById(url));
var oldCountSpan = $element.find(OLD_COUNT_CONTAINER_REF).text();
if(oldCountSpan!=''){
newcounter.set("time", parseInt(oldCountSpan)+1);
}else{
newcounter.set("time", 1);
}
newcounter.save(null, {
success: function(newcounter) {
var $element = $(document.getElementById(url));
$element.find('.leancloud-visitors-count').text(newcounter.get('time'));
},
error: function(newcounter, error) {
console.log('Failed to create');
}
});
}
},
error: function(error) {
console.log('Error:' + error.code + " " + error.message);
}
});
}
$(function() {
var Counter = AV.Object.extend("Counter");
//如果只有1个.leancloud_visitors,则说明是博客页,需要显示查看数并将查看数+1
//超过1个,则说明是文章列表,只需要显示查看数
if ($('.leancloud_visitors').length == 1) {
addCount(Counter);
} else {
showTime(Counter);
}
});
</script>
</footer>
</div><!-- /.footer-wrapper -->
<script type="text/javascript">
var BASE_URL = 'https://hntea.github.io';
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="https://hntea.github.io/assets/js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
<script src="https://hntea.github.io/assets/js/scripts.min.js"></script>
</body>
</html>
|
<?php
namespace Translations\Test\App\Controller;
use Cake\Controller\Controller;
class UsersController extends Controller
{
/**
* Simple users login action
*
* @return void
*/
public function login(): void
{
}
}
|
///<reference path="./otmword.ts" />
///<reference path="./wmmodules.ts" />
///<reference path="./wgenerator.ts" />
///<reference path="./ntdialog.ts" />
/**
* 単語作成部で使用するViewModel
*/
class WordDisplayVM {
/**
* コンストラクタ
* @param el バインディングを適用するタグのid
* @param dict OTM形式辞書クラス
* @param createSetting 単語文字列作成に使用する設定
*/
constructor(el, dict, createSetting, equivalent) {
this.el = el;
this.data = {
dictionary: dict,
isDisabled: false,
createSetting: createSetting,
id: 1,
equivalent: equivalent,
};
this.initMethods();
}
/**
* VMで使用するメソッドを定義するメソッド
*/
initMethods() {
this.methods = {
/**
* 単語文字列を作成するメソッド
*/
create: function _create() {
let form = "";
switch (this.createSetting.mode) {
case WordGenerator.SIMPLE_SYMBOL:
form = WordGenerator.simple(this.createSetting.simple);
break;
case WordGenerator.SIMPLECV_SYMBOL:
form = WordGenerator.simplecv(this.createSetting.simplecv);
break;
case WordGenerator.DEPENDENCYCV_SYMBOL:
form = WordGenerator.dependencycv(this.createSetting.dependencycv);
break;
default:
break;
}
let word = new OtmWord(this.id++, form);
word.add("");
this.dictionary.add(word);
},
/**
* 設定されている全ての訳語に対して単語を作成するメソッド
*/
createAll: function _createAll() {
this.equivalent.equivalentsList.data.forEach((x) => {
let form = "";
switch (this.createSetting.mode) {
case WordGenerator.SIMPLE_SYMBOL:
form = WordGenerator.simple(this.createSetting.simple);
break;
case WordGenerator.SIMPLECV_SYMBOL:
form = WordGenerator.simplecv(this.createSetting.simplecv);
break;
case WordGenerator.DEPENDENCYCV_SYMBOL:
form = WordGenerator.dependencycv(this.createSetting.dependencycv);
break;
default:
break;
}
let word = new OtmWord(this.id++, form);
word.add(x.equivalents.join(","));
this.dictionary.add(word);
});
},
/**
* 作成した全ての単語を削除するメソッド
*/
removeAll: function _removeAll() {
this.dictionary.removeAll();
// idを初期値にする
this.id = 1;
},
/**
* 作成した単語一覧をOTM-JSON形式で出力するメソッド
*/
outputOtmJSON: function _outputOtmJSON() {
// idを振り直す
let id = 1;
this.dictionary.words.forEach((x) => {
x.entry.id = id++;
});
WMModules.exportJSON(this.dictionary, "dict.json");
// 引き続き作成する場合を考えてidを更新する
this.id = id;
},
// 個々で使用する部分
/**
* 訳語選択ダイアログを呼び出すメソッド
* @param 訳語を設定する単語クラス
*/
showEquivalentDialog: function _showEquivalentDialog(word) {
this.equivalent.selectedWordId = word.entry.id.toString();
WMModules.equivalentDialog.show();
},
/**
* 単語を削除するメソッド
* @param 削除する単語クラス
*/
remove: function _remove(word) {
this.dictionary.remove(word.entry.id);
},
/**
* 単語の区切りの","で文字列を区切って配列にするためのメソッド
* @param 単語の訳語(カンマ区切り)
* @return カンマを区切り文字として分割した結果の文字列配列
*/
splitter: function _splitter(value) {
return value.split(",").map(function (x) { return x.trim(); });
},
};
}
}
//# sourceMappingURL=worddisplayvm.js.map |
<!doctype html>
<html class="theme-next pisces use-motion">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link href="/vendors/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />
<link href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
<link href="/vendors/font-awesome/css/font-awesome.min.css?v=4.4.0" rel="stylesheet" type="text/css" />
<link href="/css/main.css?v=5.0.1" rel="stylesheet" type="text/css" />
<meta name="keywords" content="Hexo, NexT" />
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?v=5.0.1" />
<meta name="description" content="以在家上班为目标">
<meta property="og:type" content="website">
<meta property="og:title" content="WDBLOG">
<meta property="og:url" content="http://www.wdblog.xyz/tags/破解/index.html">
<meta property="og:site_name" content="WDBLOG">
<meta property="og:description" content="以在家上班为目标">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="WDBLOG">
<meta name="twitter:description" content="以在家上班为目标">
<script type="text/javascript" id="hexo.configuration">
var NexT = window.NexT || {};
var CONFIG = {
scheme: 'Pisces',
sidebar: {"position":"left","display":"always"},
fancybox: true,
motion: true,
duoshuo: {
userId: 0,
author: '博主'
}
};
</script>
<title> 标签: 破解 | WDBLOG </title>
</head>
<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">
<div class="container one-collumn sidebar-position-left ">
<div class="headband"></div>
<header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
<div class="header-inner"><div class="site-meta ">
<div class="custom-logo-site-title">
<a href="/" class="brand" rel="start">
<span class="logo-line-before"><i></i></span>
<span class="site-title">WDBLOG</span>
<span class="logo-line-after"><i></i></span>
</a>
</div>
<p class="site-subtitle"></p>
</div>
<div class="site-nav-toggle">
<button>
<span class="btn-bar"></span>
<span class="btn-bar"></span>
<span class="btn-bar"></span>
</button>
</div>
<nav class="site-nav">
<ul id="menu" class="menu">
<li class="menu-item menu-item-home">
<a href="/." rel="section">
<i class="menu-item-icon fa fa-fw fa-home"></i> <br />
首页
</a>
</li>
<li class="menu-item menu-item-categories">
<a href="/categories" rel="section">
<i class="menu-item-icon fa fa-fw fa-th"></i> <br />
分类
</a>
</li>
<li class="menu-item menu-item-about">
<a href="/about" rel="section">
<i class="menu-item-icon fa fa-fw fa-user"></i> <br />
关于
</a>
</li>
<li class="menu-item menu-item-archives">
<a href="/archives" rel="section">
<i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
归档
</a>
</li>
<li class="menu-item menu-item-tags">
<a href="/tags" rel="section">
<i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
标签
</a>
</li>
<li class="menu-item menu-item-notes">
<a href="/notes" rel="section">
<i class="menu-item-icon fa fa-fw fa-sticky-note"></i> <br />
便利贴
</a>
</li>
</ul>
</nav>
</div>
</header>
<main id="main" class="main">
<div class="main-inner">
<div class="content-wrap">
<div id="content" class="content">
<div id="posts" class="posts-collapse">
<div class="collection-title">
<h2 >
破解
<small>标签</small>
</h2>
</div>
<article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
<header class="post-header">
<h1 class="post-title">
<a class="post-title-link" href="/2016/08/31/ntu-aircon/" itemprop="url">
<span itemprop="name">破解NTU RFID空调收费卡</span>
</a>
</h1>
<div class="post-meta">
<time class="post-time" itemprop="dateCreated"
datetime="2016-08-31T00:34:22+08:00"
content="2016-08-31" >
08-31
</time>
</div>
</header>
</article>
</div>
</div>
</div>
<div class="sidebar-toggle">
<div class="sidebar-toggle-line-wrap">
<span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
<span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
<span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
</div>
</div>
<aside id="sidebar" class="sidebar">
<div class="sidebar-inner">
<section class="site-overview sidebar-panel sidebar-panel-active ">
<div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
<img class="site-author-image" itemprop="image"
src="http://i.imgur.com/fMwQDsN.jpg"
alt="wudaown" />
<p class="site-author-name" itemprop="name">wudaown</p>
<p class="site-description motion-element" itemprop="description">以在家上班为目标</p>
</div>
<nav class="site-state motion-element">
<div class="site-state-item site-state-posts">
<a href="/archives">
<span class="site-state-item-count">22</span>
<span class="site-state-item-name">日志</span>
</a>
</div>
<div class="site-state-item site-state-categories">
<a href="/categories">
<span class="site-state-item-count">10</span>
<span class="site-state-item-name">分类</span>
</a>
</div>
<div class="site-state-item site-state-tags">
<a href="/tags">
<span class="site-state-item-count">44</span>
<span class="site-state-item-name">标签</span>
</a>
</div>
</nav>
<div class="links-of-author motion-element">
<span class="links-of-author-item">
<a href="https://github.com/wudaown" target="_blank" title="Github">
<i class="fa fa-fw fa-globe"></i>
Github
</a>
</span>
<span class="links-of-author-item">
<a href="https://twitter.com/wudaown" target="_blank" title="Twitter">
<i class="fa fa-fw fa-twitter"></i>
Twitter
</a>
</span>
</div>
</section>
</div>
</aside>
</div>
</main>
<footer id="footer" class="footer">
<div class="footer-inner">
<div class="copyright" >
© 2014 -
<span itemprop="copyrightYear">2016</span>
<span class="with-love">
<i class="fa fa-heart"></i>
</span>
<span class="author" itemprop="copyrightHolder">wudaown</span>
</div>
<div class="powered-by">
由 <a class="theme-link" href="http://hexo.io">Hexo</a> 强力驱动
</div>
<div class="theme-info">
主题 -
<a class="theme-link" href="https://github.com/iissnan/hexo-theme-next">
NexT.Pisces
</a>
</div>
</div>
</footer>
<div class="back-to-top">
<i class="fa fa-arrow-up"></i>
</div>
</div>
<script type="text/javascript">
if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
window.Promise = null;
}
</script>
<script type="text/javascript" src="/vendors/jquery/index.js?v=2.1.3"></script>
<script type="text/javascript" src="/vendors/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
<script type="text/javascript" src="/vendors/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
<script type="text/javascript" src="/vendors/velocity/velocity.min.js?v=1.2.1"></script>
<script type="text/javascript" src="/vendors/velocity/velocity.ui.min.js?v=1.2.1"></script>
<script type="text/javascript" src="/vendors/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
<script type="text/javascript" src="/js/src/utils.js?v=5.0.1"></script>
<script type="text/javascript" src="/js/src/motion.js?v=5.0.1"></script>
<script type="text/javascript" src="/js/src/affix.js?v=5.0.1"></script>
<script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.0.1"></script>
<script type="text/javascript" src="/js/src/bootstrap.js?v=5.0.1"></script>
<script type="text/javascript">
var disqus_shortname = 'wudaown';
var disqus_identifier = 'tags/破解/index.html';
var disqus_title = '';
var disqus_url = '';
function run_disqus_script(disqus_script){
var dsq = document.createElement('script');
dsq.type = 'text/javascript';
dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/' + disqus_script;
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
}
run_disqus_script('count.js');
</script>
</body>
</html>
|
var CategoryLevel = function(){
'use strict';
var categorys = {};
this.addCategory = function(_name) {
categorys[_name] = [];
};
this.addDataToLastCategory = function(_categoryName, _lineData, _className) {
var category = categorys[_categoryName];
};
};
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FlowBasis.Crypto
{
public enum DigestType
{
SHA1 = 0,
MD5 = 1
}
}
|
% Format: Table that occupies multiple pages
\usepackage{longtable}
% Format: Table title line
\usepackage{diagbox}
% Format: Table with varible width
\usepackage{tabularx}
% Format: Color table
\usepackage{colortbl}
% Define colors
\definecolor{grey}{rgb}{0.91,0.91,0.91}
|
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
|--------------------------------------------------------------------------
| Display Debug backtrace
|--------------------------------------------------------------------------
|
| If set to TRUE, a backtrace will be displayed along with php errors. If
| error_reporting is disabled, the backtrace will not display, regardless
| of this setting
|
*/
defined('SHOW_DEBUG_BACKTRACE') OR define('SHOW_DEBUG_BACKTRACE', TRUE);
/*
|--------------------------------------------------------------------------
| File and Directory Modes
|--------------------------------------------------------------------------
|
| These prefs are used when checking and setting modes when working
| with the file system. The defaults are fine on servers with proper
| security, but you may wish (or even need) to change the values in
| certain environments (Apache running a separate process for each
| user, PHP under CGI with Apache suEXEC, etc.). Octal values should
| always be used to set the mode correctly.
|
*/
defined('FILE_READ_MODE') OR define('FILE_READ_MODE', 0644);
defined('FILE_WRITE_MODE') OR define('FILE_WRITE_MODE', 0666);
defined('DIR_READ_MODE') OR define('DIR_READ_MODE', 0755);
defined('DIR_WRITE_MODE') OR define('DIR_WRITE_MODE', 0755);
/*
|--------------------------------------------------------------------------
| File Stream Modes
|--------------------------------------------------------------------------
|
| These modes are used when working with fopen()/popen()
|
*/
defined('FOPEN_READ') OR define('FOPEN_READ', 'rb');
defined('FOPEN_READ_WRITE') OR define('FOPEN_READ_WRITE', 'r+b');
defined('FOPEN_WRITE_CREATE_DESTRUCTIVE') OR define('FOPEN_WRITE_CREATE_DESTRUCTIVE', 'wb'); // truncates existing file data, use with care
defined('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE') OR define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE', 'w+b'); // truncates existing file data, use with care
defined('FOPEN_WRITE_CREATE') OR define('FOPEN_WRITE_CREATE', 'ab');
defined('FOPEN_READ_WRITE_CREATE') OR define('FOPEN_READ_WRITE_CREATE', 'a+b');
defined('FOPEN_WRITE_CREATE_STRICT') OR define('FOPEN_WRITE_CREATE_STRICT', 'xb');
defined('FOPEN_READ_WRITE_CREATE_STRICT') OR define('FOPEN_READ_WRITE_CREATE_STRICT', 'x+b');
/*
|--------------------------------------------------------------------------
| Exit Status Codes
|--------------------------------------------------------------------------
|
| Used to indicate the conditions under which the script is exit()ing.
| While there is no universal standard for error codes, there are some
| broad conventions. Three such conventions are mentioned below, for
| those who wish to make use of them. The CodeIgniter defaults were
| chosen for the least overlap with these conventions, while still
| leaving room for others to be defined in future versions and user
| applications.
|
| The three main conventions used for determining exit status codes
| are as follows:
|
| Standard C/C++ Library (stdlibc):
| http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html
| (This link also contains other GNU-specific conventions)
| BSD sysexits.h:
| http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=sysexits
| Bash scripting:
| http://tldp.org/LDP/abs/html/exitcodes.html
|
*/
defined('EXIT_SUCCESS') OR define('EXIT_SUCCESS', 0); // no errors
defined('EXIT_ERROR') OR define('EXIT_ERROR', 1); // generic error
defined('EXIT_CONFIG') OR define('EXIT_CONFIG', 3); // configuration error
defined('EXIT_UNKNOWN_FILE') OR define('EXIT_UNKNOWN_FILE', 4); // file not found
defined('EXIT_UNKNOWN_CLASS') OR define('EXIT_UNKNOWN_CLASS', 5); // unknown class
defined('EXIT_UNKNOWN_METHOD') OR define('EXIT_UNKNOWN_METHOD', 6); // unknown class member
defined('EXIT_USER_INPUT') OR define('EXIT_USER_INPUT', 7); // invalid user input
defined('EXIT_DATABASE') OR define('EXIT_DATABASE', 8); // database error
defined('EXIT__AUTO_MIN') OR define('EXIT__AUTO_MIN', 9); // lowest automatically-assigned error code
defined('EXIT__AUTO_MAX') OR define('EXIT__AUTO_MAX', 125); // highest automatically-assigned error code
define('PWKEY', '!@#$%^&*'); //密码加密密钥
define('BUYTYPE', ['1' => '6HC', '2' => '双色', '3' => '赛车']);
|
package solutions.digamma.damas.common;
/**
* Exception occurs in case of incompatibility between DMS items. For example
* this exception should be thrown when an identifier of existing but
* incompatible item is passed to a method.
*
* @author Ahmad Shahwan
*/
public class CompatibilityException extends MisuseException {
public CompatibilityException() {
super();
}
public CompatibilityException(String message) {
super(message);
}
public CompatibilityException(Exception e) {
super(e);
}
public CompatibilityException(String message, Exception e) {
super(message, e);
}
}
|
require("prototypes.advanced_combinator")
require("prototypes.technology")
require("prototypes.recipe")
data.raw["gui-style"].default["advanced_combinator_scroll"] = {
type = "scroll_pane_style",
maximal_width = 400
}
data.raw["gui-style"].default["advanced_combinator_small_button"] = {
type = "button_style",
width = 40,
height = 35
}
|
body {
border-color:"rgb(0, 0, 0)";
} |
# Playing with various features of Dissident.
require 'dissident'
require 'yaml'
class LibApp; end
class MyContainer < Dissident::Container
def database
p "Initializing database"
"database"
end
define(:logger) { "logger" }
provide :lib, LibApp
def add(x, y)
x + y
end
def add_three(x, y, z)
[rand, x+y+z]
end
end
class MyContainer2 < MyContainer
def database
p "Initializing different database"
"different database"
end
end
class App
inject :database, :logger
inject :lib
inject :add
inject :add_three
def test
p self
puts "I have: #{database}, #{logger}, #{lib}, #{add 2, 3}"
end
end
class LibApp
library LibApp
default_container MyContainer
inject :logger
end
p Dissident::LIBRARIES
p Dissident::INJECTED
Dissident.with MyContainer do
a = App.new
p a
p a.test
end
Dissident.with MyContainer2,
LibApp => MyContainer2 do
App.new.test
oy = nil
Dissident.with MyContainer do
oy = App.new
oy.test
end
App.new.test
oy.test
oy.test
oy.test
a = App.new
p a.add_three(1, 2, 3)
p a.add_three(1, 2, 3)
p a.add_three(1, 2, 3)
p a.add_three(1, 2, 4)
p a.add_three(1, 2, 3)
p a.add_three(1, 1, 1)
puts a.to_yaml
a.test
puts a.to_yaml
end
|
---
layout: default
title: Kotiaine
theme: swedish
course: rub4
---
<div class="container">
<div class="header-row">
<div class="main-header">
<h1>{{ page.title }}</h1>
</div>
</div>
<div class="content-row">
<div class="main-content">
Kurssin kotiaine on B-ruotsin oppimäärässä vaadittavan pituinen, kurssin teemoja noudattava aine. Tarkemmat ohjeet
tulevat tänne n. viikkoa ennen aineen palautuspäivää.
</div>
</div>
</div>
|
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Timers;
using System.Web;
using AutoMapper;
using BellTowerEscape.Commands;
using BellTowerEscape.Utility;
namespace BellTowerEscape.Server
{
public class Game
{
private static int _MAXID = 0;
public static int START_DELAY = 5000; // 5 seconds
public static int TURN_DURATION = 2000; // 2 seconds
public static int SERVER_PROCESSING = 2000; // 2 seconds
public int totalTimeProcessing = TURN_DURATION + SERVER_PROCESSING;
public static int TIME_TO_WAIT_FOR_SECOND_PLAYER = 60000; // 1 minute
public static int MAX_TURN = 500;
public static bool IsRunningLocally = HttpContext.Current.Request.IsLocal;
private static int _NUMBER_OF_ELEVATORS = 4;
public static int NUMBER_OF_FLOORS = 12;
private static int _MAX_PEOPLE_TO_ADD_PER_FLOOR = 2;
private HighFrequencyTimer _gameLoop = null;
public ConcurrentDictionary<string, Player> Players = new ConcurrentDictionary<string, Player>();
private ConcurrentDictionary<string, Player> _authTokens = new ConcurrentDictionary<string, Player>();
public int Seed { get; set; }
public Random Random { get; set; }
public int Id { get; set; }
public bool Processing { get; set; }
public int Turn { get; set; }
public bool GameOver { get; set; }
private bool _started { get; set; }
public bool Waiting { get; set; }
public bool _processingComplete { get; set; }
private object synclock = new object();
private long elapsedWaitTime = 0;
private long elapsedTotalTurn = 0;
private long elapsedServerTime = 0;
private long gameStartCountdown = START_DELAY;
public ConcurrentDictionary<int, Elevator> Elevators { get; set;}
public ConcurrentDictionary<int, Floor> Floors { get; set; }
public bool Running { get; set; }
public Game(int? seed, int? id) : base()
{
if (seed != null && seed.HasValue)
{
Random = new Random(seed.Value);
}
if (id != null && id.HasValue)
{
Id = id.Value;
}
}
public Game()
{
if (Random == null)
{
Random = new Random();
}
Id = _MAXID++;
Elevators = new ConcurrentDictionary<int, Elevator>();
// dirty filthy hacks
var evenElevators = Random.Next(NUMBER_OF_FLOORS);
var oddElevators = Random.Next(NUMBER_OF_FLOORS);
for (int i = 0; i < _NUMBER_OF_ELEVATORS; i++)
{
Elevators.GetOrAdd(i, new Elevator(){Id = i, Floor = (i % 2 == 0) ? evenElevators : oddElevators, Meeples = new List<Meeple>()});
}
Floors = new ConcurrentDictionary<int, Floor>();
for (int i = 0; i < NUMBER_OF_FLOORS; i++)
{
Floors.GetOrAdd(i, new Floor() {Meeples = new List<Meeple>(), Number = i});
}
AddMeepleToFloors();
Turn = 0;
Running = false;
_started = false;
_gameLoop = new HighFrequencyTimer(60, this.Update);
}
private void AddMeepleToFloors()
{
Floors[Random.Next(NUMBER_OF_FLOORS)].SpawnMeeple(this, Random.Next(_MAX_PEOPLE_TO_ADD_PER_FLOOR));
}
/// <summary>
/// Logs player with a certain name into the game and returns an authorization token
/// </summary>
/// <param name="playerName"></param>
/// <returns></returns>
public LogonResult LogonPlayer(string playerName)
{
var result = new LogonResult();
if (!Players.ContainsKey(playerName))
{
var newPlayer = new Player()
{
AuthToken = System.Guid.NewGuid().ToString(),
PlayerName = playerName
};
var success = Players.TryAdd(playerName, newPlayer);
var success2 = _authTokens.TryAdd(newPlayer.AuthToken, newPlayer);
if (success && success2)
{
System.Diagnostics.Debug.WriteLine("Player logon [{0}]:[{1}]", newPlayer.PlayerName,
newPlayer.AuthToken);
}
_allocateElevators(newPlayer.AuthToken);
result.AuthToken = newPlayer.AuthToken;
result.GameId = Id;
result.GameStart = (int) this.gameStartCountdown;
}
else
{
System.Diagnostics.Debug.WriteLine("Player {0} already logged on!", playerName);
}
result.GameId = Id;
return result;
}
public void StartDemoAgent(LogonResult demoResult, string playerName)
{
var agentTask = Task.Factory.StartNew(() =>
{
string endpoint = "";
if (IsRunningLocally)
{
endpoint = "http://localhost:3193";
}
else {
endpoint = "http://elevators.azurewebsites.net";
}
AgentBase sweetDemoAgent = new AgentBase(playerName, endpoint);
sweetDemoAgent.Start(demoResult).Wait();
});
}
public List<ElevatorLite> GetElevatorsForPlayer(string token)
{
return this.Elevators.Values.Where(e => e.PlayerToken == token).Select(Mapper.Map<ElevatorLite>).ToList();
}
public List<ElevatorLite> GetElevatorsForOtherPlayer(string token)
{
return this.Elevators.Values.Where(e => e.PlayerToken != token).Select(Mapper.Map<ElevatorLite>).ToList();
}
public int GetEnemyDelivered(string token)
{
return this._authTokens.Values.Where(e => e.AuthToken != token).First().Score;
}
private void _allocateElevators(string token)
{
lock (synclock)
{
var count = _NUMBER_OF_ELEVATORS/2;
foreach (var elevator in Elevators.Values)
{
if (count <= 0) break;
if(string.IsNullOrEmpty(elevator.PlayerToken))
{
count--;
elevator.PlayerToken = token;
}
}
}
}
public StatusResult GetStatus(StatusCommand command)
{
var status = "Initializing";
if (!this._started)
{
status = "Game waiting for Logons";
}
if (this.Waiting)
{
status = "Waiting for another player to join...";
}
if (this.GameOver)
{
if (this.Waiting) {
status = "Other players never joined";
}
else if (this._authTokens.Values.GroupBy(e => e.Score).First().Count() == this.Players.Count())
{
status = "Game Over - It's a TIE!";
}
else
{
var winningPlayer = this._authTokens.Values.OrderByDescending(e => e.Score).First().PlayerName;
status = "Game Over - " + winningPlayer + " wins!";
}
}
if (this.Running)
{
status = "Game Running";
}
return new StatusResult()
{
EnemyElevators = GetElevatorsForOtherPlayer(command.AuthToken),
MyElevators = GetElevatorsForPlayer(command.AuthToken),
TimeUntilNextTurn = (int) (_started ?
(SERVER_PROCESSING + TURN_DURATION - this.elapsedTotalTurn - this.elapsedServerTime) : Waiting ? SERVER_PROCESSING + TURN_DURATION : this.gameStartCountdown),
Delivered = _authTokens[command.AuthToken].Score,
EnemyDelivered = this.Waiting ? 0 : GetEnemyDelivered(command.AuthToken),
Floors = Floors.Values.Select(Mapper.Map<FloorLite>).ToList(),
Id = this.Id,
Turn = this.Turn,
IsGameOver = this.GameOver,
Status = status
};
}
public MoveResult MoveElevator(MoveCommand command)
{
var result = new MoveResult();
//var token = command.AuthToken;
var id = command.ElevatorId;
Elevator elevator;
var exists = Elevators.TryGetValue(id, out elevator);
var error = _validateMoveElevatorErrors(command);
if (error == null && elevator != null)
{
elevator.Done = true;
// we have validated control and existance of the elevator
if (command.Direction.ToLower() == "up")
{
elevator.Floor = Math.Min(elevator.Floor + 1, NUMBER_OF_FLOORS - 1);
elevator.IsStopped = false;
result.Message = string.Format("Moved elevator {0} up successfully", command.ElevatorId);
}
else if (command.Direction.ToLower() == "down")
{
elevator.Floor = Math.Max(elevator.Floor - 1, 0);
elevator.IsStopped = false;
result.Message = string.Format("Moved elevator {0} down successfully", command.ElevatorId);
}
else if (command.Direction.ToLower() == "stop")
{
elevator.IsStopped = true;
result.Message = string.Format("Stopped elevator {0} successfully", command.ElevatorId);
}
result.Success = true;
}
else
{
System.Diagnostics.Debug.WriteLine(error.Message);
return error;
}
return result;
}
private MoveResult _validateMoveElevatorErrors(MoveCommand command)
{
var token = command.AuthToken;
var id = command.ElevatorId;
Elevator elevator;
var exists = Elevators.TryGetValue(id, out elevator);
if (!exists)
{
return new MoveResult()
{
Success = false,
Message = string.Format("Elevator for id {0} does not exist", id)
};
}
if (string.IsNullOrEmpty(command.Direction))
{
return new MoveResult()
{
Success = false,
Message = string.Format("Could not move elevator on empty direction")
};
}
if (command.Direction.ToLower() != "up" &&
command.Direction.ToLower() != "down" &&
command.Direction.ToLower() != "stop")
{
return new MoveResult()
{
Success = false,
Message = string.Format("Could not move elevator on invalid direction {0}", command.Direction)
};
}
if (elevator.PlayerToken != token)
{
return new MoveResult()
{
Success = false,
Message = string.Format("Can't move elevators you don't own ;) ID: {0}", command.ElevatorId)
};
}
if (elevator.Done)
{
return new MoveResult()
{
Success = false,
Message = string.Format("Elevator has already been moved")
};
}
if (Processing)
{
return new MoveResult()
{
Success = false,
Message = string.Format("Server is processing, please try again soon")
};
}
return null;
}
public void Update(long delta)
{
if (this.Waiting)
{
elapsedWaitTime += delta;
if (elapsedWaitTime > TIME_TO_WAIT_FOR_SECOND_PLAYER)
{
GameOver = true;
this.Stop();
}
return;
}
if (!_started)
{
this.gameStartCountdown -= delta;
if (this.gameStartCountdown <= 0)
{
_started = true;
}
return;
}
if (GameOver)
{
this.Stop();
return;
}
this.elapsedTotalTurn += delta;
if (!Processing && this.elapsedTotalTurn >= TURN_DURATION)
{
Processing = true;
}
if (this.elapsedTotalTurn >= SERVER_PROCESSING + TURN_DURATION)
{
Processing = false;
_processingComplete = false;
this.elapsedTotalTurn = 0;
Turn++;
// publish viz update every turn
ClientManager.UpdateClientGame(this);
}
if (Processing && !_processingComplete)
{
// score meeples
foreach (var elevator in Elevators.Values.ToList())
{
foreach (var meeple in elevator.Meeples.ToList())
{
if (elevator.Floor == meeple.Destination && elevator.IsStopped)
{
if (meeple.Patience >= 0)
{
elevator.Meeples.Remove(meeple);
_authTokens[elevator.PlayerToken].Score++;
}
}
}
}
// for each floor
for (int i = 0; i < Floors.Count; i++)
{
// let's just not bother when there are no meeples
if (Floors[i].Meeples.Count <= 0) { continue; }
// get all stopped elevators based on capacity
List<Elevator> elevatorsStoppedOnFloor = Elevators.Values.Where(e => e.IsStopped && e.Floor == i).ToList();
// ensure "fairness" by shuffling
elevatorsStoppedOnFloor.Shuffle(this);
// sort ascnedingly
elevatorsStoppedOnFloor = elevatorsStoppedOnFloor.OrderByDescending(e => e.FreeSpace).ToList();
var elevatorGroups = elevatorsStoppedOnFloor.GroupBy(e => e.FreeSpace);
// each group should have the same amount of free space
foreach (var eGroup in elevatorGroups)
{
// SHUFFLE IT AGAIN!
var eGroupShuffled = eGroup.ToList();
eGroupShuffled.Shuffle(this);
// just kill it, then again max of 4 elevators, possibly not worth it. BUT bell tower is expandable!
if (Floors[i].Meeples.Count <= 0) { break; }
// keep going for the amount of free space in the elevator
for (int j = eGroup.Key; j > 0; j--)
{
// add 1 meeple to the elevator at a time
foreach (Elevator elevator in eGroupShuffled)
{
if (Floors[i].Meeples.Count > 0 && elevator.FreeSpace > 0)
{
Meeple meeple = Floors[i].Meeples[0];
Floors[i].Meeples.Remove(meeple);
elevator.Meeples.Add(meeple);
meeple.InElevator = true;
}
}
}
}
}
// for each elevator check Meeple frustration
foreach (var elevator in Elevators.Values.ToList())
{
foreach (var meeple in elevator.Meeples.ToList())
{
meeple.Update();
if (meeple.Patience < 0 && elevator.IsStopped)
{
// GET OFF. If the meeple is on the floor it wanted, you still get negative points.
if (meeple.Destination != elevator.Floor)
{
// TODO: It may or may not be worth having that meeple be frustrated to the point where they don't want to get back on your elevators
meeple.FrustratedAtPlayer = elevator.PlayerToken;
Floor floor;
Floors.TryGetValue(elevator.Floor, out floor);
meeple.ResetMeeple(elevator.Floor);
floor.Meeples.Add(meeple);
_authTokens[elevator.PlayerToken].Score--;
}
elevator.Meeples.Remove(meeple);
}
}
}
// add new Meeples
AddMeepleToFloors();
// clear state variables
foreach (var elevator in Elevators.Values)
{
elevator.IsStopped = false; //so, if your AI skips a turn, you can't fake a "stopped" elevator ploy
elevator.Done = false;
}
_processingComplete = true;
}
if (Turn >= MAX_TURN)
{
this.GameOver = true;
}
}
public void Start()
{
Running = true;
_gameLoop.Start();
}
public void Stop()
{
Running = false;
_gameLoop.Stop();
}
}
} |
.highlight table td { padding: 5px; }
.highlight table pre { margin: 0; }
.highlight .gh {
color: #999999;
}
.highlight .sr {
color: #f6aa11;
}
.highlight .go {
color: #888888;
}
.highlight .gp {
color: #555555;
}
.highlight .gs {
}
.highlight .gu {
color: #aaaaaa;
}
.highlight .nb {
color: #f6aa11;
}
.highlight .cm {
color: #75715e;
}
.highlight .cp {
color: #75715e;
}
.highlight .c1 {
color: #75715e;
}
.highlight .cs {
color: #75715e;
}
.highlight .c, .highlight .cd {
color: #75715e;
}
.highlight .err {
color: #960050;
}
.highlight .gr {
color: #960050;
}
.highlight .gt {
color: #960050;
}
.highlight .gd {
color: #49483e;
}
.highlight .gi {
color: #49483e;
}
.highlight .ge {
color: #49483e;
}
.highlight .kc {
color: #66d9ef;
}
.highlight .kd {
color: #66d9ef;
}
.highlight .kr {
color: #66d9ef;
}
.highlight .no {
color: #66d9ef;
}
.highlight .kt {
color: #66d9ef;
}
.highlight .mf {
color: #ae81ff;
}
.highlight .mh {
color: #ae81ff;
}
.highlight .il {
color: #ae81ff;
}
.highlight .mi {
color: #ae81ff;
}
.highlight .mo {
color: #ae81ff;
}
.highlight .m, .highlight .mb, .highlight .mx {
color: #ae81ff;
}
.highlight .sc {
color: #ae81ff;
}
.highlight .se {
color: #ae81ff;
}
.highlight .ss {
color: #ae81ff;
}
.highlight .sd {
color: #e6db74;
}
.highlight .s2 {
color: #e6db74;
}
.highlight .sb {
color: #e6db74;
}
.highlight .sh {
color: #e6db74;
}
.highlight .si {
color: #e6db74;
}
.highlight .sx {
color: #e6db74;
}
.highlight .s1 {
color: #e6db74;
}
.highlight .s {
color: #e6db74;
}
.highlight .na {
color: #a6e22e;
}
.highlight .nc {
color: #a6e22e;
}
.highlight .nd {
color: #a6e22e;
}
.highlight .ne {
color: #a6e22e;
}
.highlight .nf {
color: #a6e22e;
}
.highlight .vc {
color: #ffffff;
}
.highlight .nn {
color: #ffffff;
}
.highlight .nl {
color: #ffffff;
}
.highlight .ni {
color: #ffffff;
}
.highlight .bp {
color: #ffffff;
}
.highlight .vg {
color: #ffffff;
}
.highlight .vi {
color: #ffffff;
}
.highlight .nv {
color: #ffffff;
}
.highlight .w {
color: #ffffff;
}
.highlight {
color: #ffffff;
}
.highlight .n, .highlight .py, .highlight .nx {
color: #ffffff;
}
.highlight .ow {
color: #f92672;
}
.highlight .nt {
color: #f92672;
}
.highlight .k, .highlight .kv {
color: #f92672;
}
.highlight .kn {
color: #f92672;
}
.highlight .kp {
color: #f92672;
}
.highlight .o {
color: #f92672;
}
div[class="highlight"] > pre > code[class*="language-"] {
background:black;
color:#f8f8f2;
}
div[class="highlight"] > pre {
background:black;
}
figure[class="highlight"] > pre > code[class*="language-"] {
text-align:left;
background:black;
color:#f8f8f2;
}
figure[class="highlight"] > pre > code[class*="language-"] td > pre{
text-align:left;
background:black;
color:#f8f8f2;
}
figure[class="highlight"] > pre {
text-align:left;
background:black;
}
div[class*="highlighter-rouge"] > pre[class="highlight"] > code{
background:black;
color:#f8f8f2;
}
div[class*="highlighter-rouge"] > pre[class="highlight"] {
background:black;
}
.lineno {color: #f8f8f2 } /*Number of line*/ |
begin
require File.expand_path('../../ripper', __FILE__)
require 'test/unit'
ripper_test = true
module TestRipper; end
rescue LoadError
p $!
end
class TestRipper::Ripper < Test::Unit::TestCase
def setup
@ripper = Ripper.new '1 + 1'
end
def test_column
assert_nil @ripper.column
end
def test_encoding
assert_equal Encoding::UTF_8, @ripper.encoding
end
def test_end_seen_eh
refute @ripper.end_seen?
end
def test_filename
assert_equal '(ripper)', @ripper.filename
end
def test_lineno
assert_nil @ripper.lineno
end
def test_parse
refute @ripper.parse
end
def test_yydebug
refute @ripper.yydebug
end
def test_yydebug_equals
@ripper.yydebug = true
assert @ripper.yydebug
end
end if ripper_test
|
module HelperMethods
# Find and click the 'submit' button.
# Should be used +within+ a form's scope.
def submit
find("[type='submit']").click
end
# Reload the current page
def reload_page
visit page.current_url
end
# Shortcut for accessing localizations
def t(*args)
I18n.t(*args)
end
end
RSpec.configuration.include HelperMethods, :type => :feature
|
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.storage.generated;
import com.azure.core.util.Context;
/** Samples for Table Create. */
public final class TableCreateSamples {
/*
* x-ms-original-file: specification/storage/resource-manager/Microsoft.Storage/stable/2021-08-01/examples/TableOperationPut.json
*/
/**
* Sample code: TableOperationPut.
*
* @param azure The entry point for accessing resource management APIs in Azure.
*/
public static void tableOperationPut(com.azure.resourcemanager.AzureResourceManager azure) {
azure
.storageAccounts()
.manager()
.serviceClient()
.getTables()
.createWithResponse("res3376", "sto328", "table6185", Context.NONE);
}
}
|
/* global $:true */
+ function($) {
var defaults;
var Photos = function(config) {
this.initConfig(config);
this.index = 0;
}
Photos.prototype = {
initConfig: function (config) {
this.config = $.extend({}, defaults, config);
this.activeIndex = this.lastActiveIndex = this.config.initIndex;
this.config.items = this.config.items.map(function(d, i) {
if(typeof d === typeof 'a') {
return {
image: d,
caption: ''
}
}
return d;
});
this.tpl = $.t7.compile(this.config.tpl);
if(this.config.autoOpen) this.open();
},
open: function (index) {
if (this._open) return false;
if (!this.modal) {
this.modal = $(this.tpl(this.config)).appendTo(document.body);
this.container = this.modal.find('.swiper-container');
this.wrapper = this.modal.find('.swiper-wrapper');
var hammer = new Hammer(this.container[0]);
hammer.get('pinch').set({ enable: true });
hammer.on('pinchstart', $.proxy(this.onGestureStart, this));
hammer.on('pinchmove', $.proxy(this.onGestureChange, this));
hammer.on('pinchend', $.proxy(this.onGestureEnd, this));
this.modal.on($.touchEvents.start, $.proxy(this.onTouchStart, this));
this.modal.on($.touchEvents.move, $.proxy(this.onTouchMove, this));
this.modal.on($.touchEvents.end, $.proxy(this.onTouchEnd, this));
//init index
this.wrapper.transition(0);
this.wrapper.transform('translate3d(-' + $(window).width()*this.config.initIndex + 'px,0,0)');
this.container.find('.caption-item').eq(this.config.initIndex).addClass('active');
this.container.find('.swiper-pagination-bullet').eq(this.config.initIndex).addClass('swiper-pagination-bullet-active');
}
var self = this;
this.modal.show().height();
this.modal.addClass('weui-photo-browser-modal-visible');
this.container.addClass('swiper-container-visible').transitionEnd(function() {
self.initParams();
if(index !== undefined) {
self.slideTo(index);
}
if(self.config.onOpen) {
self.config.onOpen.call(self);
}
});
this._open = true;
},
close: function() {
this.container.transitionEnd($.proxy(function() {
this.modal.hide();
this._open = false;
if(this.config.onClose) this.config.onClose.call(this);
}, this));
this.container.removeClass('swiper-container-visible');
this.modal.removeClass('weui-photo-browser-modal-visible');
},
initParams: function () {
if(this.containerHeight) return false;
this.windowWidth = $(window).width();
this.containerHeight = this.container.height();
this.containerWidth = this.container.width();
this.touchStart = {};
this.wrapperTransform = 0;
this.wrapperLastTransform = - $(window).width()*this.config.initIndex;
this.wrapperDiff = 0;
this.lastScale = 1;
this.currentScale = 1;
this.imageLastTransform = { x: 0, y: 0 };
this.imageTransform = { x: 0, y: 0 };
this.imageDiff = { x: 0, y: 0 };
this.imageLastDiff = { x: 0, y: 0 };
},
onTouchStart: function (e) {
if(this.scaling) return false;
this.touching = true;
this.touchStart = $.getTouchPosition(e);
this.touchMove = null;
this.touchStartTime = + new Date;
this.wrapperDiff = 0;
this.breakpointPosition = null;
},
onTouchMove: function (e) {
if(!this.touching || this.scaling) return false;
e.preventDefault();
if(this.gestureImage) {
var rect = this.gestureImage[0].getBoundingClientRect();
if (rect.left >= 0 || rect.right <= this.windowWidth) {
this.overflow = true;
} else {
this.overflow = false;
}
} else {
this.oveflow = false;
}
var p = this.touchMove = $.getTouchPosition(e);
if(this.currentScale === 1 || this.overflow) {
if(this.breakpointPosition) {
this.wrapperDiff = p.x - this.breakpointPosition.x;
} else {
this.wrapperDiff = p.x - this.touchStart.x;
}
if(this.activeIndex === 0 && this.wrapperDiff > 0) this.wrapperDiff = Math.pow(this.wrapperDiff, .8);
if(this.activeIndex === this.config.items.length - 1 && this.wrapperDiff < 0) this.wrapperDiff = - Math.pow(-this.wrapperDiff, .8);
this.wrapperTransform = this.wrapperLastTransform + this.wrapperDiff;
this.doWrapperTransform();
} else {
var img = this.gestureImage;
this.imageDiff = {
x: p.x - this.touchStart.x,
y: p.y - this.touchStart.y
}
this.imageTransform = {
x: this.imageDiff.x + this.imageLastTransform.x,
y: this.imageDiff.y + this.imageLastTransform.y
};
this.doImageTransform();
this.breakpointPosition = p;
this.imageLastDiff = this.imageDiff;
}
},
onTouchEnd: function (e) {
if(!this.touching) return false;
this.touching = false;
if(this.scaling) return false;
var duration = (+ new Date) - this.touchStartTime;
if(duration < 200 && (!this.touchMove || Math.abs(this.touchStart.x - this.touchMove.x) <= 2 && Math.abs(this.touchStart.y - this.touchMove.y) <= 2)) {
this.onClick();
return;
}
if(this.wrapperDiff > 0) {
if(this.wrapperDiff > this.containerWidth/2 || (this.wrapperDiff > 20 && duration < 300)) {
this.slidePrev();
} else {
this.slideTo(this.activeIndex, 200);
}
} else {
if(- this.wrapperDiff > this.containerWidth/2 || (-this.wrapperDiff > 20 && duration < 300)) {
this.slideNext();
} else {
this.slideTo(this.activeIndex, 200);
}
}
this.imageLastTransform = this.imageTransform;
this.adjust();
},
onClick: function () {
var self = this;
if (this._lastClickTime && ( + new Date - this._lastClickTime < 300)) {
this.onDoubleClick();
clearTimeout(this._clickTimeout);
} else {
this._clickTimeout = setTimeout(function () {
self.close();
}, 300);
}
this._lastClickTime = + new Date;
},
onDoubleClick: function () {
this.gestureImage = this.container.find('.swiper-slide').eq(this.activeIndex).find('img');
this.currentScale = this.currentScale > 1 ? 1 : 2;
this.doImageTransform(200);
this.adjust();
},
onGestureStart: function (e) {
this.scaling = true;
this.gestureImage = this.container.find('.swiper-slide').eq(this.activeIndex).find('img');
},
onGestureChange: function (e) {
var s = this.lastScale * e.scale;
if (s > this.config.maxScale) {
s = this.config.maxScale + Math.pow((s - this.config.maxScale), 0.5);
} else if (s < 1) {
s = Math.pow(s, .5);
}
this.currentScale = s;
this.doImageTransform();
},
onGestureEnd: function (e) {
if (this.currentScale > this.config.maxScale) {
this.currentScale = this.config.maxScale;
this.doImageTransform(200);
} else if (this.currentScale < 1) {
this.currentScale = 1;
this.doImageTransform(200);
}
this.lastScale = this.currentScale;
this.scaling = false;
this.adjust();
},
doWrapperTransform: function(duration, callback) {
if (duration === 0) {
var origin = this.wrapper.css('transition-property')
this.wrapper.css('transition-property', 'none').transform('translate3d(' + this.wrapperTransform + 'px, 0, 0)');
this.wrapper.css('transition-property', origin);
callback()
} else {
this.wrapper.transitionEnd(function() {
callback && callback();
});
this.wrapper.transition(duration || defaults.duration).transform('translate3d(' + this.wrapperTransform + 'px, 0, 0)');
}
},
doImageTransform: function(duration, callback) {
if(!this.gestureImage) return;
this.gestureImage.transition(duration || 0).transform('translate3d(' + this.imageTransform.x + 'px,' + this.imageTransform.y + 'px, 0) scale(' + this.currentScale + ')');
this._needAdjust = true;
},
adjust: function() {
if(!this._needAdjust) return false;
var img = this.gestureImage;
if(!img) return false;
if(this.currentScale === 1) {
this.imageTransform = this.imageLastDiff = {x:0,y:0};
this.doImageTransform(200);
return;
}
var rect = img[0].getBoundingClientRect();
//调整上下
if(rect.height < this.containerHeight) { // 如果高度没容器高,则自动居中
this.imageTransform.y = this.imageLastTransform.y = 0;
} else { //如果比容器高,那么要保证上下不能有空隙
if(rect.top > 0) this.imageTransform.y = this.imageTransform.y - rect.top;
else if(rect.bottom < this.containerHeight) this.imageTransform.y = this.imageTransform.y + this.containerHeight - rect.bottom;
}
this.doImageTransform(200);
this._needAdjust = false; // must at last line, because doImageTransform will set this._needAdjust true
},
slideTo: function(index, duration) {
if(index < 0) index = 0;
if(index > this.config.items.length-1) index = this.config.items.length - 1;
this.lastActiveIndex = this.activeIndex;
this.activeIndex = index;
this.wrapperTransform = - (index * this.containerWidth);
this.wrapperLastTransform = this.wrapperTransform;
this.doWrapperTransform(duration, $.proxy(function() {
if(this.lastActiveIndex === this.activeIndex) return false; // active index not change
this.container.find('.caption-item.active').removeClass('active');
this.container.find('.swiper-slide-active').removeClass('swiper-slide-active');
this.container.find('.swiper-pagination-bullet-active').removeClass('swiper-pagination-bullet-active');
this.container.find('.caption-item').eq(this.activeIndex).addClass('active');
this.container.find('.swiper-slide').eq(this.activeIndex).addClass('swiper-slide-active');
this.container.find('.swiper-pagination-bullet').eq(this.activeIndex).addClass('swiper-pagination-bullet-active');
//reset image transform
this.container.find('.swiper-slide img[style]').transition(0).transform('translate3d(0,0,0) scale(1)');
this.lastScale = 1;
this.currentScale = 1;
this.imageLastTransform = { x: 0, y: 0 };
this.imageTransform = { x: 0, y: 0 };
this.imageDiff = { x: 0, y: 0 };
this.imageLastDiff = { x: 0, y: 0 };
if(this.config.onSlideChange) {
this.config.onSlideChange.call(this, this.activeIndex);
}
}, this));
},
slideNext: function() {
return this.slideTo(this.activeIndex+1, 200);
},
slidePrev: function() {
return this.slideTo(this.activeIndex-1, 200);
}
}
defaults = Photos.prototype.defaults = {
items: [],
autoOpen: false, //初始化完成之后立刻打开
onOpen: undefined,
onClose: undefined,
initIndex: 0, //打开时默认显示第几张
maxScale: 3,
onSlideChange: undefined,
duration: 200, // 默认动画时间,如果没有在调用函数的时候指定,则使用这个值
tpl: '<div class="weui-photo-browser-modal">\
<div class="swiper-container">\
<div class="swiper-wrapper">\
{{#items}}\
<div class="swiper-slide">\
<div class="photo-container">\
<img src="{{image}}" />\
</div>\
</div>\
{{/items}}\
</div>\
<div class="caption">\
{{#items}}\
<div class="caption-item caption-item-{{@index}}">{{caption}}</div>\
{{/items}}\
</div>\
<div class="swiper-pagination swiper-pagination-bullets">\
{{#items}}\
<span class="swiper-pagination-bullet"></span>\
{{/items}}\
</div>\
</div>\
</div>'
}
$.photoBrowser = function(params) {
return new Photos(params);
}
}($);
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="{{ page.description }}">
<meta name="author" content="{{page.author}}">
<title>{{page.title}} | {{site.title}}</title>
<link rel="stylesheet" type="text/css" href="/assets/css/base.css" />
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;700&display=swap" rel="stylesheet">
{% for stylesheet in page.stylesheets %} <link rel="stylesheet" type="text/css" href="{{ stylesheet }}" /> {% endfor %}
</head>
<body>
{{ content }}
{% for script in page.scripts %} <script src="{{ script }}"></script> {% endfor %}
</body>
</html>
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>lambda: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="stylesheet">
<link href="../../../../../bootstrap-custom.css" rel="stylesheet">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<script src="../../../../../moment.min.js"></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="../..">clean / released</a></li>
<li class="active"><a href="">8.8.0 / lambda - 8.7.0</a></li>
</ul>
</div>
</div>
</div>
<div class="article">
<div class="row">
<div class="col-md-12">
<a href="../..">« Up</a>
<h1>
lambda
<small>
8.7.0
<span class="label label-info">Not compatible 👼</span>
</small>
</h1>
<p>📅 <em><script>document.write(moment("2021-11-30 23:51:15 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2021-11-30 23:51:15 UTC)</em><p>
<h2>Context</h2>
<pre># Packages matching: installed
# Name # Installed # Synopsis
base-bigarray base
base-num base Num library distributed with the OCaml compiler
base-ocamlbuild base OCamlbuild binary and libraries distributed with the OCaml compiler
base-threads base
base-unix base
camlp5 7.14 Preprocessor-pretty-printer of OCaml
conf-findutils 1 Virtual package relying on findutils
conf-perl 1 Virtual package relying on perl
coq 8.8.0 Formal proof management system
num 0 The Num library for arbitrary-precision integer and rational arithmetic
ocaml 4.02.3 The OCaml compiler (virtual package)
ocaml-base-compiler 4.02.3 Official 4.02.3 release
ocaml-config 1 OCaml Switch Configuration
ocamlfind 1.9.1 A library manager for OCaml
# opam file:
opam-version: "2.0"
maintainer: "Hugo.Herbelin@inria.fr"
homepage: "https://github.com/coq-contribs/lambda"
license: "LGPL 2.1"
build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/Lambda"]
depends: [
"ocaml"
"coq" {>= "8.7" & < "8.8~"}
]
tags: [ "keyword: pure lambda-calculus" "keyword: confluence" "keyword: parallel-moves lemma" "keyword: Lévy's Cube Lemma" "keyword: Church-Rosser" "keyword: residual" "keyword: Prism theorem" "category: Computer Science/Lambda Calculi" ]
authors: [ "Gérard Huet" ]
bug-reports: "https://github.com/coq-contribs/lambda/issues"
dev-repo: "git+https://github.com/coq-contribs/lambda.git"
synopsis: "Residual Theory in Lambda-Calculus"
description: """
We present the complete development in Gallina of the
residual theory of beta-reduction in pure lambda-calculus. The main
result is the Prism Theorem, and its corollary Lévy's Cube Lemma, a
strong form of the parallel-moves lemma, itself a key step towards the
confluence theorem and its usual corollaries (Church-Rosser,
uniqueness of normal forms)."""
flags: light-uninstall
url {
src: "https://github.com/coq-contribs/lambda/archive/v8.7.0.tar.gz"
checksum: "md5=4e91d279a4dd2565b76c3da824fb8022"
}
</pre>
<h2>Lint</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Dry install 🏜️</h2>
<p>Dry install with the current Coq version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam install -y --show-action coq-lambda.8.7.0 coq.8.8.0</code></dd>
<dt>Return code</dt>
<dd>5120</dd>
<dt>Output</dt>
<dd><pre>[NOTE] Package coq is already installed (current version is 8.8.0).
The following dependencies couldn't be met:
- coq-lambda -> coq < 8.8~ -> ocaml < 4.02.0
base of this switch (use `--unlock-base' to force)
Your request can't be satisfied:
- No available version of coq satisfies the constraints
No solution found, exiting
</pre></dd>
</dl>
<p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-lambda.8.7.0</code></dd>
<dt>Return code</dt>
<dd>0</dd>
</dl>
<h2>Install dependencies</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Install 🚀</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Duration</dt>
<dd>0 s</dd>
</dl>
<h2>Installation size</h2>
<p>No files were installed.</p>
<h2>Uninstall 🧹</h2>
<dl class="dl-horizontal">
<dt>Command</dt>
<dd><code>true</code></dd>
<dt>Return code</dt>
<dd>0</dd>
<dt>Missing removes</dt>
<dd>
none
</dd>
<dt>Wrong removes</dt>
<dd>
none
</dd>
</dl>
</div>
</div>
</div>
<hr/>
<div class="footer">
<p class="text-center">
Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣
</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../../../../../bootstrap.min.js"></script>
</body>
</html>
|
#!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = "Ricardo Ribeiro"
__credits__ = ["Ricardo Ribeiro"]
__license__ = "MIT"
__version__ = "0.0"
__maintainer__ = "Ricardo Ribeiro"
__email__ = "ricardojvr@gmail.com"
__status__ = "Development"
import time
from datetime import datetime, timedelta
def timeit(method):
def timed(*args, **kw):
ts = time.time()
result = method(*args, **kw)
te = time.time()
time_elapsed = datetime(1,1,1) + timedelta(seconds=(te-ts) )
print("%s: %d:%d:%d:%d;%d" % (method.__name__, time_elapsed.day-1, time_elapsed.hour, time_elapsed.minute, time_elapsed.second, time_elapsed.microsecond))
return result
return timed |
<?php session_start(); include "secure/connectstring.php";?>
<DIV id="requesttabcontent" class="tab-content">
<DIV class="tab-pane fade in" id="open">
<BR>
<table class = 'table table-hover table-condensed '>
<THEAD>
<TR>
<TD class = 'td_scholar_10 column_name'>
REQUEST DATE
</TD>
<TD class = 'td_scholar_5 column_name'>
ID #
</TD>
<TD class = 'td_scholar_15 column_name'>
SCHOLAR
</TD>
<TD class = 'td_scholar_10 column_name'>
CATEGORY
</TD>
<TD class = 'td_scholar_20 column_name'>
DETAILS
</TD>
<TD class = 'td_scholar_5 column_name'>
AMOUNT REQUESTED
</TD>
<TD class = 'td_scholar_20 column_name'>
AMOUNT APPROVED
</TD>
<TD class = 'td_scholar_15 column_name'>
AVAILABLE ACTIONS
</TD>
</TR>
</THEAD>
<TBODY>
<?php
include 'secure/connectstring.php';
$curr_user_id = $_SESSION['user_id'];
$query_open = "Select * FROM tb_request_info, tb_scholar_info, tb_config_listing, tb_config_listing_request_category WHERE tb_request_info.req_cat = tb_config_listing_request_category.id AND tb_request_info.req_type = tb_config_listing.id AND (tb_config_listing.category = 'request_type') AND tb_scholar_info.scholar_id = tb_request_info.req_scholar_id AND req_status = 'COMPLETED' AND req_ac_id = $curr_user_id ORDER BY req_id DESC, req_item_id DESC";
$result_open = mysql_query($query_open) or die(mysql_error());
while ($row_open = mysql_fetch_object($result_open))
{
$button_value = "h" . $row_open->req_id . "i" . $row_open->req_item_id . "e";
echo "<TR>";
echo "<TD>";
echo $row_open->req_date_requested;
echo "</TD>";
echo "<TD>";
echo $row_open->req_id;
echo "-";
echo $row_open->req_item_id;
echo "</TD>";
echo "<TD>";
echo $row_open->scholar_first_name;
echo " ";
echo $row_open->scholar_last_name;
echo "</TD>";
echo "<TD>";
echo $row_open->category;
echo "</TD>";
echo "<TD>";
echo "<span class='note_text'>";
echo $row_open->option;
echo "</span>";
echo "<BR>";
if ($row_open->req_description != '')
{
echo "<BR>";
echo "<span class='note_text'>Extra Comment: ";
echo $row_open->req_description;
echo "</span>";
}
if ($row_open->req_rejection_reason != '')
{
echo "<BR>";
echo "<span class='note_text'>Rejection Reason: ";
echo $row_open->req_rejection_reason;
echo "</span>";
}
echo "</TD>";
echo "<TD>";
echo $row_open->req_amount_requested;
echo "</TD>";
echo "<TD>";
echo $row_open->req_amount_approved;
echo "</TD>";
echo "<TD>
<button type='button' id='button_request_action' class='btn btn-warning button_history' value='" . $button_value . "' data-toggle='modal' data-target='#historymodal'>
view history
</button>
</TD>";
echo "</TR>";
}
?>
</TBODY>
</TABLE>
</DIV>
</DIV>
|
#!/bin/bash
# install boost libraries
sudo apt-get install -qq boost1.55
|
---
layout: post
title: A Month With Python
comments: true
tags:
- Python
- Languages
---
Recently, I attended an exceptional philly.rb meetup where two talks were presented. One was on [civic hacking](http://www.slideshare.net/WilliamJeffries1/civic-hacking-on-rails) and one was on [language exploration](http://lanyrd.com/2015/mwrc/sdkmkc/#link-cbfhz). The talk on language exploration, titled "Make up your own 'Hello, world!'", inspired me to take a short-to-medium-term look into a new language.
In Justin Campbell's talk, he discusses the importance and benefits of learning new languages. Here's the gist: take up a new language and implement a nontrivial-yet-not-crazily-complex project. Try to embrace the idioms of the language while implementing your project so that you expand your mind, gain new perspective, and bring what you've learned back into the languages you currently work in. Justin's 'Hello world' of choice is a URL shortener. It's a nontrivial project and ensures that you'll be using a not insignificant portion of the language's features in order to implement it.
I decided to try this idea and timebox learning a new language to a month. The language I chose: Python. My version of 'Hello, world!': a [sudoku](http://en.wikipedia.org/wiki/Sudoku) solver. With a sudoku solver, you can learn how to get user input in several ways: from a file, from them typing it in by hand, from a web form. Once you get the input, you need to parse and validate the puzzle to see if it's already invalid. If not, you can attempt to solve it. As far as solving goes, I kept my solver simple and used a brute force algorithm to solve the puzzle.
## Motivation
I regard Python and Ruby as the Pepsi and Coke of dynamically typed languages. They're pretty similar, or so I've heard. Before taking this journey, I only knew Ruby. I have used Ruby mostly as a scripting language to help automate tasks at my previous job. Other than that, I like to work on small side projects in Ruby. I find Ruby very enjoyable to work in.
However, I wanted to make sure I wasn't missing out on anything. I heard that Python had fantastic libraries like SciPy and NumPy for support in science and math-related tasks. After attending this talk, I saw this as a great opportunity to get a taste for a language without heavily investing in it.
## Project(s)
For my first week or so with Python, I went through a good deal of [Automating the Boring Stuff With Python](https://automatetheboringstuff.com/) by Al Sweigart. Because of my Ruby background, I didn't find much in Python too unfamiliar. Going through this book got my head around fundamentals of Python like how to name variables/classes/methods and basic syntax.
After getting my feet wet, I moved on to writing a sudoku solver that is (mostly) unit tested and is capable of solving 9 by 9 sudoku puzzles. In doing this, I gained some experience with using Python's unittest library. Here is an example of a unit test written in Python:
class SudokuPuzzleSolverTest(unittest.TestCase):
def test_is_valid(self):
puzzle = [
[
Square(1,1,1,1),
Square(4,1,2,1),
Square(3,1,3,2),
Square(2,1,4,2)
],
[
Square(3,2,1,1),
Square(2,2,2,1),
Square(4,2,3,2),
Square(1,2,4,2)
],
[
Square(4,3,1,3),
Square(1,3,2,3),
Square(2,3,3,4),
Square(3,3,4,4)
],
[
Square(2,4,1,3),
Square(3,4,2,3),
Square(1,4,3,4),
Square(4,4,4,4)
]
]
solver = Solver()
self.assertTrue(solver.is_valid(puzzle))
In my project, I represent a sudoku puzzle as a list of lists of `Square` objects. Here is my Square class:
class Square(object):
def __init__(self, number, row, column, block):
self.number = number
self.row = row
self.column = column
self.block = block
def __eq__(self, other):
return (isinstance(other, self.__class__)
and self.__dict__ == other.__dict__)
def __hash__(self):
return int(str(self.number) + str(self.row) + str(self.column) + str(self.block))
My solution has two objects: a `FileReader` and a `Solver`. The responsibility of the `FileReader` object is to read the contents of a file and convert it into my representation of a sudoku puzzle. An example file looks like this:
_ 4 3 9 _ _ 2 _ 5
8 _ 5 _ 7 _ 6 _ _
6 _ _ 5 _ _ 3 _ 9
_ _ 2 _ 8 _ _ _ _
_ 3 _ 2 5 4 _ 1 _
_ _ _ _ 1 _ 9 _ _
2 _ 9 _ _ 5 _ _ 8
_ _ 4 _ 2 _ 5 _ 7
1 _ 6 _ _ 7 4 2 _
One method reads the file, getting a list of strings as output. Another method sanitizes that list of strings, extracts the numbers (or blanks) and converts them into sudoku `Square` objects.
The responsibility of the `Solver` class is to take that list of lists and 1) make sure that the puzzle is even solvable with the squares that are already filled in and 2) to find the solution if one can be found. As said before, I use a [brute force algorithm](http://en.wikipedia.org/wiki/Sudoku_solving_algorithms#Backtracking) to solve the puzzle. Once the puzzle is solved, the solution is printed.
## Impressions of Python
As I expected, I found Python very similar to Ruby. I didn't discover anything mind-blowing like I most likely would have if I had tried something unfamiliar, like ELM, Swift, or Haskell. I found this to be a bummer, as one of the potential benefits of learning a new programming language is having your brain expanded in different ways.
I like Python. But I like Ruby better. Mostly due to personal preferences, I suppose. Ruby actually has private methods. Python has no concept of privateness. I like chaining methods. I prefer `"kitties".upcase.reverse.length` over `len("kitties".upper()[::-1])`. If I had a job where I wrote in Python, I wouldn't be upset. But Ruby would be a much more preferable alternative.
## Conclusion
I'm glad that I did this exercise, even if I found out that Python isn't a language that I would like to pursue further at this time. Justin has a really great way for looking into new programming languages and I'm glad that I tried his idea. I highly recommend taking a similar approach for learning a new programming language.
You can find the source code for my solver [here](https://github.com/chriszimmerman/python_month/tree/master/sudoku).
## References
[Make Up Your Own 'Hello, World!'](http://lanyrd.com/2015/mwrc/sdkmkc/#link-cbfhz)
[Automating the Boring Stuff With Python](https://automatetheboringstuff.com/)
|
env=~/.ssh/agent.env
agent_load_env () { test -f "$env" && . "$env" >| /dev/null ; }
agent_start () {
(umask 077; ssh-agent >| "$env")
. "$env" >| /dev/null ; }
agent_load_env
# agent_run_state: 0=agent running w/ key; 1=agent w/o key; 2= agent not running
agent_run_state=$(ssh-add -l >| /dev/null 2>&1; echo $?)
if [ ! "$SSH_AUTH_SOCK" ] || [ $agent_run_state = 2 ]; then
agent_start
fi
unset env
|
<?php
namespace Enqueue\Redis\Tests\Functional;
use Enqueue\Redis\RedisContext;
use Enqueue\Test\RedisExtension;
use PHPUnit\Framework\TestCase;
/**
* @group functional
*/
class PhpRedisCommonUseCasesTest extends TestCase
{
use CommonUseCasesTrait;
use RedisExtension;
/**
* @var RedisContext
*/
private $context;
protected function setUp(): void
{
$this->context = $this->buildPhpRedisContext();
$this->context->deleteQueue($this->context->createQueue('enqueue.test_queue'));
$this->context->deleteTopic($this->context->createTopic('enqueue.test_topic'));
}
protected function tearDown(): void
{
$this->context->close();
}
/**
* {@inheritdoc}
*/
protected function getContext()
{
return $this->context;
}
}
|
/*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered.org <http://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package org.spongepowered.mod.mixin.api.text.title;
import com.google.common.base.Optional;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.network.play.server.S45PacketTitle;
import org.spongepowered.api.text.Text;
import org.spongepowered.api.text.title.Title;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.mod.text.SpongeText;
import org.spongepowered.mod.text.title.SpongeTitle;
import java.util.Arrays;
@Mixin(value = Title.class, remap = false)
public abstract class MixinTitle implements SpongeTitle {
@Shadow protected Optional<Text> title;
@Shadow protected Optional<Text> subtitle;
@Shadow protected Optional<Integer> fadeIn;
@Shadow protected Optional<Integer> stay;
@Shadow protected Optional<Integer> fadeOut;
@Shadow protected boolean clear;
@Shadow protected boolean reset;
private S45PacketTitle[] packets;
public boolean isFlowerPot() {
return false;
}
@Override
public void send(EntityPlayerMP player) {
if (this.packets == null) {
S45PacketTitle[] packets = new S45PacketTitle[5];
int i = 0;
if (this.clear) {
packets[i++] = new S45PacketTitle(S45PacketTitle.Type.CLEAR, null);
}
if (this.reset) {
packets[i++] = new S45PacketTitle(S45PacketTitle.Type.RESET, null);
}
if (this.fadeIn.isPresent() || this.stay.isPresent() || this.fadeOut.isPresent()) {
packets[i++] = new S45PacketTitle(this.fadeIn.or(20), this.stay.or(60), this.fadeOut.or(20));
}
if (this.subtitle.isPresent()) {
packets[i++] = new S45PacketTitle(S45PacketTitle.Type.SUBTITLE, ((SpongeText) this.subtitle.get()).toComponent());
}
if (this.title.isPresent()) {
packets[i++] = new S45PacketTitle(S45PacketTitle.Type.TITLE, ((SpongeText) this.title.get()).toComponent());
}
this.packets = i == packets.length ? packets : Arrays.copyOf(packets, i);
}
for (S45PacketTitle packet : this.packets) {
player.playerNetServerHandler.sendPacket(packet);
}
}
}
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <assert.h>
#include "treestore.h"
#ifdef WIN32
#include <malloc.h>
#else
#include <alloca.h>
#endif
struct ts_node *ts_text_load(struct ts_io *io);
int ts_text_save(struct ts_node *tree, struct ts_io *io);
static long io_read(void *buf, size_t bytes, void *uptr);
static long io_write(const void *buf, size_t bytes, void *uptr);
/* ---- ts_value implementation ---- */
int ts_init_value(struct ts_value *tsv)
{
memset(tsv, 0, sizeof *tsv);
return 0;
}
void ts_destroy_value(struct ts_value *tsv)
{
int i;
free(tsv->str);
free(tsv->vec);
for(i=0; i<tsv->array_size; i++) {
ts_destroy_value(tsv->array + i);
}
free(tsv->array);
}
struct ts_value *ts_alloc_value(void)
{
struct ts_value *v = malloc(sizeof *v);
if(!v || ts_init_value(v) == -1) {
free(v);
return 0;
}
return v;
}
void ts_free_value(struct ts_value *tsv)
{
ts_destroy_value(tsv);
free(tsv);
}
int ts_copy_value(struct ts_value *dest, struct ts_value *src)
{
int i;
if(dest == src) return 0;
*dest = *src;
dest->str = 0;
dest->vec = 0;
dest->array = 0;
if(src->str) {
if(!(dest->str = malloc(strlen(src->str) + 1))) {
goto fail;
}
strcpy(dest->str, src->str);
}
if(src->vec && src->vec_size > 0) {
if(!(dest->vec = malloc(src->vec_size * sizeof *src->vec))) {
goto fail;
}
memcpy(dest->vec, src->vec, src->vec_size * sizeof *src->vec);
}
if(src->array && src->array_size > 0) {
if(!(dest->array = calloc(src->array_size, sizeof *src->array))) {
goto fail;
}
for(i=0; i<src->array_size; i++) {
if(ts_copy_value(dest->array + i, src->array + i) == -1) {
goto fail;
}
}
}
return 0;
fail:
free(dest->str);
free(dest->vec);
if(dest->array) {
for(i=0; i<dest->array_size; i++) {
ts_destroy_value(dest->array + i);
}
free(dest->array);
}
return -1;
}
#define MAKE_NUMSTR_FUNC(type, fmt) \
static char *make_##type##str(type x) \
{ \
static char scrap[128]; \
char *str; \
int sz = snprintf(scrap, sizeof scrap, fmt, x); \
if(!(str = malloc(sz + 1))) return 0; \
sprintf(str, fmt, x); \
return str; \
}
MAKE_NUMSTR_FUNC(int, "%d")
MAKE_NUMSTR_FUNC(float, "%g")
struct val_list_node {
struct ts_value val;
struct val_list_node *next;
};
int ts_set_value_str(struct ts_value *tsv, const char *str)
{
if(tsv->str) {
ts_destroy_value(tsv);
if(ts_init_value(tsv) == -1) {
return -1;
}
}
tsv->type = TS_STRING;
if(!(tsv->str = malloc(strlen(str) + 1))) {
return -1;
}
strcpy(tsv->str, str);
#if 0
/* try to parse the string and see if it fits any of the value types */
if(*str == '[' || *str == '{') {
/* try to parse as a vector */
struct val_list_node *list = 0, *tail = 0, *node;
int nelem = 0;
char endsym = *str++ + 2; /* ']' is '[' + 2 and '}' is '{' + 2 */
while(*str && *str != endsym) {
float val = strtod(str, &endp);
if(endp == str || !(node = malloc(sizeof *node))) {
break;
}
ts_init_value(&node->val);
ts_set_valuef(&node->val, val);
node->next = 0;
if(list) {
tail->next = node;
tail = node;
} else {
list = tail = node;
}
++nelem;
str = endp;
}
if(nelem && (tsv->array = malloc(nelem * sizeof *tsv->array)) &&
(tsv->vec = malloc(nelem * sizeof *tsv->vec))) {
int idx = 0;
while(list) {
node = list;
list = list->next;
tsv->array[idx] = node->val;
tsv->vec[idx] = node->val.fnum;
++idx;
free(node);
}
tsv->type = TS_VECTOR;
}
} else if((tsv->fnum = strtod(str, &endp)), endp != str) {
/* it's a number I guess... */
tsv->type = TS_NUMBER;
}
#endif
return 0;
}
int ts_set_valuei_arr(struct ts_value *tsv, int count, const int *arr)
{
int i;
if(count < 1) return -1;
if(count == 1) {
if(!(tsv->str = make_intstr(*arr))) {
return -1;
}
tsv->type = TS_NUMBER;
tsv->fnum = (float)*arr;
tsv->inum = *arr;
return 0;
}
/* otherwise it's an array, we need to create the ts_value array, and
* the simplified vector
*/
if(!(tsv->vec = malloc(count * sizeof *tsv->vec))) {
return -1;
}
tsv->vec_size = count;
for(i=0; i<count; i++) {
tsv->vec[i] = arr[i];
}
if(!(tsv->array = malloc(count * sizeof *tsv->array))) {
free(tsv->vec);
}
tsv->array_size = count;
for(i=0; i<count; i++) {
ts_init_value(tsv->array + i);
ts_set_valuef(tsv->array + i, arr[i]);
}
tsv->type = TS_VECTOR;
return 0;
}
int ts_set_valueiv(struct ts_value *tsv, int count, ...)
{
int res;
va_list ap;
va_start(ap, count);
res = ts_set_valueiv_va(tsv, count, ap);
va_end(ap);
return res;
}
int ts_set_valueiv_va(struct ts_value *tsv, int count, va_list ap)
{
int i, *vec;
if(count < 1) return -1;
if(count == 1) {
int num = va_arg(ap, int);
ts_set_valuei(tsv, num);
return 0;
}
vec = alloca(count * sizeof *vec);
for(i=0; i<count; i++) {
vec[i] = va_arg(ap, int);
}
return ts_set_valuei_arr(tsv, count, vec);
}
int ts_set_valuei(struct ts_value *tsv, int inum)
{
return ts_set_valuei_arr(tsv, 1, &inum);
}
int ts_set_valuef_arr(struct ts_value *tsv, int count, const float *arr)
{
int i;
if(count < 1) return -1;
if(count == 1) {
if(!(tsv->str = make_floatstr(*arr))) {
return -1;
}
tsv->type = TS_NUMBER;
tsv->fnum = *arr;
tsv->inum = (int)*arr;
return 0;
}
/* otherwise it's an array, we need to create the ts_value array, and
* the simplified vector
*/
if(!(tsv->vec = malloc(count * sizeof *tsv->vec))) {
return -1;
}
tsv->vec_size = count;
for(i=0; i<count; i++) {
tsv->vec[i] = arr[i];
}
if(!(tsv->array = malloc(count * sizeof *tsv->array))) {
free(tsv->vec);
}
tsv->array_size = count;
for(i=0; i<count; i++) {
ts_init_value(tsv->array + i);
ts_set_valuef(tsv->array + i, arr[i]);
}
tsv->type = TS_VECTOR;
return 0;
}
int ts_set_valuefv(struct ts_value *tsv, int count, ...)
{
int res;
va_list ap;
va_start(ap, count);
res = ts_set_valuefv_va(tsv, count, ap);
va_end(ap);
return res;
}
int ts_set_valuefv_va(struct ts_value *tsv, int count, va_list ap)
{
int i;
float *vec;
if(count < 1) return -1;
if(count == 1) {
float num = va_arg(ap, double);
ts_set_valuef(tsv, num);
return 0;
}
vec = alloca(count * sizeof *vec);
for(i=0; i<count; i++) {
vec[i] = va_arg(ap, double);
}
return ts_set_valuef_arr(tsv, count, vec);
}
int ts_set_valuef(struct ts_value *tsv, float fnum)
{
return ts_set_valuef_arr(tsv, 1, &fnum);
}
int ts_set_value_arr(struct ts_value *tsv, int count, const struct ts_value *arr)
{
int i, allnum = 1;
if(count <= 1) return -1;
if(!(tsv->array = malloc(count * sizeof *tsv->array))) {
return -1;
}
tsv->array_size = count;
for(i=0; i<count; i++) {
if(arr[i].type != TS_NUMBER) {
allnum = 0;
}
if(ts_copy_value(tsv->array + i, (struct ts_value*)arr + i) == -1) {
while(--i >= 0) {
ts_destroy_value(tsv->array + i);
}
free(tsv->array);
tsv->array = 0;
return -1;
}
}
if(allnum) {
if(!(tsv->vec = malloc(count * sizeof *tsv->vec))) {
ts_destroy_value(tsv);
return -1;
}
tsv->type = TS_VECTOR;
tsv->vec_size = count;
for(i=0; i<count; i++) {
tsv->vec[i] = tsv->array[i].fnum;
}
} else {
tsv->type = TS_ARRAY;
}
return 0;
}
int ts_set_valuev(struct ts_value *tsv, int count, ...)
{
int res;
va_list ap;
va_start(ap, count);
res = ts_set_valuev_va(tsv, count, ap);
va_end(ap);
return res;
}
int ts_set_valuev_va(struct ts_value *tsv, int count, va_list ap)
{
int i;
if(count <= 1) return -1;
if(!(tsv->array = malloc(count * sizeof *tsv->array))) {
return -1;
}
tsv->array_size = count;
for(i=0; i<count; i++) {
struct ts_value *src = va_arg(ap, struct ts_value*);
if(ts_copy_value(tsv->array + i, src) == -1) {
while(--i >= 0) {
ts_destroy_value(tsv->array + i);
}
free(tsv->array);
tsv->array = 0;
return -1;
}
}
return 0;
}
/* ---- ts_attr implementation ---- */
int ts_init_attr(struct ts_attr *attr)
{
memset(attr, 0, sizeof *attr);
return ts_init_value(&attr->val);
}
void ts_destroy_attr(struct ts_attr *attr)
{
free(attr->name);
ts_destroy_value(&attr->val);
}
struct ts_attr *ts_alloc_attr(void)
{
struct ts_attr *attr = malloc(sizeof *attr);
if(!attr || ts_init_attr(attr) == -1) {
free(attr);
return 0;
}
return attr;
}
void ts_free_attr(struct ts_attr *attr)
{
ts_destroy_attr(attr);
free(attr);
}
int ts_copy_attr(struct ts_attr *dest, struct ts_attr *src)
{
if(dest == src) return 0;
if(ts_set_attr_name(dest, src->name) == -1) {
return -1;
}
if(ts_copy_value(&dest->val, &src->val) == -1) {
ts_destroy_attr(dest);
return -1;
}
return 0;
}
int ts_set_attr_name(struct ts_attr *attr, const char *name)
{
char *n = malloc(strlen(name) + 1);
if(!n) return -1;
strcpy(n, name);
free(attr->name);
attr->name = n;
return 0;
}
/* ---- ts_node implementation ---- */
int ts_init_node(struct ts_node *node)
{
memset(node, 0, sizeof *node);
return 0;
}
void ts_destroy_node(struct ts_node *node)
{
if(!node) return;
free(node->name);
while(node->attr_list) {
struct ts_attr *attr = node->attr_list;
node->attr_list = node->attr_list->next;
ts_free_attr(attr);
}
}
struct ts_node *ts_alloc_node(void)
{
struct ts_node *node = malloc(sizeof *node);
if(!node || ts_init_node(node) == -1) {
free(node);
return 0;
}
return node;
}
void ts_free_node(struct ts_node *node)
{
ts_destroy_node(node);
free(node);
}
void ts_free_tree(struct ts_node *tree)
{
if(!tree) return;
while(tree->child_list) {
struct ts_node *child = tree->child_list;
tree->child_list = tree->child_list->next;
ts_free_tree(child);
}
ts_free_node(tree);
}
int ts_set_node_name(struct ts_node *node, const char *name)
{
char *n = malloc(strlen(name) + 1);
if(!n) return -1;
strcpy(n, name);
free(node->name);
node->name = n;
return 0;
}
void ts_add_attr(struct ts_node *node, struct ts_attr *attr)
{
attr->next = 0;
if(node->attr_list) {
node->attr_tail->next = attr;
node->attr_tail = attr;
} else {
node->attr_list = node->attr_tail = attr;
}
node->attr_count++;
}
struct ts_attr *ts_get_attr(struct ts_node *node, const char *name)
{
struct ts_attr *attr = node->attr_list;
while(attr) {
if(strcmp(attr->name, name) == 0) {
return attr;
}
attr = attr->next;
}
return 0;
}
const char *ts_get_attr_str(struct ts_node *node, const char *aname, const char *def_val)
{
struct ts_attr *attr = ts_get_attr(node, aname);
if(!attr || !attr->val.str) {
return def_val;
}
return attr->val.str;
}
float ts_get_attr_num(struct ts_node *node, const char *aname, float def_val)
{
struct ts_attr *attr = ts_get_attr(node, aname);
if(!attr || attr->val.type != TS_NUMBER) {
return def_val;
}
return attr->val.fnum;
}
int ts_get_attr_int(struct ts_node *node, const char *aname, int def_val)
{
struct ts_attr *attr = ts_get_attr(node, aname);
if(!attr || attr->val.type != TS_NUMBER) {
return def_val;
}
return attr->val.inum;
}
float *ts_get_attr_vec(struct ts_node *node, const char *aname, float *def_val)
{
struct ts_attr *attr = ts_get_attr(node, aname);
if(!attr || !attr->val.vec) {
return def_val;
}
return attr->val.vec;
}
struct ts_value *ts_get_attr_array(struct ts_node *node, const char *aname, struct ts_value *def_val)
{
struct ts_attr *attr = ts_get_attr(node, aname);
if(!attr || !attr->val.array) {
return def_val;
}
return attr->val.array;
}
void ts_add_child(struct ts_node *node, struct ts_node *child)
{
if(child->parent) {
if(child->parent == node) return;
ts_remove_child(child->parent, child);
}
child->parent = node;
child->next = 0;
if(node->child_list) {
node->child_tail->next = child;
node->child_tail = child;
} else {
node->child_list = node->child_tail = child;
}
node->child_count++;
}
int ts_remove_child(struct ts_node *node, struct ts_node *child)
{
struct ts_node dummy, *iter = &dummy;
dummy.next = node->child_list;
while(iter->next && iter->next != child) {
iter = iter->next;
}
if(!iter->next) {
return -1;
}
child->parent = 0;
iter->next = child->next;
if(!iter->next) {
node->child_tail = iter;
}
node->child_list = dummy.next;
node->child_count--;
assert(node->child_count >= 0);
return 0;
}
struct ts_node *ts_get_child(struct ts_node *node, const char *name)
{
struct ts_node *res = node->child_list;
while(res) {
if(strcmp(res->name, name) == 0) {
return res;
}
res = res->next;
}
return 0;
}
struct ts_node *ts_load(const char *fname)
{
FILE *fp;
struct ts_node *root;
if(!(fp = fopen(fname, "rb"))) {
fprintf(stderr, "ts_load: failed to open file: %s: %s\n", fname, strerror(errno));
return 0;
}
root = ts_load_file(fp);
fclose(fp);
return root;
}
struct ts_node *ts_load_file(FILE *fp)
{
struct ts_io io = {0};
io.data = fp;
io.read = io_read;
return ts_load_io(&io);
}
struct ts_node *ts_load_io(struct ts_io *io)
{
return ts_text_load(io);
}
int ts_save(struct ts_node *tree, const char *fname)
{
FILE *fp;
int res;
if(!(fp = fopen(fname, "wb"))) {
fprintf(stderr, "ts_save: failed to open file: %s: %s\n", fname, strerror(errno));
return 0;
}
res = ts_save_file(tree, fp);
fclose(fp);
return res;
}
int ts_save_file(struct ts_node *tree, FILE *fp)
{
struct ts_io io = {0};
io.data = fp;
io.write = io_write;
return ts_save_io(tree, &io);
}
int ts_save_io(struct ts_node *tree, struct ts_io *io)
{
return ts_text_save(tree, io);
}
static const char *pathtok(const char *path, char *tok)
{
int len;
const char *dot = strchr(path, '.');
if(!dot) {
strcpy(tok, path);
return 0;
}
len = dot - path;
memcpy(tok, path, len);
tok[len] = 0;
return dot + 1;
}
struct ts_attr *ts_lookup(struct ts_node *node, const char *path)
{
char *name = alloca(strlen(path) + 1);
if(!node) return 0;
if(!(path = pathtok(path, name)) || strcmp(name, node->name) != 0) {
return 0;
}
while((path = pathtok(path, name)) && (node = ts_get_child(node, name)));
if(path || !node) return 0;
return ts_get_attr(node, name);
}
const char *ts_lookup_str(struct ts_node *root, const char *path, const char *def_val)
{
struct ts_attr *attr = ts_lookup(root, path);
if(!attr || !attr->val.str) {
return def_val;
}
return attr->val.str;
}
float ts_lookup_num(struct ts_node *root, const char *path, float def_val)
{
struct ts_attr *attr = ts_lookup(root, path);
if(!attr || attr->val.type != TS_NUMBER) {
return def_val;
}
return attr->val.fnum;
}
int ts_lookup_int(struct ts_node *root, const char *path, int def_val)
{
struct ts_attr *attr = ts_lookup(root, path);
if(!attr || attr->val.type != TS_NUMBER) {
return def_val;
}
return attr->val.inum;
}
float *ts_lookup_vec(struct ts_node *root, const char *path, float *def_val)
{
struct ts_attr *attr = ts_lookup(root, path);
if(!attr || !attr->val.vec) {
return def_val;
}
return attr->val.vec;
}
struct ts_value *ts_lookup_array(struct ts_node *node, const char *path, struct ts_value *def_val)
{
struct ts_attr *attr = ts_lookup(node, path);
if(!attr || !attr->val.array) {
return def_val;
}
return attr->val.array;
}
static long io_read(void *buf, size_t bytes, void *uptr)
{
size_t sz = fread(buf, 1, bytes, uptr);
if(sz < bytes && errno) return -1;
return sz;
}
static long io_write(const void *buf, size_t bytes, void *uptr)
{
size_t sz = fwrite(buf, 1, bytes, uptr);
if(sz < bytes && errno) return -1;
return sz;
}
|
/*
* Generated by class-dump 3.3.4 (64 bit).
*
* class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by Steve Nygard.
*/
#import <iWorkImport/TSDBezierPath.h>
@interface TSDBezierPath (LivarotPrivate)
+ (id)p_booleanWithBezierPaths:(id)arg1 operation:(int)arg2;
+ (struct CGRect)p_pathToBounds:(Path_1b135553 *)arg1;
+ (id)p_pathToBezier:(Path_1b135553 *)arg1;
+ (Path_1b135553 *)p_bezierToPath:(id)arg1;
@end
|
package com.uberverse.arkcraft.common.item.ranged;
public class ItemSlingshot {
}
|
package fr.unice.spinefm.MSPLModel.impl;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import fr.unice.spinefm.roassaltracer.RoassalTracer;
public class DEAssociationEndImplDelegate extends DEAssociationEndImpl {
private static int counter = 0;
public DEAssociationEndImplDelegate() {
super();
if (this.getId() == null || this.getId().equals("")) {
this.setId("DEAEnd_"+(counter++));
}
}
public void roassalTrace(Map<String, List<String>> buffer) {
if (this.getId() == null || this.getId().equals("")) {
this.setId("DEAEnd_"+(counter++));
}
if (!buffer.containsKey(RoassalTracer.ROASSAL_DEAEND))
buffer.put(RoassalTracer.ROASSAL_DEAEND, new ArrayList<String>());
RoassalTracer.callRoassalTracer(this.getLinkMultiplicity(), buffer);
String trace = RoassalTracer.ROASSAL_DEAEND+" id=\""+this.id+"\" apply_on=["+this.apply_on.getId()+"] linkMultiplicity=["+this.linkMultiplicity.getId()+"]";
buffer.get(RoassalTracer.ROASSAL_DEAEND).add(trace);
}
@Override
public String toString() {
return "DEAEnd "+this.getId();
}
}
|
export * from './themes';
|
#include <QtGlobal>
// Automatically generated by extract_strings.py
#ifdef __GNUC__
#define UNUSED __attribute__((unused))
#else
#define UNUSED
#endif
static const char UNUSED *bitcoin_strings[] = {
QT_TRANSLATE_NOOP("bitcoin-core", ""
"%s, you must set a rpcpassword in the configuration file:\n"
" %s\n"
"It is recommended you use the following random password:\n"
"rpcuser=CryptoBoxxyrpc\n"
"rpcpassword=%s\n"
"(you do not need to remember this password)\n"
"If the file does not exist, create it with owner-readable-only file "
"permissions.\n"),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:"
"@STRENGTH)"),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Cannot obtain a lock on data directory %s. CryptoBoxxy is probably already "
"running."),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Detach block and address databases. Increases shutdown time (default: 0)"),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Error: The transaction was rejected. This might happen if some of the coins "
"in your wallet were already spent, such as if you used a copy of wallet.dat "
"and coins were spent in the copy but not marked as spent here."),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Error: This transaction requires a transaction fee of at least %s because of "
"its amount, complexity, or use of recently received funds "),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Execute command when the best block changes (%s in cmd is replaced by block "
"hash)"),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Number of seconds to keep misbehaving peers from reconnecting (default: "
"86400)"),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Unable to bind to %s on this computer. CryptoBoxxy is probably already running."),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Warning: -paytxfee is set very high. This is the transaction fee you will "
"pay if you send a transaction."),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"Warning: Please check that your computer's date and time are correct. If "
"your clock is wrong CryptoBoxxy will not work properly."),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"You must set rpcpassword=<password> in the configuration file:\n"
"%s\n"
"If the file does not exist, create it with owner-readable-only file "
"permissions."),
QT_TRANSLATE_NOOP("bitcoin-core", ""
"\n"
"SSL options: (see the Bitcoin Wiki for SSL setup instructions)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Accept command line and JSON-RPC commands"),
QT_TRANSLATE_NOOP("bitcoin-core", "Accept connections from outside (default: 1 if no -proxy or -connect)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Add a node to connect to and attempt to keep the connection open"),
QT_TRANSLATE_NOOP("bitcoin-core", "Allow DNS lookups for -addnode, -seednode and -connect"),
QT_TRANSLATE_NOOP("bitcoin-core", "Allow JSON-RPC connections from specified IP address"),
QT_TRANSLATE_NOOP("bitcoin-core", "An error occured while setting up the RPC port %i for listening: %s"),
QT_TRANSLATE_NOOP("bitcoin-core", "Bind to given address. Use [host]:port notation for IPv6"),
QT_TRANSLATE_NOOP("bitcoin-core", "CryptoBoxxy version"),
QT_TRANSLATE_NOOP("bitcoin-core", "CryptoBoxxy"),
QT_TRANSLATE_NOOP("bitcoin-core", "Cannot downgrade wallet"),
QT_TRANSLATE_NOOP("bitcoin-core", "Cannot initialize keypool"),
QT_TRANSLATE_NOOP("bitcoin-core", "Cannot resolve -bind address: '%s'"),
QT_TRANSLATE_NOOP("bitcoin-core", "Cannot resolve -externalip address: '%s'"),
QT_TRANSLATE_NOOP("bitcoin-core", "Cannot write default address"),
QT_TRANSLATE_NOOP("bitcoin-core", "Connect only to the specified node(s)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Connect through socks proxy"),
QT_TRANSLATE_NOOP("bitcoin-core", "Connect to a node to retrieve peer addresses, and disconnect"),
QT_TRANSLATE_NOOP("bitcoin-core", "Discover own IP address (default: 1 when listening and no -externalip)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Don't generate coins"),
QT_TRANSLATE_NOOP("bitcoin-core", "Done loading"),
QT_TRANSLATE_NOOP("bitcoin-core", "Error loading blkindex.dat"),
QT_TRANSLATE_NOOP("bitcoin-core", "Error loading wallet.dat"),
QT_TRANSLATE_NOOP("bitcoin-core", "Error loading wallet.dat: Wallet corrupted"),
QT_TRANSLATE_NOOP("bitcoin-core", "Error loading wallet.dat: Wallet requires newer version of CryptoBoxxy"),
QT_TRANSLATE_NOOP("bitcoin-core", "Error"),
QT_TRANSLATE_NOOP("bitcoin-core", "Error: Transaction creation failed "),
QT_TRANSLATE_NOOP("bitcoin-core", "Error: Wallet locked, unable to create transaction "),
QT_TRANSLATE_NOOP("bitcoin-core", "Error: could not start node"),
QT_TRANSLATE_NOOP("bitcoin-core", "Failed to listen on any port. Use -listen=0 if you want this."),
QT_TRANSLATE_NOOP("bitcoin-core", "Fee per KB to add to transactions you send"),
QT_TRANSLATE_NOOP("bitcoin-core", "Find peers using DNS lookup (default: 1 unless -connect)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Find peers using internet relay chat (default: 0)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Generate coins"),
QT_TRANSLATE_NOOP("bitcoin-core", "Get help for a command"),
QT_TRANSLATE_NOOP("bitcoin-core", "How many blocks to check at startup (default: 2500, 0 = all)"),
QT_TRANSLATE_NOOP("bitcoin-core", "How thorough the block verification is (0-6, default: 1)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Imports blocks from external blk000?.dat file"),
QT_TRANSLATE_NOOP("bitcoin-core", "Insufficient funds"),
QT_TRANSLATE_NOOP("bitcoin-core", "Invalid -proxy address: '%s'"),
QT_TRANSLATE_NOOP("bitcoin-core", "Invalid -tor address: '%s'"),
QT_TRANSLATE_NOOP("bitcoin-core", "Invalid amount for -paytxfee=<amount>: '%s'"),
QT_TRANSLATE_NOOP("bitcoin-core", "Invalid amount"),
QT_TRANSLATE_NOOP("bitcoin-core", "List commands"),
QT_TRANSLATE_NOOP("bitcoin-core", "Listen for JSON-RPC connections on <port> (default: 9332)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Listen for connections on <port> (default: 9333 or testnet: 19333)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Loading addresses..."),
QT_TRANSLATE_NOOP("bitcoin-core", "Loading block index..."),
QT_TRANSLATE_NOOP("bitcoin-core", "Loading wallet..."),
QT_TRANSLATE_NOOP("bitcoin-core", "Maintain at most <n> connections to peers (default: 125)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Only connect to nodes in network <net> (IPv4, IPv6 or Tor)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Options:"),
QT_TRANSLATE_NOOP("bitcoin-core", "Output extra debugging information. Implies all other -debug* options"),
QT_TRANSLATE_NOOP("bitcoin-core", "Output extra network debugging information"),
QT_TRANSLATE_NOOP("bitcoin-core", "Password for JSON-RPC connections"),
QT_TRANSLATE_NOOP("bitcoin-core", "Prepend debug output with timestamp"),
QT_TRANSLATE_NOOP("bitcoin-core", "Rescan the block chain for missing wallet transactions"),
QT_TRANSLATE_NOOP("bitcoin-core", "Rescanning..."),
QT_TRANSLATE_NOOP("bitcoin-core", "Run in the background as a daemon and accept commands"),
QT_TRANSLATE_NOOP("bitcoin-core", "Select the version of socks proxy to use (4-5, default: 5)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Send command to -server or CryptoBoxxy"),
QT_TRANSLATE_NOOP("bitcoin-core", "Send commands to node running on <ip> (default: 127.0.0.1)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Send trace/debug info to console instead of debug.log file"),
QT_TRANSLATE_NOOP("bitcoin-core", "Send trace/debug info to debugger"),
QT_TRANSLATE_NOOP("bitcoin-core", "Sending..."),
QT_TRANSLATE_NOOP("bitcoin-core", "Server certificate file (default: server.cert)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Server private key (default: server.pem)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Set database cache size in megabytes (default: 25)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Set database disk log size in megabytes (default: 100)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Set key pool size to <n> (default: 100)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Specify configuration file (default: CryptoBoxxy.conf)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Specify connection timeout (in milliseconds)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Specify data directory"),
QT_TRANSLATE_NOOP("bitcoin-core", "Specify pid file (default: CryptoBoxxy.pid)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Specify your own public address"),
QT_TRANSLATE_NOOP("bitcoin-core", "This help message"),
QT_TRANSLATE_NOOP("bitcoin-core", "Threshold for disconnecting misbehaving peers (default: 100)"),
QT_TRANSLATE_NOOP("bitcoin-core", "To use the %s option"),
QT_TRANSLATE_NOOP("bitcoin-core", "Unable to bind to %s on this computer (bind returned error %d, %s)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Unknown -socks proxy version requested: %i"),
QT_TRANSLATE_NOOP("bitcoin-core", "Unknown network specified in -onlynet: '%s'"),
QT_TRANSLATE_NOOP("bitcoin-core", "Upgrade wallet to latest format"),
QT_TRANSLATE_NOOP("bitcoin-core", "Usage:"),
QT_TRANSLATE_NOOP("bitcoin-core", "Use OpenSSL (https) for JSON-RPC connections"),
QT_TRANSLATE_NOOP("bitcoin-core", "Use UPnP to map the listening port (default: 0)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Use UPnP to map the listening port (default: 1 when listening)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Use proxy to reach tor hidden services (default: same as -proxy)"),
QT_TRANSLATE_NOOP("bitcoin-core", "Use the test network"),
QT_TRANSLATE_NOOP("bitcoin-core", "Username for JSON-RPC connections"),
QT_TRANSLATE_NOOP("bitcoin-core", "Wallet needed to be rewritten: restart CryptoBoxxy to complete"),
QT_TRANSLATE_NOOP("bitcoin-core", "Warning: Disk space is low"),
QT_TRANSLATE_NOOP("bitcoin-core", "Warning: this version is obsolete, upgrade required"),
};
|
<?php
namespace Tasks\TaskBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class StatusType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('name', 'text');
}
public function setDefaultOptions(OptionsResolverInterface $resolver)
{
$resolver->setDefaults(array(
'data_class' => 'Tasks\TaskBundle\Entity\Status'
));
}
public function getName()
{
return 'tasks_taskbundle_statustype';
}
}
|
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Debug Mode
|--------------------------------------------------------------------------
|
| When your application is in debug mode, detailed error messages with
| stack traces will be shown on every error that occurs within your
| application. If disabled, a simple generic error page is shown.
|
*/
'debug' => env('APP_DEBUG'),
/*
|--------------------------------------------------------------------------
| Application URL
|--------------------------------------------------------------------------
|
| This URL is used by the console to properly generate URLs when using
| the Artisan command line tool. You should set this to the root of
| your application so that it is used when running Artisan tasks.
|
*/
'url' => 'http://localhost',
/*
|--------------------------------------------------------------------------
| Application Timezone
|--------------------------------------------------------------------------
|
| Here you may specify the default timezone for your application, which
| will be used by the PHP date and date-time functions. We have gone
| ahead and set this to a sensible default for you out of the box.
|
*/
'timezone' => 'UTC',
/*
|--------------------------------------------------------------------------
| Application Locale Configuration
|--------------------------------------------------------------------------
|
| The application locale determines the default locale that will be used
| by the translation service provider. You are free to set this value
| to any of the locales which will be supported by the application.
|
*/
'locale' => 'en',
/*
|--------------------------------------------------------------------------
| Application Fallback Locale
|--------------------------------------------------------------------------
|
| The fallback locale determines the locale to use when the current one
| is not available. You may change the value to correspond to any of
| the language folders that are provided through your application.
|
*/
'fallback_locale' => 'en',
/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| This key is used by the Illuminate encrypter service and should be set
| to a random, 32 character string, otherwise these encrypted strings
| will not be safe. Please do this before deploying an application!
|
*/
'key' => env('APP_KEY', 'SomeRandomString'),
'cipher' => MCRYPT_RIJNDAEL_128,
/*
|--------------------------------------------------------------------------
| Logging Configuration
|--------------------------------------------------------------------------
|
| Here you may configure the log settings for your application. Out of
| the box, Laravel uses the Monolog PHP logging library. This gives
| you a variety of powerful log handlers / formatters to utilize.
|
| Available Settings: "single", "daily", "syslog", "errorlog"
|
*/
'log' => 'daily',
/*
|--------------------------------------------------------------------------
| Autoloaded Service Providers
|--------------------------------------------------------------------------
|
| The service providers listed here will be automatically loaded on the
| request to your application. Feel free to add your own services to
| this array to grant expanded functionality to your applications.
|
*/
'providers' => [
/*
* Laravel Framework Service Providers...
*/
'Illuminate\Foundation\Providers\ArtisanServiceProvider',
'Illuminate\Auth\AuthServiceProvider',
'Illuminate\Bus\BusServiceProvider',
'Illuminate\Cache\CacheServiceProvider',
'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider',
'Illuminate\Routing\ControllerServiceProvider',
'Illuminate\Cookie\CookieServiceProvider',
'Illuminate\Database\DatabaseServiceProvider',
'Illuminate\Encryption\EncryptionServiceProvider',
'Illuminate\Filesystem\FilesystemServiceProvider',
'Illuminate\Foundation\Providers\FoundationServiceProvider',
'Illuminate\Hashing\HashServiceProvider',
'Illuminate\Mail\MailServiceProvider',
'Illuminate\Pagination\PaginationServiceProvider',
'Illuminate\Pipeline\PipelineServiceProvider',
'Illuminate\Queue\QueueServiceProvider',
'Illuminate\Redis\RedisServiceProvider',
'Illuminate\Auth\Passwords\PasswordResetServiceProvider',
'Illuminate\Session\SessionServiceProvider',
'Illuminate\Translation\TranslationServiceProvider',
'Illuminate\Validation\ValidationServiceProvider',
'Illuminate\View\ViewServiceProvider',
'Illuminate\Html\HtmlServiceProvider',
/*
* Application Service Providers...
*/
'App\Providers\AppServiceProvider',
'App\Providers\BusServiceProvider',
'App\Providers\ConfigServiceProvider',
'App\Providers\EventServiceProvider',
'App\Providers\RouteServiceProvider',
],
/*
|--------------------------------------------------------------------------
| Class Aliases
|--------------------------------------------------------------------------
|
| This array of class aliases will be registered when this application
| is started. However, feel free to register as many as you wish as
| the aliases are "lazy" loaded so they don't hinder performance.
|
*/
'aliases' => [
'App' => 'Illuminate\Support\Facades\App',
'Artisan' => 'Illuminate\Support\Facades\Artisan',
'Auth' => 'Illuminate\Support\Facades\Auth',
'Blade' => 'Illuminate\Support\Facades\Blade',
'Bus' => 'Illuminate\Support\Facades\Bus',
'Cache' => 'Illuminate\Support\Facades\Cache',
'Config' => 'Illuminate\Support\Facades\Config',
'Cookie' => 'Illuminate\Support\Facades\Cookie',
'Crypt' => 'Illuminate\Support\Facades\Crypt',
'DB' => 'Illuminate\Support\Facades\DB',
'Eloquent' => 'Illuminate\Database\Eloquent\Model',
'Event' => 'Illuminate\Support\Facades\Event',
'File' => 'Illuminate\Support\Facades\File',
'Hash' => 'Illuminate\Support\Facades\Hash',
'Input' => 'Illuminate\Support\Facades\Input',
'Inspiring' => 'Illuminate\Foundation\Inspiring',
'Lang' => 'Illuminate\Support\Facades\Lang',
'Log' => 'Illuminate\Support\Facades\Log',
'Mail' => 'Illuminate\Support\Facades\Mail',
'Password' => 'Illuminate\Support\Facades\Password',
'Queue' => 'Illuminate\Support\Facades\Queue',
'Redirect' => 'Illuminate\Support\Facades\Redirect',
'Redis' => 'Illuminate\Support\Facades\Redis',
'Request' => 'Illuminate\Support\Facades\Request',
'Response' => 'Illuminate\Support\Facades\Response',
'Route' => 'Illuminate\Support\Facades\Route',
'Schema' => 'Illuminate\Support\Facades\Schema',
'Session' => 'Illuminate\Support\Facades\Session',
'Storage' => 'Illuminate\Support\Facades\Storage',
'URL' => 'Illuminate\Support\Facades\URL',
'Validator' => 'Illuminate\Support\Facades\Validator',
'View' => 'Illuminate\Support\Facades\View',
'Form'=> 'Illuminate\Html\FormFacade',
'HTML'=> 'Illuminate\Html\HtmlFacade',
],
];
|
module Dumpdb
class Db
DEFAULT_VALUE = ''.freeze
def initialize(dump_file_name = nil, values = nil)
dump_file_name = dump_file_name || 'dump.output'
@values = dumpdb_symbolize_keys(values)
[:host, :port, :user, :pw, :db, :output_root].each do |key|
@values[key] ||= DEFAULT_VALUE
end
@values[:output_dir] = dumpdb_build_output_dir(
self.output_root,
self.host,
self.db
)
@values[:dump_file] = File.join(self.output_dir, dump_file_name)
end
def to_hash; @values; end
def method_missing(meth, *args, &block)
if @values.has_key?(meth.to_sym)
@values[meth.to_sym]
else
super
end
end
def respond_to?(meth)
@values.has_key?(meth.to_sym) || super
end
private
def dumpdb_build_output_dir(output_root, host, database)
dir_name = dumpdb_build_output_dir_name(host, database)
if output_root && !output_root.to_s.empty?
File.join(output_root, dir_name)
else
dir_name
end
end
def dumpdb_build_output_dir_name(host, database)
[host, database, Time.now.to_f].map(&:to_s).reject(&:empty?).join("__")
end
def dumpdb_symbolize_keys(values)
(values || {}).inject({}) do |h, (k, v)|
h.merge(k.to_sym => v)
end
end
end
end
|
module My
module Github
module Projects
VERSION = "1.0.0"
end
end
end
|
import { Component, Input } from '@angular/core';
import { Config } from '../../config';
@Component({
selector: 'host-template',
styles: [`
textarea {
width: 400px;
height: 100px;
}
`],
template: `
<div *ngIf="hostfile">
<h3>Hosts file:</h3>
<input type="checkbox" [(ngModel)]="hostfile.isActive" /><span>Replace host files on all nodes with that template:</span><br />
<textarea [disabled]="!hostfile.isActive" [(ngModel)]="hostfile.template"></textarea>
</div>
`
})
export class HostTemplateComponent {
@Input()
hostfile: any;
} |
/*
* f_sdp.c -- USB HID Serial Download Protocol
*
* Copyright (C) 2017 Toradex
* Author: Stefan Agner <stefan.agner@toradex.com>
*
* This file implements the Serial Download Protocol (SDP) as specified in
* the i.MX 6 Reference Manual. The SDP is a USB HID based protocol and
* allows to download images directly to memory. The implementation
* works with the imx_loader (imx_usb) USB client software on host side.
*
* Not all commands are implemented, e.g. WRITE_REGISTER, DCD_WRITE and
* SKIP_DCD_HEADER are only stubs.
*
* Parts of the implementation are based on f_dfu and f_thor.
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <errno.h>
#include <common.h>
#include <console.h>
#include <malloc.h>
#include <linux/usb/ch9.h>
#include <linux/usb/gadget.h>
#include <linux/usb/composite.h>
#include <asm/io.h>
#include <g_dnl.h>
#include <sdp.h>
#include <spl.h>
#include <image.h>
#include <imximage.h>
#include <watchdog.h>
#define HID_REPORT_ID_MASK 0x000000ff
/*
* HID class requests
*/
#define HID_REQ_GET_REPORT 0x01
#define HID_REQ_GET_IDLE 0x02
#define HID_REQ_GET_PROTOCOL 0x03
#define HID_REQ_SET_REPORT 0x09
#define HID_REQ_SET_IDLE 0x0A
#define HID_REQ_SET_PROTOCOL 0x0B
#define HID_USAGE_PAGE_LEN 76
struct hid_report {
u8 usage_page[HID_USAGE_PAGE_LEN];
} __packed;
#define SDP_READ_REGISTER 0x0101
#define SDP_WRITE_REGISTER 0x0202
#define SDP_WRITE_FILE 0x0404
#define SDP_ERROR_STATUS 0x0505
#define SDP_DCD_WRITE 0x0a0a
#define SDP_JUMP_ADDRESS 0x0b0b
#define SDP_SKIP_DCD_HEADER 0x0c0c
#define SDP_SECURITY_CLOSED 0x12343412
#define SDP_SECURITY_OPEN 0x56787856
#define SDP_WRITE_FILE_COMPLETE 0x88888888
#define SDP_WRITE_REGISTER_COMPLETE 0x128A8A12
#define SDP_SKIP_DCD_HEADER_COMPLETE 0x900DD009
#define SDP_ERROR_IMXHEADER 0x000a0533
#define SDP_COMMAND_LEN 16
struct sdp_command {
u16 cmd;
u32 addr;
u8 format;
u32 cnt;
u32 data;
u8 rsvd;
} __packed;
enum sdp_state {
SDP_STATE_IDLE,
SDP_STATE_RX_DCD_DATA,
SDP_STATE_RX_FILE_DATA,
SDP_STATE_TX_SEC_CONF,
SDP_STATE_TX_SEC_CONF_BUSY,
SDP_STATE_TX_REGISTER,
SDP_STATE_TX_REGISTER_BUSY,
SDP_STATE_TX_STATUS,
SDP_STATE_TX_STATUS_BUSY,
SDP_STATE_JUMP,
};
struct f_sdp {
struct usb_function usb_function;
struct usb_descriptor_header **function;
u8 altsetting;
enum sdp_state state;
enum sdp_state next_state;
u32 dnl_address;
u32 dnl_bytes_remaining;
u32 jmp_address;
bool always_send_status;
u32 error_status;
/* EP0 request */
struct usb_request *req;
/* EP1 IN */
struct usb_ep *in_ep;
struct usb_request *in_req;
bool configuration_done;
};
static struct f_sdp *sdp_func;
static inline struct f_sdp *func_to_sdp(struct usb_function *f)
{
return container_of(f, struct f_sdp, usb_function);
}
static struct usb_interface_descriptor sdp_intf_runtime = {
.bLength = sizeof(sdp_intf_runtime),
.bDescriptorType = USB_DT_INTERFACE,
.bAlternateSetting = 0,
.bNumEndpoints = 1,
.bInterfaceClass = USB_CLASS_HID,
.bInterfaceSubClass = 0,
.bInterfaceProtocol = 0,
/* .iInterface = DYNAMIC */
};
/* HID configuration */
static struct usb_class_hid_descriptor sdp_hid_desc = {
.bLength = sizeof(sdp_hid_desc),
.bDescriptorType = USB_DT_CS_DEVICE,
.bcdCDC = __constant_cpu_to_le16(0x0110),
.bCountryCode = 0,
.bNumDescriptors = 1,
.bDescriptorType0 = USB_DT_HID_REPORT,
.wDescriptorLength0 = HID_USAGE_PAGE_LEN,
};
static struct usb_endpoint_descriptor in_desc = {
.bLength = USB_DT_ENDPOINT_SIZE,
.bDescriptorType = USB_DT_ENDPOINT, /*USB_DT_CS_ENDPOINT*/
.bEndpointAddress = 1 | USB_DIR_IN,
.bmAttributes = USB_ENDPOINT_XFER_INT,
.wMaxPacketSize = 64,
.bInterval = 1,
};
static struct usb_descriptor_header *sdp_runtime_descs[] = {
(struct usb_descriptor_header *)&sdp_intf_runtime,
(struct usb_descriptor_header *)&sdp_hid_desc,
(struct usb_descriptor_header *)&in_desc,
NULL,
};
/* This is synchronized with what the SoC implementation reports */
static struct hid_report sdp_hid_report = {
.usage_page = {
0x06, 0x00, 0xff, /* Usage Page */
0x09, 0x01, /* Usage (Pointer?) */
0xa1, 0x01, /* Collection */
0x85, 0x01, /* Report ID */
0x19, 0x01, /* Usage Minimum */
0x29, 0x01, /* Usage Maximum */
0x15, 0x00, /* Local Minimum */
0x26, 0xFF, 0x00, /* Local Maximum? */
0x75, 0x08, /* Report Size */
0x95, 0x10, /* Report Count */
0x91, 0x02, /* Output Data */
0x85, 0x02, /* Report ID */
0x19, 0x01, /* Usage Minimum */
0x29, 0x01, /* Usage Maximum */
0x15, 0x00, /* Local Minimum */
0x26, 0xFF, 0x00, /* Local Maximum? */
0x75, 0x80, /* Report Size 128 */
0x95, 0x40, /* Report Count */
0x91, 0x02, /* Output Data */
0x85, 0x03, /* Report ID */
0x19, 0x01, /* Usage Minimum */
0x29, 0x01, /* Usage Maximum */
0x15, 0x00, /* Local Minimum */
0x26, 0xFF, 0x00, /* Local Maximum? */
0x75, 0x08, /* Report Size 8 */
0x95, 0x04, /* Report Count */
0x81, 0x02, /* Input Data */
0x85, 0x04, /* Report ID */
0x19, 0x01, /* Usage Minimum */
0x29, 0x01, /* Usage Maximum */
0x15, 0x00, /* Local Minimum */
0x26, 0xFF, 0x00, /* Local Maximum? */
0x75, 0x08, /* Report Size 8 */
0x95, 0x40, /* Report Count */
0x81, 0x02, /* Input Data */
0xc0
},
};
static const char sdp_name[] = "Serial Downloader Protocol";
/*
* static strings, in UTF-8
*/
static struct usb_string strings_sdp_generic[] = {
[0].s = sdp_name,
{ } /* end of list */
};
static struct usb_gadget_strings stringtab_sdp_generic = {
.language = 0x0409, /* en-us */
.strings = strings_sdp_generic,
};
static struct usb_gadget_strings *sdp_generic_strings[] = {
&stringtab_sdp_generic,
NULL,
};
static inline void *sdp_ptr(u32 val)
{
return (void *)(uintptr_t)val;
}
static void sdp_rx_command_complete(struct usb_ep *ep, struct usb_request *req)
{
struct f_sdp *sdp = req->context;
int status = req->status;
u8 *data = req->buf;
u8 report = data[0];
if (status != 0) {
pr_err("Status: %d\n", status);
return;
}
if (report != 1) {
pr_err("Unexpected report %d\n", report);
return;
}
struct sdp_command *cmd = req->buf + 1;
debug("%s: command: %04x, addr: %08x, cnt: %u\n",
__func__, be16_to_cpu(cmd->cmd),
be32_to_cpu(cmd->addr), be32_to_cpu(cmd->cnt));
switch (be16_to_cpu(cmd->cmd)) {
case SDP_READ_REGISTER:
sdp->always_send_status = false;
sdp->error_status = 0x0;
sdp->state = SDP_STATE_TX_SEC_CONF;
sdp->dnl_address = be32_to_cpu(cmd->addr);
sdp->dnl_bytes_remaining = be32_to_cpu(cmd->cnt);
sdp->next_state = SDP_STATE_TX_REGISTER;
printf("Reading %d registers at 0x%08x... ",
sdp->dnl_bytes_remaining, sdp->dnl_address);
break;
case SDP_WRITE_FILE:
sdp->always_send_status = true;
sdp->error_status = SDP_WRITE_FILE_COMPLETE;
sdp->state = SDP_STATE_RX_FILE_DATA;
sdp->dnl_address = be32_to_cpu(cmd->addr);
sdp->dnl_bytes_remaining = be32_to_cpu(cmd->cnt);
sdp->next_state = SDP_STATE_IDLE;
printf("Downloading file of size %d to 0x%08x... ",
sdp->dnl_bytes_remaining, sdp->dnl_address);
break;
case SDP_ERROR_STATUS:
sdp->always_send_status = true;
sdp->error_status = 0;
sdp->state = SDP_STATE_TX_SEC_CONF;
sdp->next_state = SDP_STATE_IDLE;
break;
case SDP_DCD_WRITE:
sdp->always_send_status = true;
sdp->error_status = SDP_WRITE_REGISTER_COMPLETE;
sdp->state = SDP_STATE_RX_DCD_DATA;
sdp->dnl_bytes_remaining = be32_to_cpu(cmd->cnt);
sdp->next_state = SDP_STATE_IDLE;
break;
case SDP_JUMP_ADDRESS:
sdp->always_send_status = false;
sdp->error_status = 0;
sdp->jmp_address = be32_to_cpu(cmd->addr);
sdp->state = SDP_STATE_TX_SEC_CONF;
sdp->next_state = SDP_STATE_JUMP;
break;
case SDP_SKIP_DCD_HEADER:
sdp->always_send_status = true;
sdp->error_status = SDP_SKIP_DCD_HEADER_COMPLETE;
/* Ignore command, DCD not supported anyway */
sdp->state = SDP_STATE_TX_SEC_CONF;
sdp->next_state = SDP_STATE_IDLE;
break;
default:
pr_err("Unknown command: %04x\n", be16_to_cpu(cmd->cmd));
}
}
static void sdp_rx_data_complete(struct usb_ep *ep, struct usb_request *req)
{
struct f_sdp *sdp = req->context;
int status = req->status;
u8 *data = req->buf;
u8 report = data[0];
int datalen = req->length - 1;
if (status != 0) {
pr_err("Status: %d\n", status);
return;
}
if (report != 2) {
pr_err("Unexpected report %d\n", report);
return;
}
if (sdp->dnl_bytes_remaining < datalen) {
/*
* Some USB stacks require to send a complete buffer as
* specified in the HID descriptor. This leads to longer
* transfers than the file length, no problem for us.
*/
sdp->dnl_bytes_remaining = 0;
} else {
sdp->dnl_bytes_remaining -= datalen;
}
if (sdp->state == SDP_STATE_RX_FILE_DATA) {
memcpy(sdp_ptr(sdp->dnl_address), req->buf + 1, datalen);
sdp->dnl_address += datalen;
}
if (sdp->dnl_bytes_remaining)
return;
printf("done\n");
switch (sdp->state) {
case SDP_STATE_RX_FILE_DATA:
sdp->state = SDP_STATE_TX_SEC_CONF;
break;
case SDP_STATE_RX_DCD_DATA:
sdp->state = SDP_STATE_TX_SEC_CONF;
break;
default:
pr_err("Invalid state: %d\n", sdp->state);
}
}
static void sdp_tx_complete(struct usb_ep *ep, struct usb_request *req)
{
struct f_sdp *sdp = req->context;
int status = req->status;
if (status != 0) {
pr_err("Status: %d\n", status);
return;
}
switch (sdp->state) {
case SDP_STATE_TX_SEC_CONF_BUSY:
/* Not all commands require status report */
if (sdp->always_send_status || sdp->error_status)
sdp->state = SDP_STATE_TX_STATUS;
else
sdp->state = sdp->next_state;
break;
case SDP_STATE_TX_STATUS_BUSY:
sdp->state = sdp->next_state;
break;
case SDP_STATE_TX_REGISTER_BUSY:
if (sdp->dnl_bytes_remaining)
sdp->state = SDP_STATE_TX_REGISTER;
else
sdp->state = SDP_STATE_IDLE;
break;
default:
pr_err("Wrong State: %d\n", sdp->state);
sdp->state = SDP_STATE_IDLE;
break;
}
debug("%s complete --> %d, %d/%d\n", ep->name,
status, req->actual, req->length);
}
static int sdp_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl)
{
struct usb_gadget *gadget = f->config->cdev->gadget;
struct usb_request *req = f->config->cdev->req;
struct f_sdp *sdp = f->config->cdev->req->context;
u16 len = le16_to_cpu(ctrl->wLength);
u16 w_value = le16_to_cpu(ctrl->wValue);
int value = 0;
u8 req_type = ctrl->bRequestType & USB_TYPE_MASK;
debug("w_value: 0x%04x len: 0x%04x\n", w_value, len);
debug("req_type: 0x%02x ctrl->bRequest: 0x%02x sdp->state: %d\n",
req_type, ctrl->bRequest, sdp->state);
if (req_type == USB_TYPE_STANDARD) {
if (ctrl->bRequest == USB_REQ_GET_DESCRIPTOR) {
/* Send HID report descriptor */
value = min(len, (u16) sizeof(sdp_hid_report));
memcpy(req->buf, &sdp_hid_report, value);
sdp->configuration_done = true;
}
}
if (req_type == USB_TYPE_CLASS) {
int report = w_value & HID_REPORT_ID_MASK;
/* HID (SDP) request */
switch (ctrl->bRequest) {
case HID_REQ_SET_REPORT:
switch (report) {
case 1:
value = SDP_COMMAND_LEN + 1;
req->complete = sdp_rx_command_complete;
break;
case 2:
value = len;
req->complete = sdp_rx_data_complete;
break;
}
}
}
if (value >= 0) {
req->length = value;
req->zero = value < len;
value = usb_ep_queue(gadget->ep0, req, 0);
if (value < 0) {
debug("ep_queue --> %d\n", value);
req->status = 0;
}
}
return value;
}
static int sdp_bind(struct usb_configuration *c, struct usb_function *f)
{
struct usb_gadget *gadget = c->cdev->gadget;
struct usb_composite_dev *cdev = c->cdev;
struct f_sdp *sdp = func_to_sdp(f);
int rv = 0, id;
id = usb_interface_id(c, f);
if (id < 0)
return id;
sdp_intf_runtime.bInterfaceNumber = id;
struct usb_ep *ep;
/* allocate instance-specific endpoints */
ep = usb_ep_autoconfig(gadget, &in_desc);
if (!ep) {
rv = -ENODEV;
goto error;
}
sdp->in_ep = ep; /* Store IN EP for enabling @ setup */
cdev->req->context = sdp;
error:
return rv;
}
static void sdp_unbind(struct usb_configuration *c, struct usb_function *f)
{
free(sdp_func);
sdp_func = NULL;
}
static struct usb_request *alloc_ep_req(struct usb_ep *ep, unsigned length)
{
struct usb_request *req;
req = usb_ep_alloc_request(ep, 0);
if (!req)
return req;
req->length = length;
req->buf = memalign(CONFIG_SYS_CACHELINE_SIZE, length);
if (!req->buf) {
usb_ep_free_request(ep, req);
req = NULL;
}
return req;
}
static struct usb_request *sdp_start_ep(struct usb_ep *ep)
{
struct usb_request *req;
req = alloc_ep_req(ep, 64);
debug("%s: ep:%p req:%p\n", __func__, ep, req);
if (!req)
return NULL;
memset(req->buf, 0, req->length);
req->complete = sdp_tx_complete;
return req;
}
static int sdp_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
{
struct f_sdp *sdp = func_to_sdp(f);
struct usb_composite_dev *cdev = f->config->cdev;
int result;
debug("%s: intf: %d alt: %d\n", __func__, intf, alt);
result = usb_ep_enable(sdp->in_ep, &in_desc);
if (result)
return result;
sdp->in_req = sdp_start_ep(sdp->in_ep);
sdp->in_req->context = sdp;
sdp->in_ep->driver_data = cdev; /* claim */
sdp->altsetting = alt;
sdp->state = SDP_STATE_IDLE;
return 0;
}
static int sdp_get_alt(struct usb_function *f, unsigned intf)
{
struct f_sdp *sdp = func_to_sdp(f);
return sdp->altsetting;
}
static void sdp_disable(struct usb_function *f)
{
struct f_sdp *sdp = func_to_sdp(f);
usb_ep_disable(sdp->in_ep);
if (sdp->in_req) {
free(sdp->in_req);
sdp->in_req = NULL;
}
}
static int sdp_bind_config(struct usb_configuration *c)
{
int status;
if (!sdp_func) {
sdp_func = memalign(CONFIG_SYS_CACHELINE_SIZE, sizeof(*sdp_func));
if (!sdp_func)
return -ENOMEM;
}
memset(sdp_func, 0, sizeof(*sdp_func));
sdp_func->usb_function.name = "sdp";
sdp_func->usb_function.hs_descriptors = sdp_runtime_descs;
sdp_func->usb_function.descriptors = sdp_runtime_descs;
sdp_func->usb_function.bind = sdp_bind;
sdp_func->usb_function.unbind = sdp_unbind;
sdp_func->usb_function.set_alt = sdp_set_alt;
sdp_func->usb_function.get_alt = sdp_get_alt;
sdp_func->usb_function.disable = sdp_disable;
sdp_func->usb_function.strings = sdp_generic_strings;
sdp_func->usb_function.setup = sdp_setup;
status = usb_add_function(c, &sdp_func->usb_function);
return status;
}
int sdp_init(int controller_index)
{
printf("SDP: initialize...\n");
while (!sdp_func->configuration_done) {
if (ctrlc()) {
puts("\rCTRL+C - Operation aborted.\n");
return 1;
}
WATCHDOG_RESET();
usb_gadget_handle_interrupts(controller_index);
}
return 0;
}
static u32 sdp_jump_imxheader(void *address)
{
flash_header_v2_t *headerv2 = address;
ulong (*entry)(void);
if (headerv2->header.tag != IVT_HEADER_TAG) {
printf("Header Tag is not an IMX image\n");
return SDP_ERROR_IMXHEADER;
}
printf("Jumping to 0x%08x\n", headerv2->entry);
entry = sdp_ptr(headerv2->entry);
entry();
/* The image probably never returns hence we won't reach that point */
return 0;
}
static void sdp_handle_in_ep(void)
{
u8 *data = sdp_func->in_req->buf;
u32 status;
int datalen;
switch (sdp_func->state) {
case SDP_STATE_TX_SEC_CONF:
debug("Report 3: HAB security\n");
data[0] = 3;
status = SDP_SECURITY_OPEN;
memcpy(&data[1], &status, 4);
sdp_func->in_req->length = 5;
usb_ep_queue(sdp_func->in_ep, sdp_func->in_req, 0);
sdp_func->state = SDP_STATE_TX_SEC_CONF_BUSY;
break;
case SDP_STATE_TX_STATUS:
debug("Report 4: Status\n");
data[0] = 4;
memcpy(&data[1], &sdp_func->error_status, 4);
sdp_func->in_req->length = 65;
usb_ep_queue(sdp_func->in_ep, sdp_func->in_req, 0);
sdp_func->state = SDP_STATE_TX_STATUS_BUSY;
break;
case SDP_STATE_TX_REGISTER:
debug("Report 4: Register Values\n");
data[0] = 4;
datalen = sdp_func->dnl_bytes_remaining;
if (datalen > 64)
datalen = 64;
memcpy(&data[1], sdp_ptr(sdp_func->dnl_address), datalen);
sdp_func->in_req->length = 65;
sdp_func->dnl_bytes_remaining -= datalen;
sdp_func->dnl_address += datalen;
usb_ep_queue(sdp_func->in_ep, sdp_func->in_req, 0);
sdp_func->state = SDP_STATE_TX_REGISTER_BUSY;
break;
case SDP_STATE_JUMP:
printf("Jumping to header at 0x%08x\n", sdp_func->jmp_address);
status = sdp_jump_imxheader(sdp_ptr(sdp_func->jmp_address));
/* If imx header fails, try some U-Boot specific headers */
if (status) {
#ifdef CONFIG_SPL_BUILD
/* In SPL, allow jumps to U-Boot images */
struct spl_image_info spl_image = {};
spl_parse_image_header(&spl_image,
(struct image_header *)sdp_func->jmp_address);
jump_to_image_no_args(&spl_image);
#else
/* In U-Boot, allow jumps to scripts */
source(sdp_func->jmp_address, "script@1");
#endif
}
sdp_func->next_state = SDP_STATE_IDLE;
sdp_func->error_status = status;
/* Only send Report 4 if there was an error */
if (status)
sdp_func->state = SDP_STATE_TX_STATUS;
else
sdp_func->state = SDP_STATE_IDLE;
break;
default:
break;
};
}
void sdp_handle(int controller_index)
{
printf("SDP: handle requests...\n");
while (1) {
if (ctrlc()) {
puts("\rCTRL+C - Operation aborted.\n");
return;
}
WATCHDOG_RESET();
usb_gadget_handle_interrupts(controller_index);
sdp_handle_in_ep();
}
}
int sdp_add(struct usb_configuration *c)
{
int id;
id = usb_string_id(c->cdev);
if (id < 0)
return id;
strings_sdp_generic[0].id = id;
sdp_intf_runtime.iInterface = id;
debug("%s: cdev: %p gadget: %p gadget->ep0: %p\n", __func__,
c->cdev, c->cdev->gadget, c->cdev->gadget->ep0);
return sdp_bind_config(c);
}
DECLARE_GADGET_BIND_CALLBACK(usb_dnl_sdp, sdp_add);
|
package uk.gov.dvsa.motr.web.formatting;
import com.amazonaws.util.StringUtils;
import uk.gov.dvsa.motr.remote.vehicledetails.VehicleDetails;
public class MakeModelFormatter {
private static String UNKNOWN_VALUE = "UNKNOWN";
public static String getMakeModelString(String make, String model, String makeInFull) {
boolean makeValid = !StringUtils.isNullOrEmpty(make) && !make.equalsIgnoreCase(UNKNOWN_VALUE);
boolean modelValid = !StringUtils.isNullOrEmpty(model) && !model.equalsIgnoreCase(UNKNOWN_VALUE);
if (!makeValid && !modelValid) {
if (StringUtils.isNullOrEmpty(makeInFull)) {
return "";
}
return makeInFull.toUpperCase();
}
if (makeValid && !modelValid) {
return make.toUpperCase();
}
if (!makeValid && modelValid) {
return model.toUpperCase();
}
return (make + " " + model).toUpperCase();
}
public static String getMakeModelDisplayStringFromVehicleDetails(VehicleDetails vehicleDetails, String endDelimeter) {
String makeModel =
MakeModelFormatter.getMakeModelString(vehicleDetails.getMake(), vehicleDetails.getModel(), vehicleDetails.getMakeInFull());
if (endDelimeter == null) {
return makeModel;
}
return makeModel.equals("") ? makeModel : makeModel + endDelimeter;
}
}
|
This example shows how to integrate the TypeScript type system into Next.js. Since TypeScript is supported out of the box with Next.js, all we have to do is to install TypeScript.
This example shows how to properly export and import typescript types without getting the
```js
Attempted import error: 'TypeA' is not exported from './package-1'.
```
error as raised in [vercel/next.js#7882](https://github.com/vercel/next.js/issues/7882).
## Useful links
[Add import type and export type support to TypeScript](https://github.com/babel/babel/pull/11171)
|
/* Material Icons Font (for MD theme) */
@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: url(../fonts/MaterialIcons-Regular.eot);
src: local('Material Icons'),
local('MaterialIcons-Regular'),
url(../fonts/MaterialIcons-Regular.woff2) format('woff2'),
url(../fonts/MaterialIcons-Regular.woff) format('woff'),
url(../fonts/MaterialIcons-Regular.ttf) format('truetype');
}
.material-icons {
font-family: 'Material Icons';
font-weight: normal;
font-style: normal;
font-size: 24px;
display: inline-block;
line-height: 1;
text-transform: none;
letter-spacing: normal;
word-wrap: normal;
white-space: nowrap;
direction: ltr;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;
font-feature-settings: 'liga';
}
/* Framework7 Icons Font (for iOS theme) */
@font-face {
font-family: 'Framework7 Icons';
font-style: normal;
font-weight: 400;
src: url("../fonts/Framework7Icons-Regular.eot");
src: url("../fonts/Framework7Icons-Regular.woff2") format("woff2"),
url("../fonts/Framework7Icons-Regular.woff") format("woff"),
url("../fonts/Framework7Icons-Regular.ttf") format("truetype");
}
.f7-icons {
font-family: 'Framework7 Icons';
font-weight: normal;
font-style: normal;
font-size: 28px;
line-height: 1;
letter-spacing: normal;
text-transform: none;
display: inline-block;
white-space: nowrap;
word-wrap: normal;
direction: ltr;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;
-webkit-font-feature-settings: "liga";
-moz-font-feature-settings: "liga=1";
-moz-font-feature-settings: "liga";
font-feature-settings: "liga";
text-align: center;
}
|
define(function(){
var config = {};
config.app = 'pregapp'; // Your App name
//config.jqueryMobileTheme = "/francine/css/theme.css";
//config.jqueryMobilePath="/francine/js/jquery.mobile-1.2.0";
//config.jqueryMobileCss="/francine/css/mobile.css";
config.extraScripts = [];
config.quickformsEnding = ""; // "" or ".asp"
config.defaultPageTransition = "none"; // slide, pop, none
config.defaultDialogTransition = "none"; // slide, pop, none
return config;
}); |
<?php
/* WebProfilerBundle:Profiler:toolbar_redirect.html.twig */
class __TwigTemplate_76d5100a24a797f44c4c78afddbb3ca32310a1272d9ad67227fbe6b4fb04239d extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
try {
$this->parent = $this->env->loadTemplate("TwigBundle::layout.html.twig");
} catch (Twig_Error_Loader $e) {
$e->setTemplateFile($this->getTemplateName());
$e->setTemplateLine(1);
throw $e;
}
$this->blocks = array(
'title' => array($this, 'block_title'),
'body' => array($this, 'block_body'),
);
}
protected function doGetParent(array $context)
{
return "TwigBundle::layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = array())
{
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_title($context, array $blocks = array())
{
echo "Redirection Intercepted";
}
// line 5
public function block_body($context, array $blocks = array())
{
// line 6
echo " <div class=\"sf-reset\">
<div class=\"block-exception\">
<h1>This request redirects to <a href=\"";
// line 8
echo twig_escape_filter($this->env, (isset($context["location"]) ? $context["location"] : $this->getContext($context, "location")), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, (isset($context["location"]) ? $context["location"] : $this->getContext($context, "location")), "html", null, true);
echo "</a>.</h1>
<p>
<small>
The redirect was intercepted by the web debug toolbar to help debugging.
For more information, see the \"intercept-redirects\" option of the Profiler.
</small>
</p>
</div>
</div>
";
}
public function getTemplateName()
{
return "WebProfilerBundle:Profiler:toolbar_redirect.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 50 => 8, 46 => 6, 43 => 5, 37 => 3, 11 => 1,);
}
}
|
---
layout: post
title: "思念"
date: 2017-03-04 11:00
author: "107"
categories: 随感
tags: 情感
excerpt: 午夜醒来,失声的落泪
---
* content
{:toc}
想到母亲就失声的落泪,
记不清几个夜晚,午夜睡梦中自己无声的流泪,
如果人故去了,如果有灵魂,不受肉身限制,母亲会不会来看我,我能感受到吗,
心剧烈的悸动,是你吗,母亲?
|
<!--
id: 21965645
link: http://tumblr.atmos.org/post/21965645/simple-thoughts-git-plugin-for-cruisecontrolrb
slug: simple-thoughts-git-plugin-for-cruisecontrolrb
date: Wed Dec 19 2007 06:58:47 GMT-0800 (PST)
publish: 2007-12-019
tags:
title: Simple thoughts | Git Plugin for CruiseControlRB
-->
Simple thoughts | Git Plugin for CruiseControlRB
================================================
[http://saimonmoore.net/2007/12/19/git-plugin-for-cruisecontrolrb](http://saimonmoore.net/2007/12/19/git-plugin-for-cruisecontrolrb)
|
describe('A Feature', function() {
it('A Scenario', function() {
// ### Given missing code
});
});
|
<?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014 - 2015, British Columbia Institute of Technology
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*
* @package CodeIgniter
* @author EllisLab Dev Team
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/)
* @copyright Copyright (c) 2014 - 2015, British Columbia Institute of Technology (http://bcit.ca/)
* @license http://opensource.org/licenses/MIT MIT License
* @link http://codeigniter.com
* @since Version 3.0.0
* @filesource
*/
defined('BASEPATH') OR exit('No direct script access allowed');
$lang['migration_none_found'] = 'No migrations were found.';
$lang['migration_not_found'] = 'No migration could be found with the version number: %s.';
$lang['migration_sequence_gap'] = 'There is a gap in the migration sequence near version number: %s.';
$lang['migration_multiple_version'] = 'There are multiple migrations with the same version number: %s.';
$lang['migration_class_doesnt_exist'] = 'The migration class "%s" could not be found.';
$lang['migration_missing_up_method'] = 'The migration class "%s" is missing an "up" method.';
$lang['migration_missing_down_method'] = 'The migration class "%s" is missing a "down" method.';
$lang['migration_invalid_filename'] = 'Migration "%s" has an invalid filename.';
|
using System.Reflection;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("Typeset.Domain.Git")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyCulture("")]
[assembly: Guid("664be847-82ba-4cdf-8812-82aa1aa8cbd0")]
|
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-top-nav',
templateUrl: './top-nav.component.html',
styleUrls: ['./top-nav.component.css']
})
export class TopNavComponent implements OnInit {
title = 'Blogging Application';
constructor() { }
ngOnInit() {
}
}
|
<!DOCTYPE html>
<html lang="ru">
<head>
<title><?=$seo['SeoTitle']?></title>
<meta name="description" content="<?=$seo['SeoDescription']?>" />
<meta name="keywords" content="<?=$seo['SeoKeyword']?>" />
<meta name="author" content="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="format-detection" content="telephone=no" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="/files/site/site/css/jquery.bxslider.css"/>
<link rel="stylesheet" type="text/css" href="/files/site/site/css/animations.css"/>
<link rel="stylesheet" type="text/css" href="/files/site/site/css/flexslider.css"/>
<link rel="stylesheet" type="text/css" href="/files/site/site/css/jquery.fancybox.css"/>
<link rel="stylesheet" type="text/css" href="/files/site/site/css/grid.css"/>
<link rel="stylesheet" type="text/css" href="/files/site/site/css/style.css"/>
<link rel="stylesheet" type="text/css" href="/files/site/base/css/froala.css"/>
<script src="/files/site/site/js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="https://maps.googleapis.com/maps/api/js?sensor=false&language=ru"></script>
<script src="/files/site/site/js/jquery.bxslider.js" type="text/javascript" charset="utf-8"></script>
<script src="/files/site/site/js/jquery.flexslider.js" type="text/javascript" charset="utf-8"></script>
<script src="/files/site/site/js/jquery.fancybox.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/files/site/all/func.js"></script>
<script src="/files/site/site/js/script.js" type="text/javascript" charset="utf-8"></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if IE]>
<link rel="stylesheet" href="/files/site/site/css/css_ie.css" type="text/css" media="screen">
<script src="/files/site/site/js/html5shiv.js" type="text/javascript" charset="utf-8"></script>
<script src="/files/site/site/js/respond.js" type="text/javascript" charset="utf-8"></script>
<script src="/files/site/site/js/PIE.js" type="text/javascript" charset="utf-8"></script>
<![endif]-->
</head>
<body>
<!--<div id="anchor2"></div>-->
<div id="allBox">
<div id="all">
<section class="header header-in" style="<?=$fon?>">
<div class="nav-wrap">
<div class="wrapper">
<div class="nav">
<?= $menu ?>
</div>
<div class="logo-field">
<div class="logo">
<a href="/"><img src="/files/site/site/images/logo.png" alt=""></a>
</div>
<div class="phone">
<i class="icon icon-phone"></i><?=$vstavka[0]['Description']?>
</div>
</div>
</div>
</div>
</section>
<div class="clear"></div>
|
//
// c_language_demo.c
// swift4demo
//
// Created by hzyuxiaohua on 2017/6/29.
// Copyright © 2017年 XY Network Co., Ltd. All rights reserved.
//
#include "c_language_demo.h"
#include "stdlib.h"
int uninitialized_value_demo() {
int a;
return a + 42;
}
int dereference_demo(int *value) {
int tmp = *value;
if (value == NULL) {
return 0;
}
return tmp;
}
int use_after_scope_demo() {
int *pointer = NULL;
if (1 > 0) {
int tmp = 2017;
pointer = &tmp;
tmp = 2018;
}
printf("use_after_scope_result: %d\n", *pointer);
*pointer = 2016;
return 0;
}
uint32_t *pointer_to_random_integer_value() {
uint32_t random = arc4random_uniform(10000);
// unsafe pointer never store local variable
return &random;
}
int use_after_return_demo() {
uint32_t *pointer = pointer_to_random_integer_value();
printf("use_after_return_demo_result: %d\n", *pointer);
return 0;
}
|

===========
[](https://gitter.im/Dogfalo/materialize?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Materialize, a CSS Framework based on material design
### Current Version : v0.96.0
## Sass Requirements:
- Ruby Sass 3.3+, LibSass 0.6+
## Supported Browsers:
Chrome 35+, Firefox 31+, Safari 7+, IE 10+
## Contributing
- Compiling Files
- `npm install`
- `grunt monitor`, this will compile .scss, .js., .jade files
- Documentation
- If you notice an error in the documentation, please edit the corresponding .html page under jade/page-contents/.
- Issues
- If you have an issue please make sure you document the problems in depth. One line issues with no explanations will be closed.
- Feature Requests
- We like feature requests but make sure that it can be seen within the goals of the project and not just something you need individually. Also you should try and give as much examples and details about the new feature as possible.
- Code Examples
- Use this [codepen](http://codepen.io/Dogfalo/pen/xbzPQV) to illustrate your problem.
## Changelog
- v0.96.0 (April 1, 2015)
- **Toasts, transitions, scrollfire added under Materialize namespace**
- **Dropdown is now created as a child of its parent**
- Collapsibles supports nesting
- Modal Bottom Sheet added
- Indeterminate Checkboxes added
- New Checkbox Style Added
- Text Inputs supports placeholder/readonly
- Google Inbox-like Collapsible added
- Text Character Counter added
- Waves no longer breaks on SVG's
- v0.95.3 (Feb 25, 2015)
- Parallax image loading / responsiveness fixes
- Date picker supports month/year as dropdown
- Dismissable collection items
- Avatar collection items
- Pagination Added
- ScrollFire fixes
- v0.95.2 (Feb 10, 2015)
- Switches added
- Transition animation functions added
- ScrollFire Plugin added (fires functions dependent on scroll position)
- Responsive Video tag added
- Custom File Input Button added
- Modals has a fixed footer option
- SideNav implementation changed (needs 2 UL menus)
- Slider Responsive Fixes
- v0.95.1 (Jan 26, 2015)
- Sidenav Fixes
- Dropdown alignment/gutter options added
- Parallax fixes
- JavaScript Initialization no longer needed for many components
- HTML options through data-attributes
- Site colors can be defined through Primary and Secondary color in Sass
- Tables no longer resonsive by default
- v0.95.0 (Jan 17, 2015)
- Drag Out Menu fixed with Touch Interactions
- Toasts minor bugfix
- OL element has default styling
- Fullscreen Slider added
- Footer requires page-footer class
- Progress Bars added
- Form autofill support added
- Responsive Tables support added
- Scrollspy Plugin released
- Waves events are now delegated / behavior enhanced
# dise-ocreditos
|
import Fs from 'fs'
import Path from 'path'
import XmlParser from 'xml2js'
const Zip = require('node-zip')
/**
* This represents an entry in the zip file. If the entry comes from an existing archive previously loaded, the content will be automatically decompressed/converted first.
* @see https://stuk.github.io/jszip/documentation/api_zipobject.html
*/
export type ZipObject = {
/** the absolute path of the file. */
name: string
/** `true` if this is a directory. */
dir: boolean
/** the last modification date. */
date: Date
/** the comment for this file. */
comment: string
/** The UNIX permissions of the file, if any. 16 bits number. */
unixPermissions: number
/** The DOS permissions of the file, if any. 6 bits number. */
dosPermissions: number
/** the options of the file. The available options. */
options: {
compression: (
name: string,
data:
| string
| ArrayBuffer
| Uint8Array
| Buffer
| Blob
| Promise<any>
| WritableStream
) => void
}
/** Files. */
files: any
}
/** Sheet data. */
export type SheetData = {
/** Sheet name. */
name: string
/** Data obtained by converting the XML of the sheet to the JavaScript Object. */
sheet: any
/** Data obtained by converting the XML of the shared strings to the JavaScript Object. */
strings?: any
}
/** Sheet size. */
export type SheetSize = {
/** Row of sheet. */
row: {
/** Minimum value of row. */
min: number
/** Maximum value of row. */
max: number
}
/** Column of sheet. */
col: {
/** Minimum value of column. */
min: number
/** Maximum value of column. */
max: number
}
}
/** It is a cell in a sheet. */
export type Cell = {
/** Row position. */
row: number
/** Column position. */
col: number
/** Type.. */
type: string
/** Value string. */
value: string
}
/** It is the position of the cell. */
type Position = {
/** Row position. */
row: number
/** Column position. */
col: number
}
/** The maximum number of sheets (Excel 97). */
const MaxSheets = 256
/** Defines the file path in the XLSX. */
const FilePaths = {
WorkBook: 'xl/workbook.xml',
SharedStrings: 'xl/sharedStrings.xml',
SheetBase: 'xl/worksheets/sheet'
}
/**
* Create a empty cells.
* @param rows Rows count.
* @param cols Columns count.
* @return Cells.
*/
export const createEmptyCells = (rows: number, cols: number): string[][] => {
const arr = []
for (let i = 0; i < rows; ++i) {
const row = []
for (let j = 0; j < cols; ++j) {
row.push('')
}
arr.push(row)
}
return arr
}
/**
* Get a cells from a rows.
* @param rows Rows.
* @return Cells.
*/
export const getCells = (rows: any[]): Cell[] => {
const cells: Cell[] = []
rows
.filter((row) => {
return row.c && 0 < row.c.length
})
.forEach((row) => {
row.c.forEach((cell: any) => {
const position = getPosition(cell.$.r)
cells.push({
row: position.row,
col: position.col,
type: cell.$.t ? cell.$.t : '',
value: cell.v && 0 < cell.v.length ? cell.v[0] : ''
})
})
})
return cells
}
/**
* Get the coordinates of the cell.
* @param text Position text. Such as "A1" and "U109".
* @return Position.
*/
export const getPosition = (text: string): Position => {
// 'A1' -> [A, 1]
const units = text.split(/([0-9]+)/)
if (units.length < 2) {
return { row: 0, col: 0 }
}
return {
row: parseInt(units[1], 10),
col: numOfColumn(units[0])
}
}
/**
* Get a sheet name.
* @param zip Extract data of XLSX (Zip) file.
* @param index Index of sheet. Range of from 1 to XlsxExtractor.count.
* @returns Sheet name.
*/
const getSheetName = async (zip: ZipObject, index: number): Promise<string> => {
const root = await parseXML(zip.files[FilePaths.WorkBook].asText())
let name = ''
if (
root &&
root.workbook &&
root.workbook.sheets &&
0 < root.workbook.sheets.length &&
root.workbook.sheets[0].sheet
) {
root.workbook.sheets[0].sheet.some((sheet: any) => {
const id = Number(sheet.$.sheetId)
if (id === index) {
name = sheet.$.name || ''
return true
}
return false
})
}
return name
}
/**
* Get a sheet data.
* @param zip Extract data of XLSX (Zip) file.
* @param index Index of sheet. Range of from 1 to XlsxExtractor.count.
* @returns Sheet data.
*/
export const getSheetData = async (
zip: ZipObject,
index: number
): Promise<SheetData> => {
const data: SheetData = {
name: '',
sheet: {}
}
data.name = await getSheetName(zip, index)
data.sheet = await parseXML(
zip.files[FilePaths.SheetBase + index + '.xml'].asText()
)
if (zip.files[FilePaths.SharedStrings]) {
data.strings = await parseXML(zip.files[FilePaths.SharedStrings].asText())
}
return data
}
/**
* Gets the number of sheets.
* @param zip Extract data of XLSX (Zip) file.
* @returns Number of sheets
*/
export const getSheetInnerCount = (zip: ZipObject): number => {
let count = 0
for (let i = 1; i < MaxSheets; ++i) {
const path = FilePaths.SheetBase + i + '.xml'
if (!zip.files[path]) {
break
}
++count
}
return count
}
/**
* Get the range of the sheet.
* @param sheet Sheet data.
* @param cells Cells.
* @return Range.
*/
export const getSheetSize = (sheet: any, cells: any[]): SheetSize => {
// Get the there if size is defined
if (
sheet &&
sheet.worksheet &&
sheet.worksheet.dimension &&
0 <= sheet.worksheet.dimension.length
) {
const range = sheet.worksheet.dimension[0].$.ref.split(':')
if (range.length === 2) {
const min = getPosition(range[0])
const max = getPosition(range[1])
return {
row: { min: min.row, max: max.row },
col: { min: min.col, max: max.col }
}
}
}
const ascend = (a: number, b: number) => a - b
const rows = cells.map((cell) => cell.row).sort(ascend)
const cols = cells.map((cell) => cell.col).sort(ascend)
return {
row: { min: rows[0], max: rows[rows.length - 1] },
col: { min: cols[0], max: cols[cols.length - 1] }
}
}
/**
* Convert the column text to number.
* @param text Column text, such as A" and "AA".
* @return Column number, otherwise -1.
*/
export const numOfColumn = (text: string): number => {
const letters = [
'',
'A',
'B',
'C',
'D',
'E',
'F',
'G',
'H',
'I',
'J',
'K',
'L',
'M',
'N',
'O',
'P',
'Q',
'R',
'S',
'T',
'U',
'V',
'W',
'X',
'Y',
'Z'
]
const col = text.trim().split('')
let num = 0
for (let i = 0, max = col.length; i < max; ++i) {
num *= 26
num += letters.indexOf(col[i])
}
return num
}
/**
* Parse the `r` element of XML.
* @param r `r` elements.
* @return Parse result.
*/
export const parseR = (r: any[]): string => {
let value = ''
r.forEach((obj) => {
if (obj.t) {
value += parseT(obj.t)
}
})
return value
}
/**
* Parse the `t` element of XML.
* @param t `t` elements.
* @return Parse result.
*/
export const parseT = (t: any[]): string => {
let value = ''
t.forEach((obj) => {
switch (typeof obj) {
case 'string':
value += obj
break
// The value of xml:space="preserve" is stored in the underscore
case 'object':
if (obj._ && typeof obj._ === 'string') {
value += obj._
}
break
default:
break
}
})
return value
}
/**
* Parse the XML text.
* @param xml XML text.
* @return XML parse task.
*/
export const parseXML = (xml: string): Promise<any> => {
return new Promise((resolve, reject) => {
XmlParser.parseString(xml, (err, obj) => {
return err ? reject(err) : resolve(obj)
})
})
}
/**
* Extract a zip file.
* @param path Zip file path.
* @return If success zip object, otherwise null.
* @throws Failed to expand the XLSX file.
*/
export const unzip = (path: string): ZipObject => {
try {
const file = Fs.readFileSync(Path.resolve(path))
return Zip(file)
} catch (err) {
throw new Error('Failed to expand the XLSX file.')
}
}
/**
* Get a value from the cell strings.
*
* @param str Cell strings.
*
* @return Value.
*/
export const valueFromStrings = (str: any): string => {
let value = ''
const keys = Object.keys(str)
keys.forEach((key) => {
switch (key) {
case 't':
value += parseT(str[key])
break
case 'r':
value += parseR(str[key])
break
default:
break
}
})
return value
}
|
# Cron UI
CronUI provides a simple easy-to-use form for users to specify recurrent events, translated to cron strings.
CronUI is an adaption of the [jquery-cron](https://github.com/shawnchin/jquery-cron/) project.
CronUI is completely standalone and has no dependencies.
Visit the [CronUI page](https://snird.github.io/CronUI/) for docs and examples.
## Usage
```javascript
// Create the ui by initiating new instance of `CronUI`.
// Pass in an element selector or DOM element by itself to render
// the form in, and options object.
recurrentEventForm = new CronUI('.container', {initial: '* * * * *'});
// With DOM element
var el = document.querySelector('.my-container');
new CronUI(el, {initial: '0 5 * * *'});
```
## Functionality
Currently CronUI only supports a subset of cron abilities.
- Only support digits
- No commas for multiple entries
These are the possible combinations so far:
- Every minute : * * * * *
- Every hour : ? * * * *
- Every day : ? ? * * *
- Every week : ? ? * * ?
- Every month : ? ? ? * *
- Every year : ? ? ? ? * |
/*
* The MIT License
*
* Copyright (c) 2004-2009, Sun Microsystems, Inc., Kohsuke Kawaguchi, Jorg Heymans
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package hudson.model;
import junit.framework.TestCase;
import org.jvnet.hudson.test.HudsonTestCase;
import java.io.IOException;
import java.util.GregorianCalendar;
import java.util.List;
/**
* @author Kohsuke Kawaguchi
*/
public class RunTest extends HudsonTestCase {
private List<? extends Run<?,?>.Artifact> createArtifactList(String... paths) throws Exception {
FreeStyleProject prj = createFreeStyleProject();
FreeStyleBuild r = prj.scheduleBuild2(0).get();
Run<FreeStyleProject,FreeStyleBuild>.ArtifactList list = r.new ArtifactList();
for (String p : paths) {
list.add(r.new Artifact(p,p,p,String.valueOf(p.length()),"n"+list.size())); // Assuming all test inputs don't need urlencoding
}
list.computeDisplayName();
return list;
}
public void testArtifactListDisambiguation1() throws Exception {
List<? extends Run<?, ?>.Artifact> a = createArtifactList("a/b/c.xml", "d/f/g.xml", "h/i/j.xml");
assertEquals(a.get(0).getDisplayPath(),"c.xml");
assertEquals(a.get(1).getDisplayPath(),"g.xml");
assertEquals(a.get(2).getDisplayPath(),"j.xml");
}
public void testArtifactListDisambiguation2() throws Exception {
List<? extends Run<?, ?>.Artifact> a = createArtifactList("a/b/c.xml", "d/f/g.xml", "h/i/g.xml");
assertEquals(a.get(0).getDisplayPath(),"c.xml");
assertEquals(a.get(1).getDisplayPath(),"f/g.xml");
assertEquals(a.get(2).getDisplayPath(),"i/g.xml");
}
public void testArtifactListDisambiguation3() throws Exception {
List<? extends Run<?, ?>.Artifact> a = createArtifactList("a.xml","a/a.xml");
assertEquals(a.get(0).getDisplayPath(),"a.xml");
assertEquals(a.get(1).getDisplayPath(),"a/a.xml");
}
}
|
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magento.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magento.com for more information.
*
* @category Mage
* @package Mage_Core
* @copyright Copyright (c) 2006-2019 Magento, Inc. (http://www.magento.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
class Mage_Core_Model_Layout_Element extends Varien_Simplexml_Element
{
public function prepare($args)
{
switch ($this->getName()) {
case 'layoutUpdate':
break;
case 'layout':
break;
case 'update':
break;
case 'remove':
break;
case 'block':
$this->prepareBlock($args);
break;
case 'reference':
$this->prepareReference($args);
break;
case 'action':
$this->prepareAction($args);
break;
default:
$this->prepareActionArgument($args);
break;
}
$children = $this->children();
foreach ($this as $child) {
$child->prepare($args);
}
return $this;
}
public function getBlockName()
{
$tagName = (string)$this->getName();
if ('block'!==$tagName && 'reference'!==$tagName || empty($this['name'])) {
return false;
}
return (string)$this['name'];
}
public function prepareBlock($args)
{
$type = (string)$this['type'];
$name = (string)$this['name'];
$className = (string)$this['class'];
if (!$className) {
$className = Mage::getConfig()->getBlockClassName($type);
$this->addAttribute('class', $className);
}
$parent = $this->getParent();
if (isset($parent['name']) && !isset($this['parent'])) {
$this->addAttribute('parent', (string)$parent['name']);
}
return $this;
}
public function prepareReference($args)
{
return $this;
}
public function prepareAction($args)
{
$parent = $this->getParent();
$this->addAttribute('block', (string)$parent['name']);
return $this;
}
public function prepareActionArgument($args)
{
return $this;
}
}
|
/**
* FlowrouteNumbersLib
*
* This file was automatically generated for flowroute by APIMATIC BETA v2.0 on 02/08/2016
*/
var configuration = {
//The base Uri for API calls
BASEURI : "https://api.flowroute.com/v1",
//Tech Prefix
//TODO: Replace the Username with an appropriate value
username : "TODO: Replace",
//API Secret Key
//TODO: Replace the Password with an appropriate value
password : "TODO: Replace"
};
module.exports = configuration;
|
##Alcatraz - Xcode 的包管理器
[Alcatraz](http://alcatraz.io) : Windows / Package Manager
第一步:关闭 Xcode
第二步:如果你之前安装过Alcatraz,卸载它:
```
rm -rf ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin
```
第三步:最关键的一步,运行命令:
```
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID
sudo xcode-select --reset
```
第四步:安装 Alcatraz
```
curl -fsSL https://raw.github.com/supermarin/Alcatraz/master/Scripts/install.sh | sh
```
##Injection - 即时编译和运行插件
Xcode => Windows => Package Manager => Search => Injection
|
using System;
using umbraco.cms.businesslogic.datatype;
using umbraco.interfaces;
using Umbraco.Core;
namespace InfoCaster.Umbraco.TextFieldPreviewable.DataType
{
public class DataType : BaseDataType, IDataType
{
static readonly Guid _guid = new Guid("7a5355a6-684c-4813-9c0d-8487852bd08b");
IDataEditor _editor;
IData _baseData;
IDataPrevalue _prevalueeditor;
public override IDataEditor DataEditor
{
get
{
if (_editor == null)
_editor = new DataEditor(Data, ((PrevalueEditor)PrevalueEditor).Configuration);
return _editor;
}
}
public override IData Data
{
get
{
if (_baseData == null)
_baseData = new DefaultData(this);
return _baseData;
}
}
public override Guid Id
{
get { return _guid; }
}
public override string DataTypeName
{
get { return "Textbox Previewable"; }
}
public override IDataPrevalue PrevalueEditor
{
get
{
if (_prevalueeditor == null)
_prevalueeditor = new PrevalueEditor(this);
return _prevalueeditor;
}
}
}
} |
from app.app_and_db import app
from flask import Blueprint, jsonify, render_template
import datetime
import random
import requests
dashboard = Blueprint('dashboard', __name__)
cumtd_endpoint = 'https://developer.cumtd.com/api/{0}/{1}/{2}'
cumtd_endpoint = cumtd_endpoint.format('v2.2', 'json', 'GetDeparturesByStop')
wunderground_endpoint = 'http://api.wunderground.com/api/{0}/hourly/q/{1}/{2}.json'
wunderground_endpoint = wunderground_endpoint.format(app.config['WUNDERGROUND_API_KEY'], 'IL', 'Champaign')
@dashboard.route('/')
def index():
time=datetime.datetime.now().time().strftime('%I:%M').lstrip('0')
return render_template('pages/dashboard.html', image_number=random.randrange(1, 9), time=time)
#Query no more than once a minute
@dashboard.route('/bus')
def bus_schedule():
params = {'key' : app.config['CUMTD_API_KEY'],
'stop_id' : 'GRN4TH',
'count' : '5'}
response = requests.get(cumtd_endpoint, params=params)
json = response.json()
departures = []
for departure in json['departures'] :
if departure['trip']['direction'] == 'East':
departures.append(departure)
return jsonify(departures=departures)
#Query no more than once every three minutes
@dashboard.route('/weather')
def weather():
response = requests.get(wunderground_endpoint)
json = response.json()
return jsonify(json)
app.register_blueprint(dashboard, url_prefix='/dashboard') |
<#
.SYNOPSIS
Short description
.DESCRIPTION
Long description
.EXAMPLE
Example of how to use this cmdlet
.EXAMPLE
Another example of how to use this cmdlet
.INPUTS
Inputs to this cmdlet (if any)
.OUTPUTS
Output from this cmdlet (if any)
.NOTES
General notes
.COMPONENT
The component this cmdlet belongs to
.ROLE
The role this cmdlet belongs to
.FUNCTIONALITY
The functionality that best describes this cmdlet
.LINK
https://campus.barracuda.com/product/webapplicationfirewall/doc/73698479/rest-api-version-3-v3/
#>
function Get-ServiceBasicSecurity {
[CmdletBinding()]
[Alias()]
[OutputType([PSCustomObject])]
Param (
# WebApplicationName help description
[Parameter(Mandatory = $true, ValueFromPipeline = $true)]
[ValidateNotNullOrEmpty()]
[String[]]
$WebApplicationName,
# Parameters help description
[Parameter(Mandatory = $false)]
[ValidateSet('client-ip-addr-header', 'ignore-case,mode', 'rate-control-pool', 'rate-control-status', 'trusted-hosts-action', 'trusted-hosts-group', 'web-firewall-log-level', 'web-firewall-policy')]
[String[]]
$Parameters
)
process {
try {
$params = @{}
if ($PSBoundParameters.ContainsKey('Parameters')) {
$params.parameters = $Parameters -join ','
}
foreach ($name in $WebApplicationName) {
Invoke-API -Path $('/restapi/v3/services/{0}/basic-security' -f $name) -Method Get -Parameters $params
}
} catch {
if ($_.Exception -is [System.Net.WebException]) {
Write-Verbose "ExceptionResponse: `n$($_ | Get-ExceptionResponse)`n"
if ($_.Exception.Response.StatusCode -ne 404) {
throw
}
} else {
throw
}
}
}
} |
CREATE TABLE IF NOT EXISTS /*_*/pleesher_cache (
`user_id` VARCHAR(255) NOT NULL,
`key` VARCHAR(50) NOT NULL,
`id` VARCHAR(50) NOT NULL,
`data` MEDIUMTEXT NOT NULL,
`obsolete` BIT(1) NOT NULL,
PRIMARY KEY (`user_id`, `key`, `id`)
)
COLLATE='utf8_general_ci'
ENGINE=InnoDB
DATA DIRECTORY='/var/lib/mysql/innodb_data'; |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="de">
<head>
<title>Uses of Class org.eclipse.emf.cdo.server.db.mapping.ColumnTypeModifier.Factory (CDO Model Repository Documentation)</title>
<meta name="date" content="">
<link rel="stylesheet" type="text/css" href="../../../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Uses of Class org.eclipse.emf.cdo.server.db.mapping.ColumnTypeModifier.Factory (CDO Model Repository Documentation)";
}
}
catch(err) {
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../../../../org/eclipse/emf/cdo/server/db/mapping/ColumnTypeModifier.Factory.html" title="class in org.eclipse.emf.cdo.server.db.mapping">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../../index.html?org/eclipse/emf/cdo/server/db/mapping/class-use/ColumnTypeModifier.Factory.html" target="_top">Frames</a></li>
<li><a href="ColumnTypeModifier.Factory.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h2 title="Uses of Class org.eclipse.emf.cdo.server.db.mapping.ColumnTypeModifier.Factory" class="title">Uses of Class<br>org.eclipse.emf.cdo.server.db.mapping.ColumnTypeModifier.Factory</h2>
</div>
<div class="classUseContainer">No usage of org.eclipse.emf.cdo.server.db.mapping.ColumnTypeModifier.Factory</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../../overview-summary.html">Overview</a></li>
<li><a href="../package-summary.html">Package</a></li>
<li><a href="../../../../../../../../org/eclipse/emf/cdo/server/db/mapping/ColumnTypeModifier.Factory.html" title="class in org.eclipse.emf.cdo.server.db.mapping">Class</a></li>
<li class="navBarCell1Rev">Use</li>
<li><a href="../../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev</li>
<li>Next</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../../../index.html?org/eclipse/emf/cdo/server/db/mapping/class-use/ColumnTypeModifier.Factory.html" target="_top">Frames</a></li>
<li><a href="ColumnTypeModifier.Factory.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small><i>Copyright (c) 2011-2015 Eike Stepper (Berlin, Germany) and others.</i></small></p>
</body>
</html>
|
body {
background-color: #def;
}
.file_listing{
style: 'width: 15%';
}
#file_contents {
overflow: auto;
position: absolute;
width: 80%;
height: 90%;
top: 2px;
right: 10px;
background-color: white;
border: 1px solid #222;
padding: 7px;
} |
package main
import (
"fmt"
"net/http"
)
func main() {
var m map[string]string
fmt.Printf("len(m):%2d\n", len(m)) // 0
for k, _ := range m { // nil map iterates zero times
fmt.Println(k)
}
v, ok := m["2"]
fmt.Printf("v:%s, ok:%v\n\n", v, ok) // zero(string), false
// m["foo"] = "bar" // panic: assignment to entry in nil map
//----------------------------------------------------------
//
req, err := NewGet(
"http://www.baidu.com",
map[string]string{
"USER-AGENT": "golang/gopher", // 末尾,或}
}, // 末尾,或)
)
fmt.Println("_______________________")
fmt.Println(req.Method) // GET
fmt.Println(req.URL) // http://www.baidu.com
fmt.Println(req.Header) // map[User-Agent:[golang/gopher]]
fmt.Println(err) // nil
fmt.Println("_______________________")
//----------------------------------------------------------
req2, err := NewGet("http://www.baidu.com", map[string]string{}) // ok
fmt.Println(req2)
//----------------------------------------------------------
// nil maps are valid empty maps
req3, err := NewGet("http://www.baidu.com", nil) // ok
fmt.Println(req3)
//----------------------------------------------------------
// make map
var m1 map[int]int // nil map
fmt.Println(m1 == nil)
fmt.Println("=============")
m2 := make(map[int]int, 0) // not nil map, but empty map
fmt.Println(m2 == nil)
m2[5] = 55 // write to empty map is ok
fmt.Println(m2) // map[5:55]
}
func NewGet(url string, headers map[string]string) (*http.Request, error) {
req, err := http.NewRequest(http.MethodGet, url, nil)
if err != nil {
return nil, err
}
for k, v := range headers {
req.Header.Set(k, v)
}
return req, nil
}
|
---
layout: post
title: "来张微博图片吧 - 测试"
date: 2013-02-16 19:18:19.000000000 +08:00
type: post
published: true
status: publish
categories: []
tags: []
meta:
views: '22'
author:
login: lanbing
email: c834606877@163.com
display_name: lanbing
first_name: ''
last_name: ''
---
<p style="text-align: center;"><img class="aligncenter" src="http://bbs.eryiju.com/home/attachment/200912/11/18566_1260512714g0cz.jpg" alt="雪" width="614" height="461" /></p>
|
// ReSharper disable RedundantUsingDirective
// ReSharper disable DoNotCallOverridableMethodsInConstructor
// ReSharper disable InconsistentNaming
// ReSharper disable PartialTypeWithSinglePart
// ReSharper disable PartialMethodWithSinglePart
// ReSharper disable RedundantNameQualifier
// TargetFrameworkVersion = 4.52
#pragma warning disable 1591 // Ignore "Missing XML Comment" warning
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Linq.Expressions;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Data;
using System.Data.SqlClient;
using System.Data.Entity.ModelConfiguration;
using System.Threading;
using System.Threading.Tasks;
//using DatabaseGeneratedOption = System.ComponentModel.DataAnnotations.DatabaseGeneratedOption;
namespace DataModels
{
// Order Details Extended
internal class OrderDetailsExtendedConfiguration : EntityTypeConfiguration<OrderDetailsExtended>
{
public OrderDetailsExtendedConfiguration(string schema = "dbo")
{
ToTable(schema + ".Order Details Extended");
HasKey(x => new { x.OrderId, x.ProductId, x.ProductName, x.UnitPrice, x.Quantity, x.Discount });
Property(x => x.OrderId).HasColumnName("OrderID").IsRequired();
Property(x => x.ProductId).HasColumnName("ProductID").IsRequired();
Property(x => x.ProductName).HasColumnName("ProductName").IsRequired().HasMaxLength(40);
Property(x => x.UnitPrice).HasColumnName("UnitPrice").IsRequired().HasPrecision(19,4);
Property(x => x.Quantity).HasColumnName("Quantity").IsRequired();
Property(x => x.Discount).HasColumnName("Discount").IsRequired();
Property(x => x.ExtendedPrice).HasColumnName("ExtendedPrice").IsOptional().HasPrecision(19,4);
}
}
}
|
/* === INFO === */
/* About CSS
/* Version: 0.3.5
/* === END === */
/*==test css==*/
.youdaoGWZSTestCss {
position: absolute;
left: -100px;
height: 1px;
width: 1px;
cursor: pointer;
}
/* mixins.less */
body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote,
th,
td {
margin: 0;
padding: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
fieldset,
img {
border: 0;
}
/*
TODO think about hanlding inheritence differently, maybe letting IE6 fail a bit...
*/
address,
caption,
cite,
code,
dfn,
em,
strong,
th,
var {
font-style: normal;
}
/*
TODO Figure out where this list-style rule is best set. Hedger has a request to investigate.
*/
li {
list-style: none;
}
caption,
th {
text-align: left;
}
/* to preserve line-height and selector appearance */
sup {
vertical-align: text-top;
}
sub {
vertical-align: text-bottom;
}
input,
textarea,
select {
font-family: inherit;
font-size: inherit;
font-weight: inherit;
}
/*to enable resizing for IE*/
input,
textarea,
select {
*font-size: 100%;
}
/*because legend doesn't inherit in IE */
/*==test css==*/
.youdaoGWZSTestCss {
position: absolute;
left: -100px;
height: 1px;
width: 1px;
cursor: pointer;
}
#youdaoGWZS {
position: fixed;
bottom: 0;
left: 0;
width: 1px;
height: 1px;
}
#youdaoGWZS a {
/*text-align: center;*/
}
.hui-clearfix {
zoom: 1;
}
.hui-clearfix:after {
content: '.';
display: block;
visibility: hidden;
height: 0;
line-height: 0;
font-size: 0;
clear: both;
}
#hui-plughistory.youdaoGWZS_plug-history span {
display: inline;
}
#hui-plughistory *,
#youdaoGWZS * {
box-sizing: content-box;
}
.hui-shoppingtool li {
list-style: none;
}
/* images.less */
.hui-old-sp1,
.GWZS-setting,
#GWZS-discountInfo .hui-discount-hd h3,
#GWZS-discountInfo .hui-discount-hd .discount-info-close,
.hui-haitao-share i,
.youdaoGWZS_lowestHistoryPrice,
.hui-shopping-sidebar-close,
#youdaoGWZS_close.youdaoGWZS_open,
#youdaoGWZS_coupon,
#youdaoGWZScoupon.youdaoGWZS_coupon ul li.youdaoGWZS_coupon_first,
#youdaoGWZScoupon.youdaoGWZS_coupon .youdaoGWZS_coupon_first .youdaoGWZS_coupon_first_ico1,
#youdaoGWZScoupon.youdaoGWZS_coupon .youdaoGWZS_coupon_first .youdaoGWZS_coupon_first_ico2,
#youdaoGWZScoupon.youdaoGWZS_coupon .youdaoGWZS_coupon_first .youdaoGWZS_coupon_first_ico3,
#youdaoGWZScoupon.youdaoGWZS_coupon .youdaoGWZS_coupon_first_ctnright_btnget,
#youdaoGWZScoupon.youdaoGWZS_coupon .youdaoGWZS_coupon_first_ctnright_btnlook,
#youdaoGWZScoupon.youdaoGWZS_coupon ul li.youdaoGWZS_coupon_pricelist ul li.youdaoGWZS_coupon_priceItem div.youdaoGWZS_coupon_price,
.youdaoGWZS_tipCoupon,
.youdaoGWZS_no-tipCoupon,
#youdaoGWZS_features .youdaoGWZS_feature .youdaoGWZS_fts2 .youdaoGWZS_ftContent .youdaoGWZS_coupon_ftIntroPic,
#youdaoGWZSShow.youdaoGWZS_csPrice ul li.youdaoGWZS_CS_pricelist ul li.youdaoGWZS_CS_priceItem div.youdaoGWZS_CS_price,
#youdaoGWZS_csMore,
.youdaoGWZS_deprice-notify .deprice-notify-tosee,
.deprice-notify-hd .notify-close,
#youdaoGWZS_depriceNotify .deprice-notify-title,
.youdaoGWZS_dr_stat_cancel,
.youdaoGWZS_stores-list .icon_recommend,
.youdaoGWZS_store-choose span,
.youdaoGWZS_dr_dialog-bd .success-icon,
.deprice-mini-wrapper .deprice-icon,
#youdaoGWZS_deprice_remind .youdaoGWZS_btn-choice,
#youdaoGWZS_discount,
.discount-content .dis-content-detail i,
.discount-icon,
.GWZS-setting,
#GWZS-discountInfo .hd h3,
#GWZS-discountInfo .hd .discount-info-close,
.youdaoGWZS_price-lowest,
.youdaoGWZS_price-new-lowest,
.youdaoGWZS_price-stable,
.youdaoGWZS_price-rise,
.youdaoGWZS_price-decline,
.youdaoGWZS_unitprice-decline,
.youdaoGWZS_unitprice-rise,
.youdaoGWZS_lowestHistoryPrice,
#youdaoGWZShistory.youdaoGWZS_priceHistory ul li.youdaoGWZS_priceList2 .youdaoGWZS_title .youdaoGWZS_itemT .youdaoGWZS_bg,
#youdaoGWZS_features .youdaoGWZS_feature .youdaoGWZS_fts2 .youdaoGWZS_newfeature_depriceRemind_pic,
#youdaoGWZS_hover-tips h3 .hui-logo,
#youdaoGWZS_hover-tips .arrow,
#youdaoGWZS_hover-tips .see-guide i,
#youdaoGWZS_hover-tips .other-vendor-wrapper i,
#youdaoGWZS_hover-tips .other-vendor-wrapper .see-other-vendor,
.youdaoGWZS_ico_logo,
#youdaoGWZS_negative-comm,
.deprice-btn,
.youdaoGWZS_plug-history .youdaoGWZS_plug-history-btn,
.paging-wrapper .prev-page,
.paging-wrapper .next-page,
.sublist-viewport li .is-reach,
.sublist-viewport .price-wrapper .yuan,
.sublist-viewport .price-wrapper .price-tip,
.youdaoGWZS_down .youdaoGWZS_lowPrice,
.youdaoGWZS_down .youdaoGWZS_sameTypeTip,
.youdaoGWZS_down .youdaoGWZS_similarTypeTip,
.youdaoGWZS_down #youdaoGWZS_feedbackMain,
.youdaoGWZS_down #youdaoGWZS_brokeNews {
background-image: url("https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/gouwuzhushou.png");
background-repeat: no-repeat;
}
.hui-old-sp2,
.youdaoGWZS_dr_succ_prefer,
.youdaoGWZS_dr_succ_deprice,
.youdaoGWZS_plug-history .sub-prefer-tip,
.youdaoGWZS_plug-history .sub-deprice-tip,
.sub-bt-recommend-tip,
.sub-bt-deprice-tip {
background-image: url("https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/abTestPrefer.png");
background-repeat: no-repeat;
}
.hui-old-sp3 {
background-image: url("https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/oneTip.png");
background-repeat: no-repeat;
}
.hui-old-sp-ie,
.GWZS-feedback,
#GWZS-discountInfo .hui-discount-hd .discount-info-close,
#youdaoGWZS_discountClose {
_background-image: url("https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/ie/gouwuzhushou_ie.png");
_background-repeat: no-repeat;
}
.youdaoGWZS_close,
.youdaoGWZS_close:hover {
_background-image: url("https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/ie/gouwuzhushou_ie.png");
_background-repeat: no-repeat;
}
#youdaoGWZScoupon.youdaoGWZS_coupon .youdaoGWZS_coupon_first .youdaoGWZS_coupon_first_ico2,
#youdaoGWZScoupon.youdaoGWZS_coupon .youdaoGWZS_coupon_first .youdaoGWZS_coupon_first_ico3 {
_background-image: url("https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/gouwuzhushoutrs.png");
_background-repeat: no-repeat;
}
#youdaoGWZScoupon.youdaoGWZS_coupon ul li span.youdaoGWZS_coupon_list_right {
background-image: url("https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/gouwuzhushoutrs.png");
background-repeat: no-repeat;
}
.hui-tips-speaker i,
.hui-button-star i,
.hui-new-sp,
.hui-sidebar-collec-sp,
.hui-yixin-step,
#hui-onekey .hui-new-onekey-icon,
#hui-plughistory.hui-haitao-zs .hui-plughistory-active .hui-haitao-total-price,
#hui-plugin-daigou-promotions.daigou-promotions .download-app,
.hui-shoppingtool-sidebar .hui-sp,
#hui-recommand-new .hui-sp,
.hui-shoppingtool .hui-sp,
.youdaoGWZS_dr_remind .hui-sp,
.hui-shopping-lightbox .hui-sp,
#hui-plugin-history .hui-price-trend-share i,
#youdaoGWZShistory .hui-price-trend-share i,
#youdaoGWZS_hover-tips .hui-price-trend-share i,
.hui-button-bar-wrapper .hui-button-bar .hui-button-bar-tip {
background-image: url("https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/hui_sp.png");
background-repeat: no-repeat;
}
.hui-recmdHistory .bd-bd .subitem,
.hui-recmdHistory .bd-bd .subitem .hui-tag,
.hui-recmdHistory .bd-bd .subitem .hui-fall {
background-image: url("https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/diypop.png");
background-repeat: no-repeat;
}
.hui-jigsaw-default .hui-jigsaw-image {
background-image: url("https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/jigsaw-bg-default.png");
background-repeat: no-repeat;
}
.hui-jigsaw-unlucky .hui-jigsaw-image {
background-image: url("https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/jigsaw-bg-unlucky.png");
background-repeat: no-repeat;
}
.hui-jigsaw-tempt .hui-jigsaw-image {
background-image: url("https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/jigsaw-bg-tempt.gif");
background-repeat: no-repeat;
}
.hui-shoppingtool .hui-sp1 {
background-position: 0 -3px;
display: inline-block;
height: 42px;
width: 76px;
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2) {
.hui-shoppingtool .hui-sp1 {
background: url("https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/logo.png") no-repeat center 0;
background-size: 56px 37px;
}
}
.hui-shoppingtool .hui-sp2 {
background-position: -95px -3px;
display: inline-block;
height: 22px;
width: 22px;
}
.hui-shoppingtool .hui-sp3 {
background-position: -117px -3px;
display: inline-block;
height: 22px;
width: 22px;
}
.hui-shoppingtool .hui-sp4 {
background-position: -147px -3px;
height: 50px;
width: 20px;
}
.hui-shoppingtool .hui-sp5 {
background-position: -76px -3px;
display: inline-block;
height: 11px;
width: 10px;
margin: 20px 0 0 6px;
overflow: hidden;
line-height: 0;
}
.hui-shoppingtool .hui-sp5:hover {
background-position: -76px -14px;
}
.hui-shoppingtool .hui-sp6 {
background-position: -76px -25px;
display: inline-block;
height: 11px;
width: 14px;
}
.hui-shoppingtool .hui-sp7 {
background-position: -90px -25px;
display: inline-block;
height: 15px;
width: 15px;
}
.hui-shoppingtool .hui-sp8 {
background-position: -105px -25px;
display: inline-block;
height: 14px;
width: 14px;
}
.hui-shoppingtool .hui-sp9 {
background-position: -119px -25px;
display: inline-block;
height: 14px;
width: 14px;
}
.hui-shoppingtool .hui-sp10 {
background-position: -133px -25px;
display: inline-block;
height: 14px;
width: 14px;
}
.hui-shoppingtool .hui-sp11 {
background-position: 0 50px;
}
.hui-shoppingtool .hui-sp12 {
background-position: 0 0;
}
.hui-shoppingtool .hui-sp13 {
background-position: -167px -3px;
display: inline-block;
width: 8px;
height: 14px;
}
.hui-shoppingtool .hui-sp13:hover {
background-position: -167px -17px;
}
.hui-shoppingtool .hui-sp14 {
background-position: -175px -3px;
display: inline-block;
width: 8px;
height: 14px;
}
.hui-shoppingtool .hui-sp14:hover {
background-position: -175px -17px;
}
.hui-shoppingtool .hui-sp15 {
background-position: 0 -53px;
width: 325px;
height: 118px;
}
.hui-shoppingtool .hui-sp16 {
background-position: -120px -40px;
display: inline-block;
width: 12px;
height: 12px;
}
.hui-shoppingtool .hui-sp17 {
background-position: -183px -3px;
display: inline-block;
width: 45px;
height: 17px;
}
.hui-shoppingtool .hui-sp18 {
display: inline-block;
background-position: -76px -40px;
width: 10px;
height: 9px;
font-size: 0;
line-height: 0;
overflow: hidden;
}
.hui-shoppingtool .hui-sp18:hover {
background-position: -86px -40px;
}
.hui-shoppingtool .hui-sp19 {
display: inline-block;
background-position: -96px -40px;
width: 12px;
height: 12px;
font-size: 0;
line-height: 0;
overflow: hidden;
}
.hui-shoppingtool .hui-sp19:hover {
background-position: -108px -40px;
}
.hui-shoppingtool .hui-sp20 {
display: inline-block;
background-position: -167px -31px;
width: 42px;
height: 16px;
}
.hui-shoppingtool .hui-sp22 {
display: inline-block;
background-position: -134px -40px;
width: 9px;
height: 5px;
}
.hui-shoppingtool .hui-sp23 {
display: inline-block;
background-position: -209px -36px;
width: 16px;
height: 14px;
}
.hui-shoppingtool .hui-sp24 {
display: inline-block;
background-position: -225px -36px;
width: 16px;
height: 14px;
}
.hui-shoppingtool .hui-sp25 {
display: inline-block;
background-position: -241px -36px;
width: 16px;
height: 14px;
}
.hui-shoppingtool .hui-sp26 {
display: inline-block;
width: 10px;
height: 7px;
background-position: -351px -3px;
}
.hui-shoppingtool .hui-sp27 {
display: inline-block;
width: 14px;
height: 15px;
background-position: -329px -81px;
}
.hui-shoppingtool .hui-sp28 {
display: inline-block;
width: 74px;
height: 13px;
background-position: -330px -67px;
}
.hui-shoppingtool .hui-sp29 {
display: inline-block;
width: 74px;
height: 13px;
background-position: -330px -52px;
}
.hui-shoppingtool .hui-sp30 {
display: inline-block;
width: 12px;
height: 12px;
background-position: -376px -3px;
}
.hui-shoppingtool .hui-sp31 {
display: inline-block;
width: 10px;
height: 10px;
background-position: -388px -3px;
}
.hui-shoppingtool .hui-sp32 {
display: inline-block;
width: 12px;
height: 12px;
background-position: -290px -3px;
}
.hui-shoppingtool .hui-sp33 {
display: inline-block;
width: 12px;
height: 12px;
background-position: -302px -3px;
}
.hui-shoppingtool .hui-sp34 {
display: inline-block;
width: 12px;
height: 12px;
background-position: -314px -3px;
}
.hui-shoppingtool .hui-sp35 {
display: inline-block;
width: 12px;
height: 12px;
background-position: -326px -3px;
}
.hui-shoppingtool .hui-sp36 {
display: inline-block;
width: 12px;
height: 12px;
background-position: -338px -3px;
}
.hui-shoppingtool .hui-sp36-signin {
display: inline-block;
width: 12px;
height: 12px;
background-position: -364px -3px;
}
.hui-shoppingtool .hui-sp37 {
display: inline-block;
width: 16px;
height: 16px;
background-position: -410px -53px;
}
.hui-shoppingtool .hui-icon-lszd {
display: inline-block;
width: 38px;
height: 39px;
background-image: url("https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/icon_lszd.png");
_background: none;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/icon_lszd.png", sizingMethod="crop");
}
.hui-shoppingtool .hui-rise,
.hui-plugin-history .hui-rise {
display: inline-block;
width: 14px;
height: 11px;
background-position: -244px -3px;
}
.hui-shoppingtool .hui-steady,
.hui-plugin-history .hui-steady {
display: inline-block;
width: 14px;
height: 11px;
background-position: -229px -3px;
}
.hui-shopping-recommand .hui-recommand-disc .hui-lowest,
.hui-shoppingtool .hui-lowest,
.hui-shoppingtool-sidebar .hui-lowest,
.hui-plugin-history .hui-lowest,
#hui-recommand-new .hui-lowest {
position: static;
display: inline-block;
width: 13px;
height: 13px;
font-size: 0;
line-height: 0;
background-position: -258px -3px;
}
.hui-shoppingtool .hui-fall,
.hui-shoppingtool-sidebar .hui-fall,
.hui-plugin-history .hui-fall,
#hui-recommand-new .hui-fall {
display: inline-block;
width: 14px;
height: 11px;
background-position: -76px -25px;
}
.hui-plughistory-deprice .hui-deprice-icon {
display: inline-block;
width: 16px;
height: 15px;
background-position: -258px -36px;
}
.hui-shoppingtool .hui-icon-zy {
background: url('https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/zy.png') no-repeat;
}
.hui-shoppingtool .hui-icon-azy {
background: url('https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/zy.gif') no-repeat;
}
.hui-sp-jigsaw {
background: url('https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/event-jigsaw.png') no-repeat;
}
.hui-sp-collection-collect-tip {
background: url('https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/bar-collection-tip.png') no-repeat;
}
.hui-app-info .app-promote-install a {
background: url('https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/apps_promote_sp.png') no-repeat;
}
#hui-collection .hui-collection-img-wrap span {
background-image: url("https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/collection_jiang_cu.png");
}
#hui-collection .hui-collection-under {
background-image: url("https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/collection_under.png");
}
.hui-onekey-tip .hui-onekey-tip-bg {
background-image: url("https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/onekey_coupon_tip.png");
background-repeat: no-repeat;
}
.hui-onekey-tip .hui-onekey-tip-close {
background-image: url("https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/hui-onekey-tip-close.png");
background-repeat: no-repeat;
}
#hui-collection-new-user-guide {
background-image: url('https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/collection_guide.png');
background-repeat: no-repeat;
}
/* button.less */
.hui-button {
display: inline-block;
height: 30px;
text-decoration: none;
border-radius: 2px;
padding-left: 15px;
padding-right: 15px;
line-height: 33px;
}
.hui-button:hover {
text-decoration: none;
}
.hui-button-valid {
background-color: #fbbf4a;
border-bottom: 1px solid #ebd444;
color: #fff;
}
.hui-button-invalid {
background: #f0f0f0;
border-bottom: 1px solid #d3d3d3;
color: #999;
}
.hui-btn-cancel {
height: 37px;
line-height: 37px;
border-radius: 5px;
background-color: #fff;
border: 1px solid #dfdfdf;
font-size: 14px;
font-weight: bolder;
padding: 0 10px;
}
.hui-btn-cancel i {
display: inline-block;
width: 26px;
height: 26px;
vertical-align: -8px;
margin-right: 10px;
background-position: -442px -101px;
position: static;
font-size: 12px;
}
.hui-button-star {
box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
/*
*WHY: set font-size and position
*URL:http://www.womai.com/Product-0-565206.htm
*/
}
.hui-button-star i {
display: inline-block;
position: static;
font-size: 12px;
_margin-top: 10px;
_margin-bottom: 3px;
vertical-align: -3px;
_vertical-align: -1px;
width: 14px;
height: 14px;
margin-right: 7px;
}
.hui-button-star span {
font-weight: bolder;
font-size: 13px;
}
.hui-button-star-valid {
background-color: #fa8200;
border-bottom: 1px solid #e27805;
}
.hui-button-star-valid i {
background-position: -409px -4px;
}
.hui-button-star-valid span {
color: #fff;
}
.hui-button-star-valid:hover {
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#fa8200), to(#fd6802));
background-image: -webkit-linear-gradient(top, #fa8200, 0%, #fd6802, 100%);
background-image: -moz-linear-gradient(top, #fa8200 0%, #fd6802 100%);
background-image: linear-gradient(to bottom, #fa8200 0%, #fd6802 100%);
}
.hui-button-star-invalid {
background: #b5b5b5;
border-bottom: 1px solid #979797;
}
.hui-button-star-invalid i {
background-position: -428px -4px;
}
.hui-button-star-invalid span {
color: #ffffff;
}
.hui-button-star-invalid:hover {
background-image: -webkit-gradient(linear, left 0%, left 100%, from(#b5b5b5), to(#898989));
background-image: -webkit-linear-gradient(top, #b5b5b5, 0%, #898989, 100%);
background-image: -moz-linear-gradient(top, #b5b5b5 0%, #898989 100%);
background-image: linear-gradient(to bottom, #b5b5b5 0%, #898989 100%);
}
.hui-tips-info {
color: #333;
padding-left: 15px;
height: 27px;
line-height: 27px;
background-color: #fefcea;
border: 1px solid #e4dfba;
text-align: left;
}
.hui-tips-speaker i {
display: inline-block;
vertical-align: middle;
width: 14px;
height: 14px;
margin-right: 7px;
background-position: -466px -64px;
}
/*助手条上的button, 即最主要的那几个btn*/
.hui-button-bar-wrapper {
float: left;
border-right: 1px solid #ededed;
position: relative;
width: 80px;
text-align: center;
}
.hui-button-bar-wrapper .hui-button-bar {
display: inline-block;
height: 50px;
position: relative;
background-color: #fff;
width: 80px;
}
.hui-button-bar-wrapper .hui-button-bar .hui-button-bar-tip {
display: inline-block;
width: 22px;
height: 22px;
margin: 0 auto;
margin-top: 5px;
}
.hui-button-bar-wrapper .hui-button-bar .hui-button-bar-title {
font-size: 12px;
color: #666;
font-family: simsun, arial, helvetica, sans-serif;
display: inline-block;
height: 22px;
vertical-align: super;
font-weight: 100;
display: block;
margin-top: -2px;
text-align: center;
}
.hui-button-bar-wrapper .hui-button-bar .hui-button-bar-title .hui-notify-num {
color: #f63;
}
.hui-button-bar-wrapper .hui-button-bar:hover .hui-button-bar-title {
color: #f63;
}
.hui-active .hui-button-bar {
z-index: 9;
}
/* list.less */
.hui-list-item {
float: left;
}
.hui-list-item-img {
float: left;
color: red;
}
.hui-list-item-img a {
display: block;
width: 75px;
height: 75px;
text-align: center;
}
.hui-list-item-img a img {
max-width: 75px;
max-height: 75px;
}
/* hoverHistory.less */
#youdaoGWZS_hover-tips {
background-color: #FFF;
width: 272px;
font-family: Arial, Simsun, Helvetica, sans-serif;
text-align: left;
z-index: 2147483647 !important;
border-radius: 5px;
box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}
#youdaoGWZS_hover-tips .youdaoGWZS_hover-tips-hd {
height: 3px;
width: 100%;
background-color: #fdd472;
border-bottom: 1px solid #deba64;
font-size: 0;
line-height: 0;
overflow: hidden;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
#youdaoGWZS_hover-tips h3 {
background-image: none;
background-color: #f7f7f7;
background-position: -8px -589px;
background-repeat: repeat-x;
border-bottom: 1px solid #eae9e9;
color: #6d6d6d;
font-size: 14px;
font-weight: bold;
line-height: 35px;
margin: 0;
margin-bottom: 10px;
padding: 0;
}
#youdaoGWZS_hover-tips h3 .hui-logo {
background-position: -334px -590px;
display: block;
_display: inline;
float: left;
height: 20px;
margin: 8px 9px 0 8px;
width: 107px;
}
#youdaoGWZS_hover-tips img {
_display: inline;
float: left;
margin-left: 18px;
margin-bottom: 22px;
}
#youdaoGWZS_hover-tips ul {
font-size: 12px;
float: left;
height: 110px;
list-style: none;
margin: 0;
margin-left: -6px;
padding: 0;
}
#youdaoGWZS_hover-tips ul li {
color: #666;
text-align: left;
overflow: hidden;
word-wrap: break-word;
width: 44px;
}
#youdaoGWZS_hover-tips .min {
margin-top: 55px;
}
#youdaoGWZS_hover-tips .todayMin {
color: #f23d4f;
}
#youdaoGWZS_hover-tips .todayPrice {
color: #666;
left: 219px;
font-size: 12px;
position: absolute;
top: 88px;
}
#youdaoGWZS_hover-tips .mothsAgo {
clear: left;
color: #999;
font-size: 12px;
left: 5px;
margin: 8px 0 8px 15px;
position: absolute;
top: 137px;
}
#youdaoGWZS_hover-tips .mothsAgo .longTime {
margin-right: 60px;
}
#youdaoGWZS_hover-tips {
border: 1px solid #dfdfdf;
border-top-width: 0;
}
#youdaoGWZS_hover-tips .arrow {
_background-image: url('https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/ie/gouwuzhushou_ie.png');
display: block;
height: 24px;
position: absolute;
width: 11px;
z-index: 2;
}
#youdaoGWZS_hover-tips .left {
background-position: -768px -515px;
_background-position: -20px -239px;
left: -8px;
}
#youdaoGWZS_hover-tips .right {
background-position: -790px -515px;
_background-position: -5px -239px;
left: 271px;
*left: 261px;
}
#youdaoGWZS_hover-tips .see-guide {
background-color: #FFF;
/*border-top: 1px solid #e4e4e4;*/
float: left;
width: 265px;
zoom: 1;
position: relative;
margin-top: -3px;
}
#youdaoGWZS_hover-tips .see-guide a {
color: #666;
font: 12px/150% Arial, Verdana, "宋体b8b体4f53";
margin: 5px 0 8px 40px;
display: block;
max-height: 33px;
margin-right: 7px;
_height: expression(this.scrollHeight > 34 ? "36px" : "auto");
max-height: 36px\9;
overflow: hidden;
}
#youdaoGWZS_hover-tips .see-guide a:hover {
color: #c03;
text-decoration: underline;
}
#youdaoGWZS_hover-tips .see-guide i {
display: block;
position: absolute;
top: 7px;
left: 20px;
width: 15px;
height: 14px;
}
#youdaoGWZS_hover-tips .hui-price-trend-share {
float: left;
top: -10px;
position: relative;
padding-top: 6px;
padding-left: 46px;
color: blue;
font-size: 12px;
line-height: 30px;
}
#hui-plugin-history .hui-price-trend-share {
float: left;
top: -10px;
position: relative;
padding-top: 6px;
padding-left: 42px;
color: blue;
font-size: 12px;
line-height: 30px;
}
#youdaoGWZShistory .hui-price-trend-share {
float: left;
top: -10px;
position: relative;
padding-top: 6px;
padding-left: 52px;
color: blue;
font-size: 12px;
line-height: 30px;
}
#hui-plugin-history .hui-price-trend-share i {
position: absolute;
top: 6px;
left: 17px;
background-position: -350px -138px;
width: 19px;
height: 27px;
display: inline-block;
}
#youdaoGWZShistory .hui-price-trend-share i {
position: absolute;
top: 6px;
left: 27px;
background-position: -350px -138px;
width: 19px;
height: 27px;
display: inline-block;
}
#youdaoGWZS_hover-tips .hui-price-trend-share i {
position: absolute;
top: 6px;
left: 16px;
background-position: -350px -138px;
width: 19px;
height: 27px;
display: inline-block;
}
/*章sir验折扣*/
#youdaoGWZS_hover-tips .hui-price-Preferential {
width: 66px;
height: 73px;
background-position: 0px 0px;
top: 170px;
right: -45px;
}
#youdaoGWZS_hover-tips .hui-price-fraud {
width: 66px;
height: 72px;
background-position: 0px -78px;
top: 170px;
right: -45px;
}
/*微博分享*/
#hui-plughistory .price-trend-weibo i,
#youdaoGWZShistory .price-trend-weibo i,
#youdaoGWZS_hover-tips .price-trend-weibo i {
width: 20px;
height: 18px;
background-position: -294px -184px;
}
#hui-plughistory .hui-price-trend-share:hover,
#youdaoGWZShistory .hui-price-trend-share:hover,
#youdaoGWZS_hover-tips .hui-price-trend-share:hover {
text-decoration: underline;
}
#youdaoGWZS_hover-tips .other-vendor-wrapper {
clear: both;
border-top: #f2f2f2 solid 1px;
float: left;
position: relative;
padding-top: 5px;
width: 265px;
height: 30px;
}
#youdaoGWZS_hover-tips .other-vendor-wrapper i {
display: block;
position: absolute;
background-position: -480px -500px;
top: 5px;
left: 17px;
width: 15px;
height: 14px;
}
#youdaoGWZS_hover-tips .other-vendor-wrapper .other-vendor-content {
background-color: #FFF;
margin: 0;
color: #999;
text-indent: 37px;
}
#youdaoGWZS_hover-tips .other-vendor-wrapper .other-vendor-content span {
display: block;
vertical-align: text-top;
margin-bottom: 8px;
margin-top: -10px;
}
#youdaoGWZS_hover-tips .other-vendor-wrapper .other-vendor-content .youdaoGWZS_hoverHistory_lowest {
color: #666;
font-size: 12px;
}
#youdaoGWZS_hover-tips .other-vendor-wrapper .other-vendor-content .youdaoGWZS_hoverHistory_lowest:hover {
text-decoration: underline;
color: #c03;
}
#youdaoGWZS_hover-tips .other-vendor-wrapper .other-vendor-content .see-other-vendor {
color: #666;
display: inline-block;
position: absolute;
top: 2px;
right: 12px;
text-indent: 15px;
width: 73px;
line-height: 24px;
height: 22px;
background-position: -680px -160px;
}
#youdaoGWZS_hover-tips .other-vendor-wrapper .other-vendor-content .see-other-vendor:hover {
background-position: -760px -160px;
}
.youdaoGWZS_hover-tips .see-guide i {
background-position: -480px -540px;
}
.youdaoGWZS_hover-tipsguide .see-guide i {
background-position: -480px -540px;
}
.youdaoGWZS_hover-tipsdiscount .see-guide i {
background-position: -480px -520px;
}
#youdaoGWZS_hover-tips .hui-trend-Promotion {
margin: 0 auto;
width: 258px;
border: 1px solid #fdedc9;
background-color: #fffcf3;
}
#youdaoGWZS_hover-tips .hui-trend-Promotion p {
padding: 3px 9px;
font-size: 12px;
color: #333333;
}
#youdaoGWZS_hover-tips .hui-trend-Promotion p span {
color: #fd6802;
}
#youdaoGWZS_hover-tips .hui-trend-canvas {
float: left;
position: relative;
margin-left: 18px;
margin-bottom: 22px;
width: 240px;
height: 130px;
}
#youdaoGWZS_hover-tips .hui-trend-canvas .hui-trend-curve {
position: absolute;
top: 0px;
left: 0px;
}
#youdaoGWZS_hover-tips .hui-trend-canvas .hui-trend-time-labels {
font-size: smaller;
color: #888;
}
#youdaoGWZS_hover-tips .hui-trend-canvas .hui-trend-time-labels .hui-history-time-label {
position: absolute;
text-align: center;
top: 114px;
width: 45px;
}
#youdaoGWZS_hover-tips .hui-trend-canvas .hui-trend-price-labels {
font-size: smaller;
color: #888;
}
#youdaoGWZS_hover-tips .hui-trend-canvas .hui-trend-price-labels .hui-history-time-label {
position: absolute;
text-align: center;
top: 114px;
width: 45px;
}
#youdaoGWZS_hover-tips .hui-trend-canvas .hui-trend-most-price {
position: absolute;
top: 0;
left: 82%;
text-align: center;
height: 120px;
white-space: nowrap;
}
#youdaoGWZS_hover-tips .hui-trend-canvas .hui-trend-most-price dl {
position: absolute;
left: 10px;
}
#youdaoGWZS_hover-tips .hui-trend-canvas .hui-trend-most-price dl dd {
margin-left: 0;
}
/* galleryDiscount.less */
.youdaoGWZS_gallerTips {
font-family: "宋体, Arial, Helvetica, sans-serif";
font-size: 12px;
font-weight: bolder;
height: 24px;
line-height: 24px;
position: absolute;
text-align: center;
width: 91px;
z-index: 2147483646;
}
.youdaoGWZS_price-lowest,
.youdaoGWZS_price-new-lowest,
.youdaoGWZS_price-stable,
.youdaoGWZS_price-rise,
.youdaoGWZS_price-decline {
_background-image: url('https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/ie/ie_append.png');
}
.youdaoGWZS_price-lowest {
background-position: -485px -580px;
_background-position: -100px 0;
color: #fff;
}
.youdaoGWZS_price-new-lowest {
background-position: -485px -580px;
_background-position: -100px 0;
color: #fff;
}
.youdaoGWZS_price-stable {
background-position: -485px -640px;
_background-position: -300px 0;
color: #666;
}
.youdaoGWZS_price-rise {
background-position: -690px -630px;
_background-position: -200px 0;
color: #fff;
}
.youdaoGWZS_price-decline {
background-position: -590px -630px;
_background-position: 0 0;
color: #006f00;
}
.youdaoGWZS_unitprice-decline,
.youdaoGWZS_unitprice-rise {
width: 125px;
}
.youdaoGWZS_unitprice-decline .hui-disc,
.youdaoGWZS_unitprice-rise .hui-disc {
margin-right: -20px;
}
.youdaoGWZS_unitprice-decline {
background-position: -360px -300px;
color: #333;
}
.youdaoGWZS_unitprice-rise {
background-position: -500px -300px;
color: #999;
}
.youdaoGWZS_price-lowest:hover {
background-position: -485px -610px;
_background-position: -100px -40px;
}
.youdaoGWZS_price-new-lowest:hover {
background-position: -485px -610px;
_background-position: -100px -40px;
}
.youdaoGWZS_price-stable:hover {
background-position: -485px -670px;
_background-position: -300px -40px;
}
.youdaoGWZS_price-rise:hover {
background-position: -690px -655px;
_background-position: -200px -40px;
}
.youdaoGWZS_price-decline:hover {
background-position: -590px -655px;
_background-position: 0 -40px;
}
.youdaoGWZS_price-lowest_mouseIn {
background-position: -485px -610px;
_background-position: -100px 0;
}
.youdaoGWZS_price-new-lowest_mouseIn {
background-position: -485px -610px;
_background-position: -100px 0;
}
.youdaoGWZS_price-stable_mouseIn {
background-position: -485px -670px;
_background-position: -300px -40px;
}
.youdaoGWZS_price-rise_mouseIn {
background-position: -690px -655px;
_background-position: -200px 0;
}
.youdaoGWZS_price-decline_mouseIn {
background-position: -590px -655px;
_background-position: 0 0;
}
.youdaoGWZS_price-lowest .disc-num,
.youdaoGWZS_price-new-lowest .disc-num,
.youdaoGWZS_price-decline .disc-num {
font-family: "verdana, helvetica, arial, sans-serif";
font-size: 14px;
font-weight: bolder;
margin-left: 14px;
}
/* depriceRemind.less */
.youdaoGWZS_dr_remind ul,
.youdaoGWZS_dr_remind li {
margin: 0;
padding: 0;
}
.youdaoGWZS_dr_remind textarea,
.youdaoGWZS_dr_remind input {
margin: 0;
padding: 5px;
vertical-align: middle;
background: none;
outline: 0;
font-size: 12px;
}
.youdaoGWZS_dr_remind li {
list-style: none;
font-size: 12px;
}
.youdaoGWZS_dr_remind li .label-title {
color: #666;
display: inline-block;
padding-left: 0;
padding-bottom: 0px;
font-weight: normal;
*display: inline;
*zoom: 1;
}
.youdaoGWZS_dr_remind {
display: none;
background-color: #fff;
/*position: fixed;*/
position: absolute;
_position: absolute;
z-index: 2147483647;
border-radius: 5px;
border: 1px solid #dfdfdf;
box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
width: 398px;
}
.youdaoGWZS_dr_remind .youdaoGWZS-remindbox-topb {
height: 3px;
background-color: #fdd472;
border-bottom: 1px solid #deba64;
overflow: hidden;
font-size: 0;
line-height: 0;
}
.youdaoGWZS_dr_remind .youdaoGWZS_dr_dialog-hd {
position: relative;
border: 1px solid #fff;
background-color: #f6f7f9;
font-size: 14px;
height: 36px;
line-height: 36px;
}
.youdaoGWZS_dr_remind .youdaoGWZS_dr_dialog-hd span {
margin-left: 15px;
font-weight: bold;
}
.youdaoGWZS_dr_remind .youdaoGWZS_dr_dialog-hd .youdaoGWZS_dr_close {
width: 12px;
height: 11px;
display: block;
position: absolute;
top: 13px;
right: 10px;
background: url("https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/ie/gouwuzhushou_ie.png") -120px -240px no-repeat;
}
.youdaoGWZS_dr_remind .youdaoGWZS_dr_dialog-bd {
background-color: #FFFFFF;
padding: 16px 20px 0;
position: relative;
z-index: 1;
}
.youdaoGWZS_dr_remind .youdaoGWZS_dr_dialog-bd p {
font-size: 12px;
font-family: Arial, Verdana, "5b8b\4f53";
text-align: left;
line-height: 1.5;
color: #666;
}
.youdaoGWZS_dr_remind .youdaoGWZS_dr_dialog-bd p span {
color: #fd8a17;
}
.youdaoGWZS_dr_remind .youdaoGWZS_dr_dialog-bd p .success-hd {
font-size: 13px;
font-weight: bold;
color: #333;
_vertical-align: sub;
}
.youdaoGWZS_dr_remind .youdaoGWZS_dr_dialog-bd .deprice-success-tip {
text-align: center;
margin-left: -20px;
}
.youdaoGWZS_dr_remind .youdaoGWZS_dr_dialog-bd .deprice-success-tip .success-icon {
vertical-align: bottom;
}
.youdaoGWZS_dr_remind .youdaoGWZS_dr_dialog-bd .deprice-success-tip .success-hd {
font-size: 13px;
}
.youdaoGWZS_dr_remind .youdaoGWZS_dr_dialog-bd .text-input {
-moz-box-sizing: border-box;
-webkit-box-sizeing: border-box;
box-sizing: border-box;
outline: none;
padding-top: 0;
border: 1px solid #d9d9d9;
border-top: 1px solid #c0c0c0;
padding-bottom: 0;
*padding: 2px;
height: 24px;
width: 180px;
}
.youdaoGWZS_dr_remind .youdaoGWZS_dr_dialog-bd .disabled {
border: none;
}
.youdaoGWZS_dr_remind .youdaoGWZS_dr_dialog-bd .input-wrap {
/*display: none;*/
margin: 20px 0 20px 0;
position: relative;
line-height: 22px;
}
.youdaoGWZS_dr_remind .youdaoGWZS_dr_dialog-bd .input-wrap .deprice-email-setting {
position: relative;
width: 280px;
}
.youdaoGWZS_dr_remind .youdaoGWZS_dr_dialog-bd .input-wrap .youdaoGWZS_dr_r {
position: absolute;
top: 6px;
left: 65px;
}
.youdaoGWZS_dr_remind .youdaoGWZS_dr_dialog-bd .input-wrap .youdaoGWZS_dr_r span {
margin-right: 12px;
height: 20px;
width: 258px;
outline: none;
}
.youdaoGWZS_dr_remind .youdaoGWZS_dr_succ_prefer,
.youdaoGWZS_dr_remind .youdaoGWZS_dr_succ_deprice {
display: block;
width: 172px;
height: 53px;
margin-top: 16px;
margin-left: 35%;
}
.youdaoGWZS_dr_remind .youdaoGWZS_dr_succ_prefer {
background-position: 0 0;
}
.youdaoGWZS_dr_remind .youdaoGWZS_dr_succ_deprice {
background-position: 0 -60px;
}
.youdaoGWZS_dr_remind .deprice-email-submit-wrapper {
position: absolute;
top: 2px;
left: 252px;
}
.youdaoGWZS_dr_remind .deprice-email-submit-wrapper a {
color: #999;
text-decoration: underline;
}
.youdaoGWZS_dr_remind .deprice-email-submit-wrapper .deprice-email-submit,
.youdaoGWZS_dr_remind .deprice-email-submit-wrapper .deprice-email-cancel {
display: none;
}
.youdaoGWZS_dr_remind .youdaoGWZS_dr_tips {
display: none;
line-height: 20px;
font-size: 12px;
width: 1px;
height: 20px;
padding: 0 0 0 23px;
position: absolute;
top: 2px;
left: 188px;
}
.youdaoGWZS_dr_remind .youdaoGWZS_dr_tips b {
width: 15px;
height: 15px;
position: absolute;
top: 4px;
left: 5px;
font-size: 15px;
color: red;
}
.youdaoGWZS_dr_remind .youdaoGWZS_dr_dialog-ft {
text-align: center;
padding-bottom: 20px;
}
.youdaoGWZS_dr_remind .youdaoGWZS_dr_dialog-ft a {
text-decoration: none;
color: #fff;
line-height: 33px;
text-align: center;
font-weight: bold;
font-size: 14px;
background-color: #fbbf4a;
display: inline-block;
padding: 0 20px;
border-radius: 2px;
border-bottom: 1px solid #e8b042;
height: 33px;
box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
}
.youdaoGWZS_dr_remind .youdaoGWZS_dr_dialog-ft a:hover {
background-position: -100px -630px;
}
.youdaoGWZS_dr_remind .youdaoGWZS_dr_dialog-ft .youdaoGWZS_dr_enter {
display: none;
}
.youdaoGWZS_dr_stat_error input {
border: 1px solid #F5AC52;
border-top: 1px solid #F69A29;
}
.youdaoGWZS_dr_stat_error .youdaoGWZS_dr_tips {
display: block;
}
.youdaoGWZS_dr_stat_succ .input-wrap {
display: none;
}
.youdaoGWZS_dr_stat_succ .youdaoGWZS_dr_dialog-ft .youdaoGWZS_dr_enter {
display: block;
}
.youdaoGWZS_dr_stat_succ .youdaoGWZS_dr_dialog-ft .youdaoGWZS_dr_subscript {
display: none;
}
.youdaoGWZS_dr_stat_sub {
display: block;
}
.youdaoGWZS_dr_stat_cancel {
display: block;
position: absolute;
z-index: 2147483647;
width: 129px;
height: 55px;
background-position: -210px -630px;
border: 0;
}
.youdaoGWZS_dr_stat_cancel .youdaoGWZS_dr_dialog-hd,
.youdaoGWZS_dr_stat_cancel .youdaoGWZS_dr_dialog-bd,
.youdaoGWZS_dr_stat_cancel .youdaoGWZS_dr_dialog-ft {
display: none;
}
.youdaoGWZS_text_input_hl {
border: 1px solid #F5AC52;
border-top: 1px solid #F69A29;
}
#youdaoGWZS_text_email.init {
color: #999;
}
.youdaoGWZS_dr_dialog-bd .success-icon {
width: 22px;
height: 22px;
display: inline-block;
vertical-align: text-bottom;
margin-right: 3px;
background-position: -80px -681px;
}
.youdaoGWZS_dr_dialog-bd .remind-setting {
margin: 13px 0;
position: relative;
font-size: 12px;
}
.youdaoGWZS_dr_dialog-bd .remind-setting .youdaoGWZS_stores-list-cont {
left: 65px;
position: absolute;
top: 0;
*top: -2px;
}
.youdaoGWZS_dr_dialog-bd .rember-email {
margin-left: 60px;
color: #999;
font-size: 12px;
}
.youdaoGWZS_store-choose {
background-color: #fff;
border: 1px solid #d9d9d9;
border-top: 1px solid #c0c0c0;
outline: none;
height: 26px;
line-height: 17px;
_width: 106px;
}
.youdaoGWZS_store-choose input {
-moz-box-sizing: border-box;
-webkit-box-sizeing: border-box;
box-sizing: border-box;
color: #545454;
background-color: #fff;
border: none;
outline: none;
padding: 1px 4px;
height: 26px;
*height: 24px;
width: 178px;
}
.youdaoGWZS_store-choose span {
cursor: pointer;
height: 26px;
left: 158px;
overflow: hidden;
position: absolute;
background-position: -850px -580px;
top: 1px;
text-indent: -999em;
width: 21px;
}
.remind-setting .remind-price {
left: 173px;
position: absolute;
top: -1px;
*top: -8px;
_top: -10px;
}
.remind-setting .remind-price input {
-moz-box-sizing: border-box;
-webkit-box-sizeing: border-box;
box-sizing: border-box;
border: 1px solid #d9d9d9;
border-top: 1px solid #c0c0c0;
outline: none;
padding-top: 0;
padding-bottom: 0;
height: 23px;
*height: 22px;
width: 56px;
margin: 3px;
_margin-top: 7px;
}
.youdaoGWZS_stores-list {
background-color: #fff;
border: 1px solid #d9d9d9;
display: none;
position: absolute;
z-index: 3;
width: 200px;
}
.youdaoGWZS_stores-list ul li a {
color: #333;
display: block;
text-decoration: none;
overflow: hidden;
}
.youdaoGWZS_stores-list .stores-list-selector {
position: relative;
padding-left: 10px;
color: #000;
}
.youdaoGWZS_stores-list .icon_recommend {
position: absolute;
top: 0;
left: 91px;
width: 14px;
height: 14px;
line-height: 14px;
background-position: -891px -188px;
}
.youdaoGWZS_stores-list ul li a:hover {
background-color: #f9f9f9;
text-decoration: none;
color: #333;
}
.youdaoGWZS_stores-list .diy-stores {
margin-left: 10px;
}
.youdaoGWZS_stores-list .diy-stores ul {
border: 1px solid #d9d9d9;
height: 120px;
overflow-y: scroll;
margin: 5px 0;
width: 180px;
}
.youdaoGWZS_stores-list .diy-stores ul input {
margin: 3px 4px;
}
.youdaoGWZS_stores-list .fta {
text-align: right;
margin: 10px 0;
}
.youdaoGWZS_stores-list .fta a {
margin-right: 10px;
}
#youdaoGWZS_deprice_remind .youdaoGWZS_btn-cancel {
color: #8a8a8a;
text-decoration: underline;
}
#youdaoGWZS_deprice_remind .youdaoGWZS_btn-choice {
border: none;
background-position: -850px -610px;
color: #333;
display: inline-block;
text-align: center;
width: 54px;
height: 22px;
}
#youdaoGWZS_deprice_remind_mini {
position: absolute;
z-index: 2147483647;
font-size: 12px;
background-color: #fff;
}
#youdaoGWZS_deprice_remind_mini.sub-succ {
width: 398px;
height: 150px;
background-color: #fff;
border-radius: 5px;
border: 1px solid #dfdfdf;
box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}
#youdaoGWZS_deprice_remind_mini.unsub-succ {
width: 171px;
height: 72px;
border-radius: 5px;
border: 1px solid #dfdfdf;
box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}
.deprice-mini-wrapper .deprice-icon {
display: inline-block;
}
.deprice-mini-wrapper .succss-top-border {
height: 3px;
background-color: #fdd472;
border-bottom: 1px solid #deba64;
overflow: hidden;
font-size: 0;
line-height: 0;
}
.deprice-mini-wrapper .cancel {
width: 24px;
height: 24px;
background-position: -120px -680px;
vertical-align: top;
margin-right: 4px;
}
.deprice-mini-wrapper .cancel-feed-box {
height: 24px;
line-height: 24px;
text-align: center;
margin-top: 23px;
font-size: 14px;
font-weight: bold;
color: #666;
}
.deprice-mini-wrapper .sub {
width: 22px;
height: 23px;
background-position: -80px -680px;
vertical-align: top;
margin-right: 4px;
}
.deprice-mini-wrapper .success-feed-box {
margin: 20px 0 20px 119px;
}
.deprice-mini-wrapper .success-feed-box .hui-hd {
height: 23px;
line-height: 23px;
font-size: 14px;
font-weight: bold;
color: #333;
}
.deprice-mini-wrapper .success-feed-box .hui-bd {
margin-top: 7px;
line-height: 1.6;
color: #666;
}
.deprice-mini-wrapper .success-feed-box .hui-bd li {
margin: 0;
}
.deprice-mini-wrapper .success-feed-box .btn-setfeed {
display: inline-block;
width: 92px;
height: 20px;
line-height: 20px;
background-color: #f6f7f9;
border: 1px solid #efefef;
border-radius: 2px;
text-align: center;
color: #666;
margin-top: 5px;
}
.deprice-mini-wrapper .edit-succ {
width: 22px;
height: 23px;
background-position: -80px -680px;
vertical-align: top;
margin-right: 4px;
}
.deprice-mini-wrapper .deprice-finish {
zoom: 1;
overflow: hidden;
margin-top: 10px;
}
.unsub-succ .deprice-mini-wrapper .deprice-finish {
margin-top: 15px;
}
.deprice-mini-wrapper .deprice-finish a {
display: block;
color: #005aa0;
}
.deprice-mini-wrapper .deprice-finish span {
font-weight: bolder;
font-size: 14px;
}
.youdaoGWZS_store-choose .enable {
background-position: -868px -580px;
cursor: pointer;
}
.deprice-yixin {
color: blue;
text-decoration: underline;
}
/* subBookmarks.less */
#youdaoGWZS_sub-bookmarks p,
#youdaoGWZS_sub-bookmarks a,
#youdaoGWZS_sub-bookmarks h3 {
font-family: '宋体B8B\4F53', Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: normal;
}
.sub-bt-recommend-tip,
.sub-bt-deprice-tip {
position: absolute;
cursor: pointer;
bottom: 41px;
_bottom: 47px;
background-position: 0 -180px;
left: 0;
width: 230px;
height: 52px;
}
.sub-bt-recommend-tip {
background-position: 0 -400px;
left: 35px;
}
#youdaoGWZSSubList.youdaoGWZS_sublist {
position: relative;
color: #666;
zoom: 1;
}
/* ==searchMin==*/
.sublist-fullWidth {
width: 348px;
_width: 348px;
}
#youdaoGWZSSubList .has-no-subList {
text-align: center;
line-height: 17px;
padding: 20px 0 20px;
}
.sublist-viewport ul,
.sublist-viewport li {
margin: 0;
padding: 0;
}
.fullHeight {
height: 339px;
}
.halfHeight {
height: 169px;
}
.sublist-viewport {
position: relative;
overflow: hidden;
background-color: #FFF;
padding: 0;
border-bottom: 1px solid #ececec;
}
.sublist-viewport ul {
position: relative;
top: 0;
left: 0;
}
.sublist-viewport li {
position: absolute;
list-style: none;
width: 115px;
height: 169px;
border: 1px solid #ececec;
border-width: 0 1px 1px 0;
background-color: #fff;
}
.sublist-viewport li .is-reach {
position: absolute;
top: 10px;
left: 5px;
width: 42px;
height: 18px;
text-indent: -9999px;
background-position: -840px -500px;
_background-position: -120px -160px;
}
.paging-wrapper {
position: relative;
background-color: #FFF;
border-top: 1px solid #fff;
font-size: 12px;
height: 17px;
line-height: 20px;
_height: 25px;
text-align: center;
padding: 10px 0;
}
.paging-wrapper .right-page {
margin-right: 10px;
color: #fd8712;
}
.paging-wrapper .total-pages {
margin-left: 10px;
}
.paging-wrapper .prev-page {
left: 50%;
margin-left: -70px;
}
.paging-wrapper .next-page {
left: 50%;
margin-left: 50px;
}
#youdaoGWZS .paging-wrapper .prev-page {
background-position: -720px -540px;
_background-position: -37px -318px;
}
#youdaoGWZS .paging-wrapper .next-page {
background-position: -760px -540px;
_background-position: -38px -336px;
}
.paging-wrapper .prev-page,
.paging-wrapper .next-page {
width: 20px;
height: 20px;
position: absolute;
text-indent: -9999px;
}
#youdaoGWZS .paging-wrapper .prev-page-unable {
background-position: -700px -540px;
_background-position: -37px -298px;
cursor: pointer;
}
#youdaoGWZS .paging-wrapper .next-page-unable {
background-position: -740px -540px;
_background-position: -37px -278px;
cursor: pointer;
}
.sublist-viewport .fragement-wrapper a {
display: inline-block;
width: 18px;
height: 16px;
margin: 6px 0 0 6px;
padding: 0;
zoom: 1;
text-decoration: none;
font-size: 0;
line-height: 0;
overflow: hidden;
vertical-align: top;
}
.sublist-viewport .fragement-wrapper .sub-setting {
_width: 16px;
background-position: -68px -299px;
border-right: 1px solid #d8d8d8;
}
.sublist-viewport .fragement-wrapper .sub-setting:hover {
background-position: -68px -279px;
}
.sublist-viewport .fragement-wrapper .sub-delete {
_width: 12px;
_height: 12px;
background-position: -68px -338px;
margin-left: -2px;
}
.sublist-viewport .fragement-wrapper .sub-delete:hover {
background-position: -68px -318px;
}
.sublist-viewport .image-wrapper {
margin: 12px 12px 13px;
}
.sublist-viewport .image-wrapper img {
height: 88px;
width: 88px;
}
.sublist-viewport .title-wrapper {
margin: 0 12px 7px 10px;
color: #666;
line-height: 14px;
height: 27px;
font-size: 12px;
word-break: break-all;
max-height: 27px;
_height: expression(this.scrollHeight > 25 ? "27px" : "auto");
_padding-top: 1px;
overflow: hidden;
word-wrap: break-word;
width: 93px;
}
.sublist-viewport .price-wrapper {
margin-left: 12px;
font-size: 12px;
font-weight: bolder;
color: #fa8200;
}
.sublist-viewport .price-wrapper .yuan {
width: 12px;
height: 13px;
display: inline-block;
vertical-align: text-bottom;
margin-right: 3px;
background-position: -820px -490px;
}
.sublist-viewport .price-wrapper .price-tip {
height: 12px;
width: 7px;
font-size: 0;
display: inline-block;
vertical-align: text-top;
vertical-align: -1px;
margin-left: 3px;
}
.sublist-viewport .price-wrapper .price-4-tip,
.sublist-viewport .price-wrapper .price-2-tip {
background-position: -800px -490px;
}
.sublist-viewport .price-wrapper .price-3-tip,
.sublist-viewport .price-wrapper .price-1-tip {
background-position: -811px -490px;
}
.sublist-viewport .price-wrapper span.price-0-tip {
width: 11px;
height: 7px;
font-size: 0;
line-height: 0;
vertical-align: 1px;
background-position: -800px -510px;
}
.sublist-viewport .price-wrapper {
color: #fa8200;
}
.sublist-viewport .fragement-wrapper a {
background-image: url('https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/ie/gouwuzhushou_ie.png');
background-repeat: no-repeat;
}
.paging-wrapper .prev-page,
.sublist-viewport li .is-reach,
.paging-wrapper .next-page {
_background-image: url('https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/ie/gouwuzhushou_ie.png');
background-repeat: no-repeat;
}
.sublist-nodata {
height: 40px;
line-height: 40px;
text-align: center;
font-size: 14px;
padding: 0;
margin: 0;
}
/* depriceNotify.less */
#youdaoGWZS_depriceNotify {
position: fixed;
_bottom: -300px;
z-index: 2147483646;
}
#youdaoGWZS_depriceNotify .deprice-notify-title {
background-position: -480px -707px;
_background-position: 0 -400px;
width: 200px;
height: 34px;
text-indent: -999em;
position: relative;
z-index: 2;
margin-bottom: -3px;
*margin-bottom: -6px;
}
#youdaoGWZS_depriceNotify .youdaoGWZS_deprice-notify {
border: 3px solid #ffcc00;
border-radius: 5px;
width: 342px;
margin-bottom: 7px;
overflow: hidden;
box-shadow: 0 0 6px 2px #aaa;
-ms-filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#aaaaaa'});
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#aaaaaa'});
}
.youdaoGWZS_deprice-notify .deprice-notify-hd {
color: #999;
font-size: 12px;
margin: 10px;
position: relative;
}
.youdaoGWZS_deprice-notify {
background-color: #f7f7f7;
position: relative;
}
.youdaoGWZS_deprice-notify .deprice-notify-bd {
overflow: hidden;
zoom: 1;
margin-top: 20px;
margin-bottom: 25px;
}
.deprice-notify-hd .notify-close {
position: absolute;
color: #ccc;
background-position: -440px -420px;
_background-position: 0 -280px;
text-indent: -999em;
width: 12px;
height: 12px;
cursor: pointer;
right: 0px;
_right: 8px;
top: -5px;
}
.deprice-notify-hd .notify-close:hover {
background-position: -420px -420px;
_background-position: -20px -280px;
}
.youdaoGWZS_deprice-notify .deprice-img {
display: inline;
background-color: #fff;
border: 1px solid #d0d2d5;
border-radius: 3px;
-moz-box-shadow: 0 0 10px #d0d2d5;
-webkit-box-shadow: 0 0 10px #d0d2d5;
box-shadow: 0 0 10px #d0d3d5;
float: left;
margin-left: 14px;
}
.youdaoGWZS_deprice-notify .deprice-img span {
display: inline-block;
height: 100%;
width: 1px;
vertical-align: middle;
}
.youdaoGWZS_deprice-notify .deprice-img a {
display: table-cell;
width: 80px;
height: 80px;
font-size: 70px;
vertical-align: middle;
text-align: center;
}
.youdaoGWZS_deprice-notify .deprice-img a img {
vertical-align: middle;
border: 0;
}
.youdaoGWZS_deprice-notify .deprice-detail {
overflow: hidden;
zoom: 1;
margin-left: 106px;
margin-right: 35px;
}
.youdaoGWZS_deprice-notify .deprice-detail h2 {
max-height: 35px;
_height: expression(this.scrollHeight > 35 ? "35px" : "auto");
line-height: 18px;
font-size: 12px;
font-weight: normal;
overflow: hidden;
margin-top: 0;
margin-bottom: 9px;
}
.youdaoGWZS_deprice-notify .deprice-detail a {
font-size: 13px;
font-weight: normal;
color: #06c;
}
.youdaoGWZS_deprice-notify .deprice-detail a:hover {
color: #c03;
}
.youdaoGWZS_deprice-notify .deprice-detail p {
color: #666;
font-size: 13px;
}
.youdaoGWZS_deprice-notify .deprice-notify-tosee {
color: #fff;
text-decoration: none;
font-weight: bold;
font-size: 14px;
position: absolute;
bottom: 10px;
right: 10px;
width: 83px;
height: 28px;
line-height: 28px;
text-align: center;
background-position: -820px -400px;
}
.youdaoGWZS_deprice-notify .deprice-notify-tosee:hover {
background-position: -330px -411px;
color: #fff;
}
.deprice-notify-hd .notify-close,
#youdaoGWZS_depriceNotify .deprice-notify-title {
_background-image: url("https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/ie/gouwuzhushou_ie.png");
}
/* author: chengmu; moduleName: collection; filePath: /media/chengmu/Èí¼þ/repositories/huhuizhushou/src/app/modules/collection */
#hui-collection a:hover .hui-collection-title {
color: #fa8200;
}
#hui-collection .hui-button-bar-tip {
background-position: -416px -103px;
}
#hui-collection .hui-sp-collection-number {
position: absolute;
margin: -10px 0 0 62px;
text-align: center;
height: 19px;
width: 16px;
background-position: -496px -5px;
color: white;
font-size: 12px;
z-index: 2;
}
#hui-collection .hui-shopping-lightbox {
width: 380px;
color: #333;
}
#hui-collection .hui-bar-collection-user {
height: 48px;
zoom: 1;
overflow: hidden;
font-size: 13px;
}
#hui-collection .hui-bar-collection-user .uname {
float: left;
margin-top: 11px;
margin-left: 20px;
font-size: 14px;
font-weight: bold;
}
#hui-collection .hui-bar-collection-user .uname .hui-uname {
margin-left: 8px;
}
#hui-collection .hui-bar-collection-user .collection-user-login {
margin-top: 11px;
margin-left: 20px;
font-weight: bold;
font-size: 14px;
display: block;
}
#hui-collection .hui-bar-collection-user .hui-bar-collection-prompt {
float: right;
margin-top: 15px;
margin-right: 18px;
display: inline-block;
width: 178px;
height: 18px;
font-size: 12px;
}
#hui-collection .hui-bar-collection-user .hui-bar-collection-prompt .hui-icon-collec-prompt {
display: inline-block;
margin-top: 2px;
width: 13px;
height: 14px;
background-position: -491px -138px;
}
#hui-collection .hui-bar-collection-user .hui-bar-collection-prompt a {
position: relative;
top: -4px;
display: inline-block;
vertical-align: middle;
}
#hui-collection .hui-bar-collection-user .hui-bar-collection-prompt a span {
font-weight: bold;
color: #ff6633;
margin: 2px;
}
#hui-collection .hui-bar-collection-user .hui-bar-collection-prompt a:hover {
text-decoration: underline;
color: #0066ff;
}
#hui-collection .hui-bar-collection-user .hui-bar-collection-prompt a:hover span {
color: #0066ff;
}
#hui-collection .hui-bar-collection-try-tip {
font: 12px/1.5 "\5b8b\4f53";
color: #666;
}
#hui-collection .hui-bar-collection-try-tip i {
margin-left: 20px;
display: block;
font-style: normal;
margin-bottom: 6px;
}
#hui-collection .hui-bar-collection-try-tip p {
margin-left: 20px;
margin-bottom: 15px;
}
#hui-collection .hui-bar-collection-try-tip p span {
color: #fa8200;
font-weight: bolder;
}
#hui-collection .hui-bar-collection-try-tip .hui-sp-collection-collect-tip {
width: 260px;
height: 52px;
margin: 0 auto;
margin-top: 5px;
margin-bottom: 24px;
}
#hui-collection .hui-bar-collection-closet {
margin-left: 20px;
margin-bottom: 15px;
}
#hui-collection .hui-bar-collection-closet .hui-bar-collection-closet-disc {
font-size: 12px;
}
#hui-collection .hui-bar-collection-closet .hui-bar-collection-closet-disc a {
float: right;
padding-right: 10px;
color: blue;
}
#hui-collection .hui-bar-collection-closet .hui-bar-collection-closet-list {
margin-top: 20px;
}
#hui-collection .hui-bar-collection-closet .hui-bar-collection-closet-list li {
float: left;
margin-right: 20px;
}
#hui-collection .hui-bar-collection-closet .hui-bar-collection-closet-list a {
position: relative;
display: block;
width: 100px;
height: 100px;
text-align: center;
}
#hui-collection .hui-bar-collection-closet .hui-bar-collection-closet-list a img {
max-height: 100px;
max-width: 100px;
_width: 100px;
_height: 100px;
}
#hui-collection .hui-bar-collection-closet .hui-bar-collection-closet-list a .hui-collection-img-wrap {
position: absolute;
bottom: 0;
left: 0;
text-align: center;
}
#hui-collection .hui-bar-collection-closet .hui-bar-collection-closet-list a .hui-collection-img-wrap img {
max-height: 100px;
max-width: 100px;
_width: 100px;
_height: 100px;
}
#hui-collection .hui-bar-collection-closet .hui-bar-collection-closet-list a .hui-collection-img-wrap span {
position: absolute;
left: 0px;
bottom: 0px;
width: 14px;
height: 14px;
}
#hui-collection .hui-bar-collection-closet .hui-bar-collection-closet-list a .hui-collection-img-wrap .hui-collection-sub-cu {
background-position: -2px -18px;
}
#hui-collection .hui-bar-collection-closet .hui-bar-collection-closet-list a .hui-collection-img-wrap .hui-collection-sub-jiang {
background-position: -2px -2px;
}
#hui-collection .hui-bar-collection-closet .hui-bar-collection-closet-list .hui-collection-under {
display: block;
width: 75px;
height: 75px;
text-align: center;
max-height: 75px;
max-width: 75px;
_width: 75px;
_height: 75px;
}
#hui-collection .hui-bar-collection-footer {
padding: 15px 15px;
text-align: center;
}
#hui-collection .hui-bar-collection-footer .hui-tips {
margin-top: 10px;
}
#hui-collection .hui-bar-collection-footer .hui-tips em {
color: #fa8200;
}
#hui-collection .hui-bar-collection-footer .hui-collection-collected {
display: none;
}
#hui-collection .hui-bar-collection-footer .hui-collection-no-collect {
display: inline-block;
}
#hui-collection .hui-collection-already .hui-collection-collected {
display: inline-block;
}
#hui-collection .hui-collection-already .hui-collection-no-collect {
display: none;
}
#hui-collection .collection-done .hui-button-star-valid {
display: none;
}
#hui-collection .collection-done .hui-button-star-invalid {
display: inline-block;
}
#hui-collection .collection-todo .hui-button-star-invalid {
display: inline-block;
}
#hui-collection .collection-todo .hui-button-star-valid {
display: none;
}
#hui-collection .hui-collection-title {
font-size: 14px;
color: #333;
color: #fa8200;
font-family: arial, helvetica, sans-serif;
text-align: justify;
display: inline-block;
height: 22px;
vertical-align: super;
font-weight: bolder;
*vertical-align: 3px;
}
#hui-collection.hui-collection-not-in .hui-sp-collection-number {
display: none;
}
#hui-collection.hui-collection-not-in .hui-collection-in-btn {
display: block;
}
#hui-collection .hui-sp-star {
background-position: -428px -62px;
}
#hui-collection .hui-sp-already-star {
background-position: -446px -62px;
}
#hui-popup-collection-cancel-dialog {
z-index: 100000000;
font-family: '\5B8B\4F53', Arial, Helvetica, sans-serif;
}
#YOUDAOGWZS_success_in_collection {
position: fixed;
left: 70px;
bottom: 90px;
width: 380px;
height: 280px;
background: #fff;
z-index: 6600;
font-family: '\5B8B\4F53', Arial, Helvetica, sans-serif;
text-align: left;
border: 1px solid #dfdfdf;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
border-top: 3px solid #ffc433;
z-index: 2147483641;
}
#YOUDAOGWZS_success_in_collection.no-recommand-list {
height: 110px;
}
#YOUDAOGWZS_success_in_collection.no-recommand-list .hui-tips {
margin-top: 40px;
}
#YOUDAOGWZS_success_in_collection .hui-close {
position: absolute;
right: 15px;
top: 15px;
width: 20px;
height: 20px;
text-indent: -9999px;
background-position: -440px -420px;
cursor: pointer;
}
#YOUDAOGWZS_success_in_collection .hui-tips {
font-size: 15px;
font-weight: bold;
text-align: center;
margin: 20px 0 5px;
}
#YOUDAOGWZS_success_in_collection .hui-tips .hui-sp-success {
display: inline-block;
height: 22px;
width: 22px;
background-position: -504px -38px;
vertical-align: -6px;
*vertical-align: -3px;
margin: 0 7px 0 0;
}
#YOUDAOGWZS_success_in_collection .hui-paragraph {
color: #666;
text-align: center;
margin: 10px 0;
}
#YOUDAOGWZS_success_in_collection .hui-paragraph .hui-paragraph-inform .hui-mod-except {
text-decoration: underline;
margin-left: 10px;
}
#YOUDAOGWZS_success_in_collection .hui-paragraph .hui-paragraph-price-change {
margin-left: 12px;
text-decoration: underline;
}
#YOUDAOGWZS_success_in_collection .hui-paragraph .hui-paragraph-price-change .hui-target-price-change-page {
color: #666;
}
#YOUDAOGWZS_success_in_collection .hui-go-to-colletion-page {
color: #0000ff;
margin-bottom: 20px;
text-decoration: underline;
}
#YOUDAOGWZS_success_in_collection .hui-recon-reson {
border-top: 1px solid #ddd;
text-indent: 40px;
line-height: 40px;
color: #666;
}
#YOUDAOGWZS_success_in_collection .hui-app-disc {
border-top: 1px solid #ddd;
color: #666;
font-size: 14px;
font-weight: bolder;
text-align: center;
padding-top: 20px;
}
#YOUDAOGWZS_success_in_collection .hui-app-tips {
padding-left: 56px;
margin-top: 20px;
font-size: 12px;
color: #ccc;
}
#YOUDAOGWZS_success_in_collection .hui-app-info {
padding-left: 56px;
margin-top: 15px;
}
#YOUDAOGWZS_success_in_collection .hui-app-info .app-promote-qrcode {
width: 90px;
height: 90px;
float: left;
margin-right: 15px;
}
#YOUDAOGWZS_success_in_collection .hui-app-info .app-promote-qrcode img {
height: 90px;
width: 90px;
max-height: 90px;
max-width: 90px;
}
#YOUDAOGWZS_success_in_collection .hui-app-info .app-promote-install {
overflow: hidden;
zoom: 1;
}
#YOUDAOGWZS_success_in_collection .hui-app-info .app-promote-install a {
display: block;
width: 152px;
height: 38px;
overflow: hidden;
text-indent: -999em;
}
#YOUDAOGWZS_success_in_collection .hui-app-info .app-promote-install .iphone {
background-position: 0 0;
}
#YOUDAOGWZS_success_in_collection .hui-app-info .app-promote-install .android {
background-position: 0 -40px;
margin-bottom: 15px;
}
#YOUDAOGWZS_success_in_collection .hui-content {
padding-left: 25px;
}
#YOUDAOGWZS_success_in_collection .hui-content li {
width: 30%;
float: left;
list-style: none;
}
#YOUDAOGWZS_success_in_collection .hui-content li .image-wrapper {
position: relative;
text-align: center;
}
#YOUDAOGWZS_success_in_collection .hui-content li .image-wrapper img {
width: 79px;
height: 79px;
margin: 0 auto;
border: 1px solid #eee;
}
#YOUDAOGWZS_success_in_collection .hui-content li .image-wrapper i {
position: absolute;
top: 0;
left: 10px;
width: 35px;
height: 29px;
text-indent: -9999px;
background-position: -455px -33px;
}
#YOUDAOGWZS_success_in_collection .hui-content li .head-wrapper {
position: absolute;
width: 100%;
height: 20px;
}
#YOUDAOGWZS_success_in_collection .hui-content li .content-wrapper .hui-recommand-price {
text-align: center;
}
#YOUDAOGWZS_success_in_collection .hui-content li .hui-lowest {
display: inline-block;
width: 13px;
height: 13px;
font-size: 0;
line-height: 0;
background-position: -258px -3px;
}
#YOUDAOGWZS_success_in_collection .hui-content li .hui-recommand-current-price {
color: #fa8200;
text-align: center;
font-weight: bolder;
}
#YOUDAOGWZS_success_in_collection .hui-content li .hui-recommand-origin-price {
color: #ccc;
text-decoration: line-through;
}
#hui_plugin_success_in_collection,
.success-info {
height: 21px;
width: 300px;
background-color: #fcdab7;
border: solid 1px #ff972e;
color: #2d2e30;
padding: 5px 10px 0 10px!important;
overflow: hidden;
margin-top: 8px;
margin-left: 8px;
font-size: 12px;
line-height: 16px !important;
box-sizing: content-box;
}
#hui_plugin_success_in_collection.success-6pm,
.success-info.success-6pm {
height: 40px;
width: 234px;
line-height: 20px !important;
margin-left: 0;
}
#hui_plugin_success_in_collection.success-6pm .higligth.pull-right,
.success-info.success-6pm .higligth.pull-right {
float: none;
display: block;
}
#hui_plugin_success_in_collection span,
.success-info span {
margin-right: 30px;
width: auto !important;
}
#hui_plugin_success_in_collection span a,
.success-info span a {
color: #e6490b;
text-decoration: none;
}
#hui_plugin_success_in_collection span.txt,
.success-info span.txt {
float: left;
}
#hui_plugin_success_in_collection .hui-target-price-change-page,
.success-info .hui-target-price-change-page {
color: #e6490b;
text-decoration: none;
}
#hui_plugin_success_in_collection .higligth,
.success-info .higligth {
color: #e6490b;
text-decoration: none;
}
#hui_plugin_success_in_collection .higligth.pull-right,
.success-info .higligth.pull-right {
float: right;
}
.hui-read {
color: #a7a7a7;
font-size: 12px;
}
#hui-dialog-collection-change-except {
position: fixed;
left: 680px;
top: 90px;
width: 340px;
z-index: 6700;
font-family: '\5B8B\4F53', Arial, Helvetica, sans-serif;
text-align: left;
border: 1px solid #dfdfdf;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
border-top: 3px solid #ffc433;
z-index: 2147483641;
}
#hui-dialog-collection-change-except .deprice-shops-setting ul {
display: inline-block;
*display: inline;
*zoom: 1;
vertical-align: top;
}
#hui-dialog-collection-change-except .deprice-shops-setting ul li {
margin-bottom: 10px;
}
#hui-dialog-collection-change-except .deprice-shops-setting ul li input {
margin-right: 5px;
bottom: 0;
}
#hui-dialog-collection-change-except .deprice-email-setting {
margin-top: 10px;
}
#hui-dialog-collection-change-except .deprice-email-setting label {
display: inline-block;
font-weight: normal;
}
#hui-dialog-collection-change-except .deprice-email-setting .youdaoGWZS_expect_price_r {
display: inline-block;
*display: inline;
*zoom: 1;
}
#hui-dialog-collection-change-except .deprice-email-setting .youdaoGWZS_expect_price_r .text-input {
width: 150px;
}
#hui-dialog-collection-change-except .deprice-email-setting .youdaoGWZS_expect_price_tips {
display: none;
margin-top: 10px;
}
#hui-dialog-collection-change-except .youdaoGWZS_dr_dialog-ft {
margin: 20px 0 12px;
}
#hui-dialog-collection-change-except .youdaoGWZS_dr_dialog-fragments {
position: absolute;
top: 54px;
right: 140px;
z-index: 2;
background: #fff;
}
#hui-dialog-collection-change-except .youdaoGWZS_dr_dialog-fragments .recommend-shops-lists-toggle {
display: block;
width: 18px;
height: 18px;
background-position: -440px -129px;
}
#hui-dialog-collection-change-except .youdaoGWZS_dr_dialog-fragments .recommend-shops-lists-wrapper {
width: 160px;
border: 1px solid #dfdfdf;
padding: 10px;
margin-top: -11px;
display: none;
position: absolute;
top: 0px;
left: 30px;
background: #fff;
}
#hui-dialog-collection-change-except .youdaoGWZS_dr_dialog-fragments .recommend-shops-lists-wrapper p {
font-weight: bold;
}
#hui-dialog-collection-change-except .youdaoGWZS_dr_dialog-fragments .recommend-shops-lists-wrapper .recommend-shops-arrow {
position: absolute;
left: -9px;
top: 12px;
width: 10px;
height: 13px;
background-position: -517px -147px;
}
#hui-dialog-collection-change-except .youdaoGWZS_dr_dialog-fragments .recommend-shops-lists-wrapper .recommend-shops-lists {
overflow: hidden;
zoom: 1;
}
#hui-dialog-collection-change-except .youdaoGWZS_dr_dialog-fragments .recommend-shops-lists-wrapper .recommend-shops-lists li {
float: left;
margin-right: 10px;
}
.hui-shopping-comment {
float: right;
border-left: 1px solid #ededed;
text-align: center;
}
.hui-shopping-comment .hui-sp11 {
position: relative;
z-index: 9;
display: inline-block;
height: 50px;
padding: 0 10px;
}
.hui-shopping-comment .hui-sp7 {
margin-top: 5px;
}
.debug-hui-sp {
background-image: url("http://shared.ydstatic.com/armani/m3.9.8/images/tag_sp.png?v=458595");
background-repeat: no-repeat;
}
.debug-hui-sp1 {
background-image: url("http://shared.ydstatic.com/armani/m3.9.8/images/search/scstarb.png?v=458595");
background-repeat: no-repeat;
}
.hui-shoppingtool .hui-shopping-comment {
position: relative;
}
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox {
position: absolute;
left: auto;
right: -1px;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 0px;
width: 400px;
}
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-tags .hui-tags-hd {
font-weight: bold;
color: #333;
font-size: 12px;
padding: 12px 10px;
border-bottom: #efefef solid 1px;
}
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-tags .hui-tags-hd .hui-count {
color: #fa8200;
}
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-tags .hui-tags-hd span {
color: #999;
}
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-tags .hui-tags-hd .hui-star,
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-tags .hui-tags-hd .hui-rate {
float: right;
}
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-tags .hui-tags-hd .hui-rate {
color: #fa8200;
margin-left: 5px;
font-size: 15px;
}
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-tags .hui-tags-hd .hui-star {
background-position: 0 0;
background-repeat: repeat-x;
display: block;
width: 90px;
height: 18px;
}
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-tags .hui-tags-hd .hui-star .hui-star-b {
background-position: 0 -20px;
background-repeat: repeat-x;
display: block;
width: 90px;
height: 18px;
}
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-tags .hui-tags-bd {
padding: 10px 10px 0 10px;
}
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-tags .hui-tags-bd .hui-tags-item {
background-position: 0 -143px;
height: 24px;
line-height: 24px;
float: left;
padding-left: 7px;
position: relative;
margin: 0 10px 10px 0;
word-break: keep-all;
white-space: nowrap;
}
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-tags .hui-tags-bd .hui-tags-item:hover,
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-tags .hui-tags-bd .hui-tags-item:active {
background-position: 0 -191px;
}
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-tags .hui-tags-bd .hui-tags-item:hover span,
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-tags .hui-tags-bd .hui-tags-item:active span {
background-position: 100% -215px;
}
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-tags .hui-tags-bd .hui-tags-item span {
background-position: 100% -167px;
display: inline-block;
padding-right: 5px;
color: #999;
cursor: pointer;
}
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-tags .hui-tags-bd .hui-tags-item em {
position: absolute;
width: 12px;
height: 13px;
text-indent: -999em;
overflow: hidden;
top: auto;
bottom: -5px;
right: -5px;
display: none;
}
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-tags .hui-tags-bd .hui-tags-bad {
height: 68px;
overflow: hidden;
*position: relative;
}
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-tags .hui-tags-bd .hui-tags-good {
height: 34px;
overflow: hidden;
*position: relative;
}
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-tags .hui-tags-bd .hui-tags-bad .hui-tags-item {
color: #fd8712;
}
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-tags .hui-tags-bd .hui-tags-good .hui-tags-item {
color: #1163a3;
}
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-tags .hui-tags-bd .hui-tags-good .hui-tags-item:hover,
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-tags .hui-tags-bd .hui-tags-good .hui-tags-item:active {
background-position: 0 -239px;
}
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-tags .hui-tags-bd .hui-tags-good .hui-tags-item:hover span,
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-tags .hui-tags-bd .hui-tags-good .hui-tags-item:active span {
background-position: 100% -263px;
}
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-comment {
padding: 10px;
border-bottom: #efefef solid 1px;
margin-bottom: 10px;
}
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-comment h3 {
color: #333;
}
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-comment ul li {
padding: 5px 0;
border-bottom: #efefef dashed 1px;
font-size: 12px;
}
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-comment ul li .colorf00 {
color: #fa8200;
}
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-comment ul li .hui-review-comment-more {
color: #1163a3;
}
.hui-shoppingtool .hui-shopping-comment .hui-shopping-lightbox .hui-review-comment .item-last {
border-bottom: none 0;
padding: 5px 0 0 0;
}
/*container.less*/
body {
margin: 0 !important;
padding: 0 !important;
}
.hui-shoppingtool {
background-color: #fdfdfd;
border-color: #dbdbdb #f1f1f1 #f1f1f1 #f1f1f1;
border-width: 1px 1px 0;
border-style: solid;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
bottom: 0;
box-shadow: -1px -2px 5px rgba(0, 0, 0, 0.1);
height: 50px;
position: fixed;
width: 100%;
z-index: 2147483647;
_position: absolute;
font: 12px/1.5 "\5b8b\4f53";
}
.hui-shoppingtool table {
margin: 0;
table-layout: auto;
}
.hui-shoppingtool ul,
.hui-shoppingtool li {
margin: 0;
}
.hui-shopping-min {
width: 340px;
}
.hui-shopping-min .hui-shopping-cont {
display: none;
}
.hui-shopping-not-onekey {
width: 284px;
}
.hui-shopping-ghost {
width: 0;
left: 0;
}
.hui-shoppingtool .hui-ff2 {
font-family: "Microsoft YaHei";
}
.hui-shoppingtool .hui-fz12 {
font-size: 12px;
}
.hui-shoppingtool .hui-fz16 {
font-size: 16px;
}
.hui-shoppingtool .hui-color333 {
color: #333;
}
.hui-shoppingtool .hui-color999 {
color: #999;
}
.hui-shoppingtool .hui-colorb2,
.hui-shoppingtool .hui-colorb2 a {
color: #b2b2b2;
}
.hui-shoppingtool .hui-fwb {
font-weight: bold;
}
.hui-shoppingtool .hui-tac {
text-align: center;
}
.hui-shoppingtool .hui-fl {
float: left;
}
.hui-shoppingtool .hui-fr {
float: right;
}
.hui-shoppingtool .hui-clearfix:after {
content: '.';
display: block;
visibility: hidden;
height: 0;
line-height: 0;
font-size: 0;
clear: both;
}
.hui-shoppingtool .hui-clearfix {
clear: both;
zoom: 1;
}
.hui-shoppingtool a {
text-decoration: none;
color: #666;
}
.hui-shoppingtool a:hover {
text-decoration: none;
}
.hui-minishoppingtool {
width: 20px;
}
.hui-minishoppingtool .hui-shopping-cont {
display: none;
}
.hui-minishoppingtool .hui-shopping-nav {
display: none;
}
.hui-minishoppingtool .hui-sp5 {
background-position: -85px -3px;
}
.hui-minishoppingtool .hui-sp5:hover {
background-position: -85px -14px;
}
.hui-shoppingtool td {
vertical-align: top;
padding: 0;
}
.hui-shoppingtool .hui-shopping-lh {
color: #fa8200;
}
.hui-shoppingtool .hui-shopping-nav {
width: 519px;
}
.hui-shoppingtool .hui-shopping-nav-taosimilar {
width: 870px;
}
.hui-shoppingtool .hui-shopping-ext {
float: right;
display: inline;
*float: none;
}
.hui-shoppingtool .hui-shopping-logo .hui-sp11 {
background-position: 0 47px;
background-color: #fff;
}
.hui-shoppingtool .hui-shopping-lightbox {
position: absolute;
width: 332px;
border: 1px solid #dfdfdf;
background-color: #fff;
border-radius: 5px;
border-bottom-left-radius: 0;
border-top-width: 0;
top: auto;
bottom: 49px;
z-index: 2;
left: -1px;
box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
display: none;
/*top: 100px;*/
text-align: left;
}
.hui-shoppingtool .hui-shopping-sidebar {
color: red;
}
.hui-shoppingtool .hui-box-active .hui-shopping-lightbox {
display: none !important;
}
.hui-shoppingtool .hui-active .hui-shopping-lightbox {
display: block;
/*top: auto;*/
}
.hui-shoppingtool .hui-active-right .hui-shopping-lightbox {
left: auto;
right: 15px;
*right: 30px;
_right: 29px;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 0;
}
.hui-shoppingtool .hui-shopping-lightbox .hui-shopping-lightbox-title {
border-top: 1px solid #fff;
height: 36px;
line-height: 36px;
font-size: 13px;
background-color: #f6f7f9;
text-indent: 10px;
border-bottom: 1px solid #fff;
}
.hui-shoppingtool .hui-lightbox-price {
line-height: 1.6;
}
.hui-shoppingtool .hui-shopping-lightbox .hui-price-recommend {
text-align: center;
padding: 8px 0;
}
.hui-shoppingtool .hui-shopping-lightbox .hui-shopping-lightbox-hd {
height: 3px;
background-color: #fdd472;
border-bottom: 1px solid #deba64;
font-size: 0;
line-height: 0;
overflow: hidden;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
.hui-shoppingtool .hui-shopping-lightbox .hui-shopping-brand-ad {
height: 33px;
border-bottom: 1px dashed #dfdfdf;
overflow: hidden;
}
.hui-shoppingtool .hui-shopping-lightbox .hui-shopping-brand-ad .hui-brand-ad-img {
width: 130px;
height: 30px;
position: relative;
top: 2px;
}
.hui-shoppingtool .hui-shopping-lightbox .hui-shopping-brand-ad .hui-brand-ad-cont {
font-size: 12px;
color: #fa8200;
text-decoration: none;
float: right;
position: relative;
top: 9px;
right: 13px;
}
.hui-shoppingtool .hui-shopping-lightbox .hui-price-recommend .hui-sp10 {
vertical-align: top;
margin-right: 5px;
}
.hui-shoppingtool .hui-lightbox-price li {
border-bottom: 1px dashed #dfdfdf;
}
.hui-shoppingtool .hui-lightbox-price .hui-sp9 {
vertical-align: top;
margin-right: 5px;
margin-top: 2px;
}
.hui-shoppingtool .hui-icon-cont {
display: inline-block;
width: 22px;
height: 22px;
margin-top: 6px;
}
/* 商品列表 */
.hui-shoppingtool .hui-item-list li {
border: 1px solid #f1f1f1;
border-width: 0 1px 1px 0;
position: relative;
float: left;
width: 110px;
height: 185px;
text-align: center;
}
.hui-shoppingtool .hui-item-list .hui-item-thumb {
width: 90px;
height: 90px;
position: relative;
margin: 10px auto;
text-align: center;
}
.hui-shoppingtool .hui-item-list .hui-item-thumb .hui-icon-lszd {
position: absolute;
top: 0;
right: 0;
}
.hui-shoppingtool .hui-item-list .hui-item-list-last {
border-right-width: 0;
}
.hui-shoppingtool .hui-item-list .hui-item-detail {
width: 90px;
margin: 0 auto;
text-align: left;
line-height: 1.2;
}
.hui-shoppingtool .hui-item-list .hui-item-detail a {
display: inline-block;
width: 90px;
height: 27px;
overflow: hidden;
word-break: break-all;
word-wrap: break-word;
}
.hui-shoppingtool .hui-item-list .hui-item-detail .hui-sp20 {
color: #9f5f42;
line-height: 16px;
text-indent: 3px;
}
.hui-shoppingtool .hui-item-list .hui-item-detail .hui-fwb {
margin: 1px 0 2px;
}
.hui-shoppingtool .hui-item-ft {
padding: 8px 10px 8px 0;
text-align: right;
}
.hui-shoppingtool .hui-item-ft .hui-sp16 {
vertical-align: top;
margin: 3px 0 0 5px;
*margin: 0 0 0 5px;
}
.hui-shoppingtool .hui-item-ft a:hover {
color: #666;
}
.hui-shoppingtool .hui-item-ft a:hover .hui-sp16 {
background-position: -278px -3px;
}
/* Tips提示框 */
.hui-shoppingtool .hui-shopping-commontips {
position: absolute;
height: 16px;
line-height: 16px;
border-radius: 2px;
border: 1px solid #deba64;
background-color: #ffc433;
color: #854e13;
padding: 0 5px;
top: -15px;
width: 60px;
_width: 80px;
text-align: center;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
left: -15px;
font-size: 12px;
}
.hui-button-bar-wrapper .hui-shopping-commontips {
z-index: 2;
}
.hui-shoppingtool .hui-shopping-commontips .hui-sp22 {
position: absolute;
left: 50%;
margin-left: -4px;
top: 16px;
z-index: 2;
font-size: 0;
line-height: 0;
/*display: none;*/
}
.hui-shoppingtool .hui-info-box {
z-index: 10;
background-color: #fff29e;
position: absolute;
bottom: 50px;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}
.hui-shoppingtool .hui-info-box .hui-box-close {
width: 10px;
height: 10px;
display: block;
position: absolute;
top: 10px;
right: 10px;
text-indent: 9999px;
overflow: hidden;
background-position: -76px -40px;
}
.hui-shoppingtool .hui-info-box .hui-box-close:hover {
background-position: -86px -40px;
}
.hui-shoppingtool .hui-info-box .hui-box-corner {
/*background-position: -97px -204px;*/
display: block;
width: 0px;
height: 0px;
border-style: dashed dashed dashed solid;
border-top: #fff29e solid 9px;
border-left: transparent dashed 9px;
border-right: transparent dashed 9px;
border-bottom: transparent dashed 9px;
position: absolute;
left: 30px;
bottom: -15px;
_bottom: -35px;
}
.hui-shoppingtool .hui-info-box .hui-box-corner-right {
display: block;
width: 0px;
height: 0px;
border-top: #fff29e solid 9px;
border-left: transparent dashed 9px;
border-right: transparent dashed 9px;
border-bottom: transparent dashed 9px;
position: absolute;
right: 30px;
bottom: -15px;
_bottom: -35px;
}
.hui-shoppingtool .hui-info-box .hui-feature-new {
background-position: 0 -214px;
display: block;
width: 36px;
height: 34px;
position: absolute;
left: 0;
top: 0;
}
.hui-shoppingtool .hui-info-box .hui-feature-logo {
background-position: -37px -216px;
display: block;
width: 58px;
height: 70px;
position: absolute;
right: 0;
bottom: 0;
}
/*手机推广,临时*/
.hui-shoppingtool .hui-app-promote {
border-right: none;
float: left;
position: relative;
height: 55px;
line-height: 55px;
}
.hui-shoppingtool .hui-app-promote a {
color: blue;
margin-left: 10px;
}
.hui-shoppingtool .hui-app-promote a:hover {
text-decoration: underline;
}
/*临时临时*/
.hui-shopping-black {
width: 250px;
}
.hui-shopping-black.hui-minishoppingtool {
width: 20px;
}
.hui-shopping-black .hui-txt-link {
border: none;
width: 150px;
}
.hui-shopping-black .hui-txt-link a {
display: block;
font-size: 14px;
line-height: 50px;
position: relative;
}
.hui-shopping-black .hui-txt-link a:after {
content: '';
display: block;
border-style: solid;
border-width: 6px 0 6px 6px;
border-color: transparent transparent transparent #999;
position: absolute;
right: 0;
top: 19px;
}
.hui-shopping-black .hui-txt-link a:hover {
text-decoration: underline;
}
.hui-shopping-csext {
margin-right: 20px;
}
.hui-shopping-csext .hui-sp11 {
display: inline-block;
height: 50px;
position: relative;
z-index: 9;
}
.hui-shopping-cs {
position: relative;
float: left;
text-align: center;
}
.hui-shopping-cs .hui-cs-item {
display: inline-block;
border: 1px solid #fdfdfd;
border-width: 0 1px;
height: 50px;
line-height: 50px;
*zoom: 1;
*display: inline;
padding: 0 9px;
margin: 0 15px;
position: relative;
}
.hui-shopping-csext .hui-active .hui-cs-item {
border-color: #dfdfdf;
background-color: #fff;
z-index: 9;
}
.hui-shopping-csext .hui-active .hui-sp11 {
background-position: 0 47px;
}
.hui-shopping-cs .hui-shopping-lightbox {
left: 15px;
*left: 0;
}
.hui-shoppingtool .hui-item-list li {
height: 175px;
}
.hui-shoppingtool .hui-cs-all .hui-item-list li {
height: 185px;
}
#GWZS-discountInfo.hui-shopping-lightbox {
position: absolute;
top: auto;
bottom: 70px;
left: 10px;
width: 350px;
/*display: none;*/
}
#GWZS-discountInfo.hui-shopping-lightbox .hui-discount-bd {
height: 224px;
width: 350px;
}
#GWZS-discountInfo {
z-index: 2147483646;
}
#GWZS-discountInfo div,
#GWZS-discountInfo form,
#GWZS-discountInfo ul,
#GWZS-discountInfo li {
float: none;
}
#GWZS-discountInfo {
color: #333;
text-align: left;
font-family: '\5B8B\4F53', Arial, Helvetica, sans-serif;
font-size: 12px;
}
#GWZS-discountInfo .hui-discount-hd {
background-color: #f7f7f7;
border-bottom: 1px solid #dedede;
height: 40px;
top: 0;
left: 0;
position: relative;
zoom: 1;
*width: 100%;
*height: 40px;
}
#GWZS-discountInfo .hui-discount-hd h3 {
position: absolute;
bottom: 12px;
_bottom: 10px;
left: 15px;
margin: 0;
padding: 0;
text-indent: -9999px;
width: 110px;
height: 18px;
background-position: 0 -566px;
}
#GWZS-discountInfo .hui-discount-hd h4 {
margin: 0;
padding: 0;
color: #8a8a8a;
position: absolute;
top: 11px;
left: 127px;
font-weight: bold;
font-size: 13px;
line-height: 1.4;
font-family: Arial, Helvetica, sans-serif;
}
#GWZS-discountInfo .hui-discount-hd .discount-info-close {
position: absolute;
right: 15px;
top: 15px;
width: 20px;
height: 20px;
text-indent: -9999px;
background-position: -440px -420px;
_background-position: 0 -280px;
}
#GWZS-discountInfo .hui-discount-bd {
border-bottom: 1px solid #dedede;
background-color: #fff;
height: 224px;
margin: 0;
}
#GWZS-discountInfo .hui-discount-ft {
position: absolute;
right: 0px;
bottom: 1px;
width: 16px;
background-color: #f7f7f7;
height: 34px;
color: #f7f7f7;
overflow: hidden;
padding: 3px;
}
#GWZS-discountInfo .hui-discount-ft .hui-discount-suggest {
width: 14px;
height: 14px;
background-position: -105px -25px;
text-indent: -999px;
display: block;
padding: 0;
margin: 0;
}
#GWZS-discountInfo .hui-discount-ft .GWZS-setting {
color: #333;
display: block;
height: 15px;
font-size: 12px;
line-height: 16px;
padding: 0 0 0 21px;
margin-bottom: 5px;
background-position: -460px -420px;
overflow: hidden;
}
#GWZS-discountInfo .hui-discount-ft .GWZS-setting:hover {
background-position: -520px -420px;
text-decoration: underline;
}
#GWZS-discountInfo .hui-discount-ft .GWZS-feedback {
display: block;
height: 16px;
overflow: hidden;
font-size: 12px;
line-height: 16px;
padding: 0 0 0 21px;
background-position: -104px 0;
color: #333;
}
#GWZS-discountInfo .hui-discount-ft .GWZS-feedback:hover {
background-position: -104px -40px;
text-decoration: underline;
}
/* ==confirmCloseDiscountInfo== */
#youdaoGWZS_confirmCloseDiscountInfo {
width: 280px;
position: absolute;
font-family: '\5B8B\4F53', Arial, Helvetica, sans-serif;
text-align: left;
border: 1px solid #dfdfdf;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
border-top: 3px solid #ffc433;
}
#youdaoGWZS_confirmCloseDiscountInfo .hui-line {
border-top: 1px solid #fa8200;
border-bottom: 1px solid #fff;
}
#youdaoGWZS_confirmCloseDiscountInfo .hui-confirm-hd {
background-color: #f7f7f7;
border-bottom: 1px solid #dedede;
height: 40px;
position: relative;
}
#youdaoGWZS_confirmCloseDiscountInfo .hui-confirm-hd span {
display: block;
line-height: 18px;
font-size: 14px;
height: 18px;
font-weight: bold;
text-align: left;
position: absolute;
bottom: 10px;
left: 10px;
}
#youdaoGWZS_confirmCloseDiscountInfo .hui-confirm-hd #youdaoGWZS_discountClose {
display: block;
width: 12px;
height: 12px;
background-position: -57px 0;
position: absolute;
right: 10px;
top: 15px;
cursor: pointer;
}
#youdaoGWZS_confirmCloseDiscountInfo .hui-confirm-hd #youdaoGWZS_discountClose:HOVER {
background-position: -69px 0;
}
#youdaoGWZS_confirmCloseDiscountInfo .youdaoGWZS_dis_content {
background-color: #F7F7F7;
font-size: 11px;
color: #333 ;
padding: 0 20px;
text-align: center;
}
#youdaoGWZS_confirmCloseDiscountInfo .youdaoGWZS_dis_content .youdaoGWZS_dis_first {
text-align: left;
padding: 20px 0 0 0;
margin: 0;
color: #999;
}
#youdaoGWZS_confirmCloseDiscountInfo .youdaoGWZS_dis_content .youdaoGWZS_dis_second {
padding: 10px 0;
margin: 0;
}
#youdaoGWZS_confirmCloseDiscountInfo .youdaoGWZS_dis_content .youdaoGWZS_dis_third input {
margin: 0px 5px 0 5px;
vertical-align: middle;
}
#youdaoGWZS_confirmCloseDiscountInfo .youdaoGWZS_dis_content .youdaoGWZS_dis_third font {
margin: 0px 28px 0 0;
}
#youdaoGWZS_confirmCloseDiscountInfo .youdaoGWZS_dis_content .youdaoGWZS_dis_fourth {
padding: 18px 0 10px 0 ;
margin: 0;
}
#youdaoGWZS_confirmCloseDiscountInfo .youdaoGWZS_dis_content .youdaoGWZS_dis_fourth .hui-confirm-btn {
background-position: -330px -411px;
display: block;
width: 83px;
height: 27px;
border: none 0;
padding: 0;
margin: 0 auto;
line-height: 27px;
color: #fff;
font-size: 16px;
}
#youdaoGWZS_confirmCloseDiscountInfo .youdaoGWZS_dis_content .youdaoGWZS_dis_fourth .hui-confirm-btn:hover {
background-position: -820px -401px;
text-decoration: none;
}
/* ==end confirmcloseDiscountInfo== */
.hui-shopping-douban {
float: right;
border-left: 1px solid #ededed;
text-align: center;
position: relative;
z-index: 2;
}
.hui-shopping-douban .hui-sp11 {
display: inline-block;
height: 50px;
position: relative;
z-index: 9;
padding: 0 10px;
}
.hui-shopping-douban .hui-douban-cont {
padding: 10px;
}
.hui-shopping-douban .hui-douban-rates {
margin-bottom: 11px;
}
.hui-shopping-douban .hui-douban-rates .hui-sp28 {
*display: inline;
*zoom: 1;
}
.hui-shopping-douban .hui-douban-rates .hui-douban-point {
font-family: Arial;
margin: 0 5px;
}
.hui-shopping-douban .hui-douban-comment dt {
font-size: 14px;
color: #666;
margin: 5px 0;
}
.hui-shopping-douban .hui-douban-comment dd {
line-height: 1.4em;
_margin-top: 10px;
}
.hui-shopping-douban .hui-douban-extinfo {
margin: 16px 0 6px;
}
.hui-shopping-douban .hui-douban-extinfo .hui-sp30,
.hui-shopping-douban .hui-douban-extinfo .hui-sp31 {
margin-right: 5px;
}
.hui-shopping-douban .hui-douban-extinfo .hui-sp31 {
margin-left: 20px;
}
.hui-shopping-douban .hui-douban-nocomment {
text-align: center;
padding: 20px 0;
}
.hui-shopping-douban .hui-sp27 {
margin-top: 3px;
}
.hui-shopping-douban .hui-shopping-lightbox {
left: auto;
right: -1px;
border-bottom-right-radius: 0;
border-bottom-left-radius: 5px;
width: 330px;
}
.hui-shopping-douban .hui-douban-ft {
border-top: 1px solid #f1f1f1;
padding: 7px 10px 6px 0;
text-align: right;
}
.hui-shopping-douban .hui-douban-ft a {
color: #999;
}
.hui-shopping-douban .hui-douban-ft .hui-sp16 {
vertical-align: top;
margin: 3px 0 0 5px;
font-size: 0;
line-height: 0;
overflow: hidden;
}
.hui-shopping-douban .hui-douban-ft a:hover .hui-sp16 {
background-position: -278px -3px;
}
.hui-shopping-faq {
float: right;
border-left: 1px solid #ededed;
text-align: center;
}
.hui-shopping-faq .hui-sp8 {
margin-top: 5px;
}
.hui-shopping-faq .hui-sp11 {
display: inline-block;
height: 50px;
position: relative;
z-index: 9;
padding: 0 10px;
}
.hui-shopping-feed {
border-right: 1px solid #ededed;
border-left: 2px solid #f1f1f1;
height: 50px;
float: left;
position: relative;
}
.hui-shopping-feed .hui-sp11 {
display: inline-block;
height: 50px;
position: relative;
z-index: 9;
cursor: pointer;
}
.hui-shopping-feed .hui-sp3 {
margin: 14px 10px 0;
cursor: pointer;
}
.hui-shopping-feed .hui-shopping-lightbox {
line-height: 1.3;
}
.hui-shopping-feed .hui-shopping-lightbox .hui-nofeedtips {
text-align: center;
padding: 25px;
}
.hui-shopping-feed .hui-shopping-lightbox li {
border: 1px solid #f1f1f1;
border-width: 0 1px 1px 0;
position: relative;
float: left;
width: 110px;
height: 174px;
}
.hui-shopping-feed .hui-shopping-lightbox .hui-feedlist-last {
border-right-width: 0;
}
.hui-shopping-feed .hui-feed-thumb {
width: 90px;
height: 90px;
position: relative;
margin: 10px auto;
}
.hui-shopping-feed .hui-feed-detail {
width: 90px;
margin: 0 auto;
}
.hui-shopping-feed .hui-feed-detail .hui-shopping-lh {
margin-top: 3px;
}
.hui-shopping-feed .hui-feed-thumb .hui-sp17 {
position: absolute;
top: 3px;
left: -4px;
}
.hui-shopping-feed .hui-feed-setnav {
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
width: 13px;
height: 40px;
background-color: #f7f7f7;
position: absolute;
bottom: 0;
right: 0;
z-index: 9;
padding: 6px 4px 0 4px;
}
.hui-shopping-feed .hui-feed-setnav .hui-feed-setnav-line {
border-top: 1px solid #c6c6c6;
border-bottom: 1px solid #fff;
line-height: 0;
font-size: 0;
overflow: hidden;
margin: 4px 0;
}
.hui-shopping-feed .hui-feed-setnav .hui-sp18,
.hui-shopping-feed .hui-feed-setnav .hui-sp19 {
margin-left: 1px;
overflow: hidden;
font-size: 0;
line-height: 0;
}
.hui-shopping-feed .hui-shopping-feed-page {
height: 14px;
line-height: 14px;
padding: 8px 0;
}
.hui-shopping-feed .hui-shopping-feed-page .hui-feed-pages {
padding: 0 50px;
line-height: 0;
}
.sublist-viewport .title-wrapper a:hover {
color: #df2020;
}
.hui-funtips-wrapper {
position: absolute;
right: 240px;
z-index: 5;
}
.hui-funtips-wrapper .hui-shopping-lightbox {
width: 228px;
}
.hui-funtips-low .hui-shopping-lightbox {
height: 160px;
}
.hui-funtips .hui-shopping-lightbox-hd {
position: relative;
}
.hui-funtips .hui-shopping-lightbox-title .hui-funtips-close {
position: absolute;
font-size: 16px;
font-family: '黑体';
height: 12px;
line-height: 8px;
cursor: pointer;
top: 17px;
right: 10px;
}
.hui-funtips .hui-shopping-lightbox-bd {
text-align: center;
margin: 14px 0 0;
}
.hui-funtips .hui-shopping-lightbox-bd .btn-funtips-go {
display: inline-block;
width: 80px;
font-size: 13px;
height: 24px;
line-height: 24px;
border-radius: 2px;
background-color: #5db95b;
color: #fff;
margin-top: 12px;
margin-bottom: 4px;
}
.hui-funtips .hui-shopping-lightbox-bd .hui-check-tips {
font-size: 12px;
text-align: left;
margin-bottom: 5px;
margin-top: 8px;
}
.hui-funtips .hui-shopping-lightbox-bd .input-check {
width: 11px;
margin-right: 8px;
margin-left: 25px;
margin-top: 2px;
*margin-top: -3px;
*margin-right: 5px;
float: left;
}
.hui-funtips .hui-shopping-lightbox-bd .hui-check-tips label {
cursor: pointer;
}
.hui-funtips .hui-shopping-lightbox-bd .hui-sp43 {
margin-right: 6px;
}
#hui-signin .hui-button-bar-tip {
margin-left: 30px;
}
#hui-signin .hui-button-bar-title {
margin-right: 30px;
}
#hui-signin .hui-is-signin .hui-button-bar-tip {
background-position: -504px -96px;
}
#hui-signin .hui-not-signin .hui-button-bar-tip {
background-position: -504px -71px;
}
#hui-signin .hui-shopping-lightbox-bd {
text-align: center;
margin: 14px 0 0;
}
#hui-signin .hui-shopping-lightbox {
width: 260px;
left: 0;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 0;
}
#hui-signin .hui-shopping-lightbox .punch-tips {
margin: 8px 0;
font-size: 13px;
}
#hui-signin .hui-shopping-lightbox .punch-notice {
text-align: right;
margin: 0 10px 5px 0;
}
#hui-signin .hui-shopping-lightbox .punch-notice a {
color: #1163a3;
}
#hui-signin .hui-shopping-lightbox .punch-notice a:hover {
text-decoration: underline;
}
#hui-signin .hui-shopping-lightbox .btn-punch {
width: 110px;
height: 33px;
line-height: 33px;
display: inline-block;
margin: 10px 0 25px;
background-color: #9cac2a;
border-radius: 2px;
color: #fff;
font-size: 14px;
font-weight: 700;
border-bottom: 1px solid #8a9b22;
box-shadow: 0 1px 1px #f7f7f7;
}
#hui-signin .hui-shopping-lightbox .uname {
color: #000;
}
#hui-signin .hui-shopping-lightbox .punch-progress {
width: 240px;
height: 9px;
border: 1px solid #f1f1f1;
border-radius: 20px;
margin: 50px auto 20px;
position: relative;
box-shadow: inset 0 -4px 3px rgba(0, 0, 0, 0.05);
}
#hui-signin .hui-shopping-lightbox .punch-progress-cont {
border: 1px solid #ee6104;
border-radius: 20px;
display: inline-block;
height: 9px;
float: left;
margin-top: -1px;
background-color: #fe8434;
box-shadow: inset 0 -4px 3px rgba(0, 0, 0, 0.05);
}
#hui-signin .hui-shopping-lightbox .punch-progress-cont .btn-progress {
display: inline-block;
width: 18px;
height: 20px;
background-position: -508px -120px;
position: absolute;
top: -4px;
left: 120px;
}
#hui-signin .hui-shopping-lightbox .punch-progress-cont .btn-progress .hui-tooltips {
left: -83px;
top: -35px;
width: 160px;
}
#hui-signin .hui-shopping-lightbox .punch-progress-cont .btn-progress .hui-tooltips .hui-tooltips-arrow {
left: 86px;
}
.hui-shoppingtool .hui-tooltips {
height: 25px;
line-height: 25px;
background-color: #fefded;
border: 1px solid #e8cca1;
padding: 0 10px;
border-radius: 2px;
position: absolute;
z-index: 11;
color: #666;
box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.1);
width: 132px;
}
.hui-shopping-signin .hint-tips {
left: -50px;
bottom: 53px;
z-index: 1;
width: 169px;
*width: 190px;
font-size: 12px;
}
.hui-shoppingtool .hui-tooltips .hui-tooltips-arrow {
position: absolute;
right: 30px;
top: 25px;
width: 12px;
height: 6px;
background-position: -513px -140px;
}
.hui-shoppingtool .hui-icon-zy {
width: 58px;
height: 64px;
position: absolute;
z-index: 100;
top: -59px;
}
.hui-shoppingtool .hui-icon-azy {
width: 68px;
height: 59px;
position: absolute;
z-index: 100;
top: -34px;
left: -59px;
}
.hui-shopping-historyInfo {
float: right;
display: none;
padding: 10px;
line-height: 30px;
}
.hui-shopping-historyInfo .hui-shopping-historyInfo-red {
color: red;
}
.hui-shopping-historyInfo .youdaoGWZS_plug-history-red {
color: #fa8200;
}
/* author: xiong; moduleName: huiContent; filePath: /Users/xiong/Documents/sourcecode/hui_zhushou/src/app/modules/huiContent */
#hui-content .hui-shopping-lightbox {
width: 380px;
}
#hui-content .hui-button-bar-tip {
background-position: -416px -128px;
}
#hui-content .hui-notify-num {
color: #f63;
margin: 0 4px 0 4px;
}
#hui-content .hui-list {
margin: 0 15px 0 15px;
}
#hui-content .hui-list .hui-content-buy-item {
float: left;
width: 100px;
height: 170px;
display: block;
margin-left: 10px;
margin-bottom: 10px;
}
#hui-content .hui-list .hui-content-buy-item .hui-content-buy-img {
display: block;
width: 100px;
height: 100px;
}
#hui-content .hui-list .hui-content-buy-item .hui-content-buy-title .hui-content-buy-summary {
color: #666666;
height: 36px;
margin-top: 12px;
word-break: break-all;
overflow: hidden;
}
#hui-content .hui-list .hui-content-buy-item .hui-content-buy-title .hui-content-buy-subtitle {
color: #ff6633;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
#hui-content .hui-para {
margin: 15px 0px 11px 13px;
float: left;
width: 276px;
color: #333;
font-size: 13px;
}
#hui-content .hui-content-buy-footer {
margin-bottom: 15px;
text-align: center;
}
#hui-content .hui-content-buy-footer .hui-button {
width: 140px;
height: 34px;
font-size: 14px;
line-height: 35px;
}
#hui-content .hui-content-buy-footer .hui-button span {
font-size: 14px;
}
#hui-content .hui-content-signin-active .hui-button {
background-color: #DFDFDF;
}
.hui-content-buy-signin {
float: left;
margin-top: 10px;
margin-left: 2px;
text-align: center;
}
.hui-content-buy-signin .hui-button {
width: 80px;
height: 24px;
background-color: #66cc66;
line-height: 24px;
padding: 0;
}
.hui-content-buy-signin .hui-button span {
font-size: 12px;
font-weight: normal;
color: #fff;
}
.hui-shoppingtool .hui-sp38 {
display: inline-block;
width: 12px;
height: 12px;
background-position: -343px -81px;
}
.hui-shoppingtool .hui-sp39 {
display: inline-block;
background-position: -325px -105px;
}
.hui-shoppingtool .hui-sp40 {
display: inline-block;
background-position: -342px -105px;
}
.hui-shoppingtool .hui-sp41 {
display: inline-block;
width: 12px;
height: 12px;
background-position: -343px -81px;
}
.hui-shoppingtool .hui-sp41:hover {
display: inline-block;
width: 12px;
height: 12px;
background-position: -355px -81px;
}
#youdaoGWZS-sidebar-right #GWZS-incidentallyBuy {
width: 130px;
}
.hui-dachemai .sublist-viewport .content-wrapper a {
color: #fa8200;
font-weight: bolder;
}
.hui-dachemai .sublist-viewport li {
border-bottom: 1px dashed #ececec;
}
#GWZS-incidentallyBuy .hui-shopping-sidebar-ft a {
display: block;
width: 100%;
height: 100%;
color: #999;
text-align: center;
}
#GWZS-incidentallyBuy .hui-shopping-sidebar-ft a em {
color: #c9c9c9;
font-weight: normal;
}
.hui-origin-price {
color: #ccc;
text-decoration: line-through;
}
/* author: xiong; moduleName: jigsaw; filePath: /Users/xiong/Documents/sourcecode/hui_zhushou/src/app/modules/jigsaw */
.hui-jigsaw {
width: 150px;
background-color: #fff;
z-index: 999;
position: absolute;
left: 0;
bottom: 80px;
z-index: 5;
}
.hui-jigsaw .hui-hd {
margin-bottom: 5px;
position: relative;
}
.hui-jigsaw .hui-hd .hui-sp42 {
float: none;
}
.hui-jigsaw .hui-bd {
margin: 0 auto;
text-align: center;
}
.hui-jigsaw .hui-ft {
margin: 0 auto;
text-align: center;
margin-bottom: 10px;
}
.hui-jigsaw-image {
width: 120px;
height: 120px;
margin: 0 auto;
}
.hui-jigsaw-tip {
height: 15px;
position: relative;
margin: 0 auto;
margin-top: 7px;
margin-bottom: 5px;
}
.hui-jigsaw-try {
width: 65px;
height: 26px;
display: inline-block;
zoom: 1;
margin: 0 auto;
text-align: center;
}
.hui-jigsaw-default .hui-jigsaw-tip {
width: 80px;
background-position: 0 -43px;
}
.hui-jigsaw-default .hui-jigsaw-try {
background-position: -127px -30px;
}
.hui-jigsaw-greet .hui-jigsaw-tip {
width: 120px;
background-position: 0 -59px;
}
.hui-jigsaw-greet .hui-jigsaw-try {
background-position: -127px -60px;
}
.hui-jigsaw-unlucky .hui-jigsaw-tip {
width: 80px;
background-position: 0 -86px;
}
.hui-jigsaw-unlucky .hui-jigsaw-try {
background-position: -127px 0;
}
.hui-jigsaw-close {
position: absolute;
right: 2px;
top: 9px;
height: 15px;
width: 15px;
cursor: pointer;
background-position: -100px 0;
}
.hui-jigsaw-greet .jigsaw-tip-count-1 {
background-position: 0 -29px;
}
.hui-jigsaw-greet .jigsaw-tip-count-2 {
background-position: -18px -29px;
}
.hui-jigsaw-greet .jigsaw-tip-count-3 {
background-position: -39px -29px;
}
.hui-jigsaw-greet .jigsaw-tip-count-4 {
background-position: -59px -29px;
}
.hui-jigsaw-greet .jigsaw-tip-count-5 {
background-position: -80px -29px;
}
.hui-jigsaw-unlucky .jigsaw-tip-count-1 {
background-position: 0 -8px;
}
.hui-jigsaw-unlucky .jigsaw-tip-count-2 {
background-position: -18px -8px;
}
.hui-jigsaw-unlucky .jigsaw-tip-count-3 {
background-position: -39px -8px;
}
.hui-jigsaw-unlucky .jigsaw-tip-count-4 {
background-position: -59px -8px;
}
.hui-jigsaw-unlucky .jigsaw-tip-count-5 {
background-position: -80px -8px;
}
.hui-jigsaw-greet .jigsaw-tip-count,
.hui-jigsaw-unlucky .jigsaw-tip-count {
position: absolute;
top: 2px;
left: 30px;
width: 10px;
height: 10px;
}
.hui-shopping-logo {
border-right: 1px solid #c2c2c2;
float: left;
width: 76px;
}
.hui-shopping-logo .hui-sp11 {
display: block;
height: 50px;
cursor: pointer;
position: relative;
z-index: 9;
}
.hui-shopping-logo .hui-sp1 {
margin-top: 8px;
}
.hui-shopping-logo .hui-shopping-lightbox {
width: 76px;
border-bottom-right-radius: 0;
}
.hui-shopping-logo .hui-logo-nvlist li {
border-bottom: 1px solid #f1f1f1;
text-align: center;
}
.hui-shopping-logo .hui-logo-nvlist li a {
display: block;
height: 12px;
padding: 12px 0;
font-size: 12px;
}
.hui-shopping-logo .hui-logo-nvlist li a:hover {
border: none;
}
/*.hui-shopping-logo .hui-logo-nvlist li a em{
display:none;
}*/
.hui-shopping-logo .hui-logo-nvlist li a .hui-sp {
display: none;
border: none;
}
.hui-shopping-logo .hui-logo-nvlist li a em {
display: inline;
color: #666;
}
.hui-shopping-logo .hui-logo-nvlist li a em .light {
font-style: normal;
color: #fe9300;
}
.hui-shoppingtool .hui-shopping-logo .hui-shopping-commontips {
top: -23px;
width: 77px;
height: 21px;
line-height: 22px;
color: #FFF;
font-weight: bold;
background-color: #FA8100;
text-align: center;
padding: 0;
left: -2px;
border-radius: 0 4px 0 0;
}
#YOUDAOGWZS_menu_setting {
position: fixed;
left: 70px;
bottom: 90px;
width: 330px;
height: 270px;
background: #fff;
z-index: 6600;
font-family: '\5B8B\4F53', Arial, Helvetica, sans-serif;
text-align: left;
border: 1px solid #dfdfdf;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
border-top: 3px solid #ffc433;
}
#YOUDAOGWZS_menu_setting .hui-shopping-lightbox-line {
border-top: 1px solid #fa8200;
border-bottom: 1px solid #fff;
}
#YOUDAOGWZS_menu_setting .hui-shopping-lightbox-hd {
background-color: #f7f7f7;
border-bottom: 1px solid #dedede;
height: 40px;
position: relative;
line-height: 40px;
}
#YOUDAOGWZS_menu_setting .hui-shopping-lightbox-hd .hui-title {
position: absolute;
font-weight: bold;
font-size: 14px;
margin-left: 10px;
color: #333;
}
#YOUDAOGWZS_menu_setting .hui-shopping-lightbox-hd .hui-close {
position: absolute;
right: 15px;
top: 15px;
width: 20px;
height: 20px;
text-indent: -9999px;
background-position: -440px -420px;
cursor: pointer;
}
#YOUDAOGWZS_menu_setting .hui-shopping-lightbox-bd {
padding: 10px 30px 0;
}
#YOUDAOGWZS_menu_setting .hui-shopping-lightbox-bd .hui-setting-intro {
margin: 10px auto 10px;
color: #666666;
font-size: 12px;
line-height: 25px;
}
#YOUDAOGWZS_menu_setting .hui-shopping-lightbox-bd .hui-setting-items .hui-setting-item {
margin: 0 auto;
padding: 0 0 0 20px;
font-size: 12px;
color: #333;
line-height: 30px;
height: 30px;
}
#YOUDAOGWZS_menu_setting .hui-shopping-lightbox-bd .hui-setting-items .hui-setting-item .title {
margin-left: 20px;
font-weight: bold;
}
#YOUDAOGWZS_menu_setting .hui-shopping-lightbox-bd .hui-setting-items .hui-setting-item label {
margin-left: 20px;
color: #666;
}
#YOUDAOGWZS_menu_setting .hui-shopping-lightbox-bd .hui-btns a {
display: inline-block;
width: 86px;
height: 30px;
line-height: 30px;
font-size: 14px;
border: none 0;
padding: 0;
margin: 10px auto;
text-align: center;
border-radius: 4px;
box-shadow: 0px 1px 1px rgba(10, 10, 10, 0.2);
}
#YOUDAOGWZS_menu_setting .hui-shopping-lightbox-bd .hui-btns .hui-confirm-btn {
background-color: #fbbf4a;
margin-left: 40px;
color: #fff;
}
#YOUDAOGWZS_menu_setting .hui-shopping-lightbox-bd .hui-btns .hui-confirm-btn:hover {
color: #ffffff;
text-decoration: none;
}
#YOUDAOGWZS_menu_setting .hui-shopping-lightbox-bd .hui-btns .hui-cancel-btn {
background-color: #f0f0f0;
margin-left: 20px;
color: #999;
}
#YOUDAOGWZS_menu_setting .hui-shopping-lightbox-bd .hui-btns .hui-cancel-btn:hover {
color: 60%;
text-decoration: none;
}
.hui-fix-btn {
display: none;
width: 66px;
height: 56px;
background: #fff;
border: 1px solid #dfdfdf;
border-radius: 5px;
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
position: absolute;
left: 5px;
top: -140px;
text-align: center;
line-height: 10px;
font-size: 12px;
}
.hui-fix-btn.order {
top: -70px;
}
.hui-fix-btn .hui-sp-shop {
display: inline-block;
*display: inline;
*zoom: 1;
width: 17px;
height: 27px;
background-position: -281px -494px;
margin-top: 5px;
font-style: normal;
color: #cc3333;
font-weight: bold;
overflow: hidden;
padding: 3px 8px 0 3px;
}
.hui-fix-btn .hui-sp-order {
display: inline-block;
*display: inline;
*zoom: 1;
width: 31px;
height: 30px;
background-position: -248px -494px;
margin-top: 5px;
}
.hui-fix-btn span {
display: block;
}
.daigou-menu {
display: none;
}
.hui-withCoupons .hui-bd .hui-fresh-txt {
background-position: -200px -391px;
}
.hui-withOutCoupons .hui-bd .hui-fresh-txt {
background-position: -200px -370px;
}
.hui-withCoupons .hui-ft .hui-fresh-guide {
width: 170px;
background-position: 0 -370px;
}
.hui-withOutCoupons .hui-ft .hui-fresh-guide {
width: 173px;
background-position: 0 -320px;
}
.hui-fresh-tip {
width: 350px;
height: 225px;
left: 10px;
}
.hui-fresh-tip .hui-fresh-logo {
position: absolute;
top: -43px;
left: 0;
width: 77px;
height: 103px;
background-position: -114px -214px;
}
.hui-fresh-tip .hui-hd {
margin: 20px 0 10px 75px;
width: 245px;
*padding-top: 20px;
}
.hui-fresh-tip .hui-hd h1 {
color: #e6c971;
font-size: 18px;
font-style: italic;
text-align: center;
line-height: 25px;
zoom: 1;
}
.hui-fresh-tip .hui-bd {
width: 330px;
height: 149px;
background-position: -211px -212px;
position: relative;
left: 0;
top: 0;
z-index: -1;
margin-bottom: 20px;
/*padding: 10px 20px 20px 18px;*/
}
.hui-fresh-tip .hui-bd .hui-fresh-txt {
width: 297px;
height: 20px;
position: absolute;
top: 126px;
left: 34px;
}
.hui-fresh-tip .hui-ft {
text-align: center;
}
.hui-fresh-tip .hui-ft .hui-fresh-guide {
text-indent: -999px;
overflow: hidden;
display: block;
height: 44px;
margin: 0 auto;
}
#hui-onekey {
position: relative;
}
#hui-onekey .hui-new-onekey-icon {
position: absolute;
z-index: 10;
top: 0;
left: 0;
display: inline-block;
width: 26px;
height: 11px;
background-position: -462px -139px;
}
#hui-onekey .hui-shopping-commontips {
display: none;
z-index: 11;
}
#hui-onekey .hui-button-bar-tip {
background-position: -416px -152px;
}
#hui-onekey .hui-shopping-lightbox {
width: 365px;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
overflow: hidden;
}
#hui-onekey .hui-shopping-lightbox .hui-shopping-lightbox-bd {
margin-left: 20px;
width: 364px;
}
#hui-onekey .hui-shopping-lightbox .hui-shopping-lightbox-bd .hui-onekey-cont-hd {
height: 40px;
}
#hui-onekey .hui-shopping-lightbox .hui-shopping-lightbox-bd .hui-onekey-cont-hd .hui-onekey-cont-hd-title {
float: left;
font-size: 14px;
margin-top: 14px;
}
#hui-onekey .hui-shopping-lightbox .hui-shopping-lightbox-bd .hui-onekey-cont-bd {
margin-top: 4px;
height: 170px;
}
#hui-onekey .hui-shopping-lightbox .hui-shopping-lightbox-bd .hui-onekey-cont-bd .hui-onekey-cont-list {
float: left;
margin-right: 20px;
width: 100px;
height: 170px;
font-size: 12px;
}
#hui-onekey .hui-shopping-lightbox .hui-shopping-lightbox-bd .hui-onekey-cont-bd .hui-onekey-cont-list img {
width: 100px;
height: 100px;
}
#hui-onekey .hui-shopping-lightbox .hui-shopping-lightbox-bd .hui-onekey-cont-bd .hui-onekey-cont-list p {
margin-top: 10px;
height: 36px;
color: #666666;
word-break: break-all;
overflow: hidden;
}
#hui-onekey .hui-shopping-lightbox .hui-shopping-lightbox-bd .hui-onekey-cont-bd .hui-onekey-cont-list span {
display: block;
color: #ff6633;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
#hui-onekey .hui-shopping-lightbox .hui-shopping-lightbox-bd .hui-onekey-cont-bd .hui-onekey-cont-lists {
margin-left: 20px;
}
#hui-onekey .hui-shopping-lightbox .hui-shopping-lightbox-bd .hui-onekey-cont-ft {
position: relative;
left: -7px;
margin-top: 6px;
height: 53px;
text-align: center;
}
#hui-onekey .hui-shopping-lightbox .hui-shopping-lightbox-bd .hui-onekey-cont-ft .hui-button {
width: 140px;
height: 34px;
font-size: 14px;
line-height: 35px;
}
#hui-onekey .hui-shopping-lightbox .hui-shopping-lightbox-bd .hui-onekey-cont-ft .hui-button span {
font-size: 14px;
}
.hui-onekey-tip {
position: absolute;
top: -140px;
left: 76px;
width: 100px;
height: 134px;
display: none;
}
.hui-onekey-tip .hui-onekey-tip-bg {
width: 100px;
height: 134px;
display: inline-block;
cursor: pointer;
}
.hui-onekey-tip .hui-onekey-tip-close {
position: absolute;
top: 9px;
right: -8px;
width: 16px;
height: 16px;
display: none;
}
.hui-onekey-tip .hui-onekey-tip-close:hover {
cursor: pointer;
}
.hui-onekey-tip:hover .hui-onekey-tip-close {
display: inline-block;
}
/* author: xiong; moduleName: plugin_container; filePath: /Users/xiong/Documents/sourcecode/hui_zhushou/src/app/modules/plugin_container */
#hui-plugin {
float: none;
margin: 5px 0;
height: 30px;
padding: 0;
position: relative;
font-family: "\5FAE\8F6F\96C5\9ED1, Arail";
/*
*梦芭莎对加强区域的span设置了display:block
*URL:http://lady.moonbasa.com/p-467114213.html
*/
}
#hui-plugin * {
box-sizing: content-box;
}
#hui-plugin:hover {
z-index: 10000;
}
#hui-plugin li {
overflow: visible;
padding: 0;
margin: 0;
zoom: 1;
clear: none;
list-style: none;
font-weight: normal;
}
#hui-plugin em {
float: none;
}
#hui-plugin span {
display: inline;
}
#hui-plugin .hui-shopping-lightbox {
background-image: none;
width: 400px;
position: absolute;
border: 1px solid #dfdfdf;
background-color: #fff;
border-radius: 5px;
border-top-left-radius: 0;
border-bottom: 3px solid #ffc433;
left: 0;
top: 36px;
box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
text-align: left;
display: none;
z-index: 2;
/*
*下面这条是为了和亚马逊的页面样式进行覆盖
*URL:http://www.dwz.cn/m2jft
*/
}
#hui-plugin .hui-shopping-lightbox span {
display: inline;
}
#hui-plugin .hui-shopping-lightbox .hui-plughistory-hd {
background-color: #fff;
}
#hui-plugin .hui-shopping-lightbox .hui-plughistory-hd .hui-history-time a {
color: #333;
border-bottom-color: #fff;
}
#hui-plugin .hui-shopping-lightbox .hui-plughistory-hd .hui-history-time .hui-history-active {
border-bottom-color: #f00;
}
#hui-plugin .hui-shopping-lightbox .hui-plughistory-Promotion {
margin: 0 auto;
width: 377px;
border: 1px solid #fdedc9;
background-color: #fffcf3;
}
#hui-plugin .hui-shopping-lightbox .hui-plughistory-Promotion p {
padding: 3px 9px;
font-size: 12px;
color: #333333;
}
#hui-plugin .hui-shopping-lightbox .hui-plughistory-Promotion p span {
color: #fd6802;
}
#hui-plugin.hui-plugin-6pm .plugin-history-btn,
#hui-plugin.hui-plugin-hide-txt .plugin-history-btn {
white-space: normal;
width: 45px;
overflow: hidden;
text-align: left;
background: #fff;
}
#hui-plugin.hui-plugin-6pm .plugin-history-btn span,
#hui-plugin.hui-plugin-hide-txt .plugin-history-btn span {
display: block;
width: 35px;
position: absolute;
bottom: -1px;
right: 0;
}
#hui-plugin.hui-plugin-6pm #hui-plugin-history.hui-plugin-active .plugin-history-btn span,
#hui-plugin.hui-plugin-hide-txt #hui-plugin-history.hui-plugin-active .plugin-history-btn span {
bottom: 11px;
}
#hui-plugin.hui-plugin-6pm {
margin-top: -1px;
left: -31px;
margin-right: -100px;
}
#hui-plugin.hui-plugin-6pm #hui-plugin-collection {
width: 85px;
background: #fff;
}
#hui-plugin.hui-plugin-6pm .hui-plugin-active .plugin-history-btn span {
bottom: 11px;
}
#hui-plugin.hui-plugin-6pm .hui-daigou-total-price {
width: 148px;
padding-right: 0;
text-align: center;
white-space: nowrap;
}
#hui-plugin.hui-plugin-6pm .hui-daigou-total-price .hui-sp-plane {
margin-left: 2px;
margin-right: 2px;
}
#hui-plugin.hui-plugin-small {
width: 350px;
}
#hui-plugin.hui-plugin-small .hui-collection-title,
#hui-plugin.hui-plugin-small .plugin-history-btn,
#hui-plugin.hui-plugin-small .hui-daigou-conversion-title,
#hui-plugin.hui-plugin-small .hui-daigou-conversion-price {
font-size: 12px!important;
}
#hui-plugin.hui-plugin-small #hui-plugin-collection {
width: 65px;
}
#hui-plugin.hui-plugin-hide-txt {
width: auto;
}
#hui-plugin.hui-plugin-hide-txt #hui-plugin-bijia .hui-price-compare-btn {
width: 93px;
}
#hui-plugin.hui-plugin-hide-txt #hui-plugin-bijia.hui-plugin-active .hui-price-compare-btn {
width: 93px !important;
}
#hui-plugin.hui-plugin-hide-txt #hui-plugin-bijia ul li {
padding: 0;
}
#hui-plugin.hui-plugin-hide-txt #hui-plugin-daigou {
white-space: nowrap;
}
#hui-plugin.hui-plugin-hide-txt #hui-plugin-daigou .hui-daigou-total-price .hui-daigou-conversion-price {
max-width: 33px;
}
#hui-plugin.hui-plugin-hide-txt .daigou-promotions .daigou-promotions-content {
min-width: 320px;
}
#hui-plugin.hui-plugin-hide-txt .daigou-promotions .daigou-promotions-content .daigou-promotions-ico {
left: auto;
right: 50px;
}
#hui-plugin-logo {
width: 30px;
height: 30px;
background-position: -378px -104px;
position: relative;
}
.hui-plugin .hui-btn {
height: 30px;
float: left;
position: relative;
}
.hui-plugin .hui-btn:hover {
z-index: 2;
}
.hui-plugin .hui-btn .hui-btn-inside {
border: 1px solid #dfdfdf;
margin-right: -1px;
}
.hui-plugin .hui-btn a {
color: #666;
/*fix jd book*/
}
.hui-plugin .hui-btn a span {
float: none;
width: auto;
text-align: left;
}
#hui-plugin-reload {
height: 28px;
line-height: 28px;
border: 1px solid #dfdfdf;
margin-right: -1px !important;
float: left;
padding: 0 10px!important;
font-size: 14px;
}
#hui-plugin-reload img {
margin-left: 5px;
vertical-align: middle;
}
#hui-plugin-reload a {
color: #ff3300;
text-decoration: underline;
}
.hui-shopping-datacont {
float: right;
margin-right: 20px;
}
.hui-shopping-datacont .hui-shopping-datalist {
float: left;
}
.hui-shopping-datacont .hui-shopping-datalist .hui-datalist {
position: relative;
float: left;
text-align: center;
*display: inline;
}
.hui-shopping-datacont .hui-shopping-datalist .hui-brand-ad-active {
background: #f9f8f5;
}
.hui-shopping-datacont .hui-shopping-datalist .hui-brand-ad-active a {
border: #f9f8f5;
}
.hui-shopping-datacont .hui-shopping-datalist .hui-datalist-item {
display: inline-block;
border: 1px solid #fdfdfd;
border-width: 0 1px;
height: 50px;
*zoom: 1;
*display: inline;
padding: 0 9px;
margin: 0 15px;
position: relative;
}
.hui-shopping-datacont .hui-shopping-datalist .hui-datalist-item .hui-colorb2 {
color: #b2b2b2;
}
.hui-shopping-datacont .hui-shopping-datalist .hui-datalist-item:hover {
cursor: pointer;
}
.hui-shopping-datacont .hui-active .hui-datalist-item {
border-color: #dfdfdf;
background-color: #fff;
z-index: 9;
zoom: 1;
}
.hui-shopping-datacont .hui-active .hui-sp11 {
background-position: 0 47px;
}
.hui-shopping-datacont .hui-active .hui-ff2 {
color: #fa8200;
}
.hui-shopping-datacont .hui-lightbox-price-ft {
padding: 6px 0;
}
.hui-shopping-datacont .hui-lightbox-price-item,
.hui-shopping-datacont .hui-lightbox-price-itemb {
display: block;
padding: 11px 10px;
}
.hui-shopping-datacont .hui-lightbox-price-item:hover {
background-color: #f7f7f7;
color: #df2020;
}
.hui-shopping-datacont .hui-datalist-title {
width: 228px;
}
.hui-shopping-datacont .hui-datalist-title .hui-shopping-lh {
display: block;
}
.hui-shopping-datacont .hui-price-ptitle {
display: inline-block;
margin-top: 4px;
*zoom: 1;
*display: inline;
color: #fa8200;
}
.hui-shopping-datacont .hui-shopname {
position: relative;
display: block;
color: #666;
_margin-top: 3px;
}
.hui-shopping-datacont .hui-shopname .hui-sp9 {
vertical-align: middle;
}
.hui-shopping-datacont .hui-lightbox-price-ft .hui-sp10 {
vertical-align: top;
margin: 3px 0 0 0;
*margin: 0 5px 0 0;
}
.hui-shopping-datacont .hui-shopping-readmore {
border: 1px solid #efefef;
height: 20px;
line-height: 20px;
border-radius: 2px;
background-color: #f6f7f9;
display: inline-block;
padding: 0 5px;
color: #666;
margin: 14px 0 0 20px;
}
.hui-shopping-datacont .hui-shopname .hui-sp-adsub {
vertical-align: middle;
display: inline-block;
width: 16px;
height: 16px;
background-position: 0px -174px;
}
/*
*.hui-shoppingtool .hui-sp42 {
* display: inline-block;
* width: 13px;
* height: 13px;
* background-position: -368px -81px;
*}
*/
.hui-shopping-datacont .hui-shopping-readmore:hover {
border: 1px solid #c7c9cb;
color: #333;
}
.hui-shopping-datacont .hui-shopping-lightbox {
left: 15px;
*left: 0;
}
/* 功能提示 */
.hui-shoppingtool .hui-fz14 {
font-size: 14px;
}
.hui-shoppingtool .hui-colorf00 {
color: #ff0000;
}
.hui-sp42 {
display: inline-block;
width: 104px;
height: 19px;
background-position: -274px -22px;
margin: 8px -5px 0 10px;
float: left;
}
.hui-shoppingtool .hui-sp43 {
display: inline-block;
width: 13px;
height: 14px;
background-position: -229px -16px;
}
.hui-shopping-datacont .hui-funtips {
display: block;
width: 260px;
height: 172px;
}
.hui-shoppingtool .hui-shopping-lightbox .o-stores {
display: block;
width: 43px;
height: 15px;
border: 1px solid #aee5ac;
background-color: #edffed;
text-align: center;
color: #48ad47;
line-height: 15px;
border-radius: 2px;
}
.hui-f00 {
color: #f00;
}
/*
*modules/pricestate/pricestate.less
*/
.hui-shopping-pricestate {
float: right;
border-left: 1px solid #ededed;
position: relative;
height: 50px;
text-align: center;
zoom: 1;
}
.hui-shopping-pricestate > a {
text-align: center;
}
.hui-shopping-pricestate .hui-sp11 {
display: inline-block;
height: 50px;
padding: 0 10px;
position: relative;
z-index: 9;
}
.hui-shopping-pricestate .hui-sp11 .hui-priceHistoryTip11-icon {
display: inline-block;
width: 19px;
height: 11px;
background-position: -328px -149px;
}
.hui-shopping-pricestate .hui-sp6 {
margin-top: 7px;
}
.hui-shopping-pricestate .hui-active .hui-sp11 {
background-color: #fff;
}
.hui-shopping-pricestate .hui-shopping-lightbox {
left: auto;
right: -1px;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 0px;
width: 400px;
}
.hui-shopping-pricestate .hui-shopping-lightbox .hui-price-Preferential {
width: 66px;
height: 73px;
background-position: 0px 0px;
top: 257px;
right: -46px;
}
.hui-shopping-pricestate .hui-shopping-lightbox .hui-price-fraud {
width: 66px;
height: 72px;
background-position: 0px -78px;
top: 260px;
right: -46px;
}
.hui-shopping-pricestate .hui-history-logo {
margin-left: 108px;
}
.hui-shopping-pricestate .hui-funtips {
width: 260px;
height: 220px;
}
/* old CSS */
.youdaoGWZS_lowestHistoryPrice {
width: 80px;
height: 24px;
display: block;
position: relative;
background-position: -725px -100px;
_background-position: -85px -190px;
top: -24px;
left: 30px;
}
#youdaoGWZS_history {
float: right;
width: 120px;
height: 28px;
_position: static;
}
#youdaoGWZS_priceHistory {
height: 28px;
float: none !important;
position: absolute !important;
}
.hui-history-box {
width: 400px;
}
.hui-history-box .hui-plughistory-hd {
color: #666;
cursor: text;
margin: 0;
padding: 0;
padding-top: 2px;
margin-bottom: 10px;
height: 35px;
line-height: 35px;
font-size: 14px;
background-color: #f7f7f7;
border-bottom: #f7f7f7 solid 1px;
}
.hui-history-box .hui-plughistory-hd .hui-history-logo {
left: 20px;
font-size: 14px;
font-weight: bold;
position: absolute;
/*text-indent: 10px;*/
}
.hui-history-box .hui-plughistory-hd .hui-history-time {
float: right;
margin-top: 2px;
}
.hui-history-box .hui-plughistory-hd .hui-history-time a {
display: block;
border-bottom: 2px solid #f7f7f7;
margin: 2px 10px 1px;
font-size: 12px;
line-height: 30px;
}
.hui-history-box .hui-plughistory-hd .hui-history-time .hui-history-active {
color: #333;
border-bottom: 2px solid #f56a2d;
}
.hui-history-box .hui-plughistory-hd .hui-history-time a:active,
.hui-history-box .hui-plughistory-hd .hui-history-time a:visited {
color: #666;
}
.hui-history-box .hui-plughistory-hd span {
float: none;
}
.hui-history-box .hui-plughistory-hd .youdaoGWZS_plug-history-red {
color: #666666;
}
.hui-history-box .hui-plughistory-hd .item-name {
color: #999;
font-size: 12px;
}
.hui-history-box .hui-plughistory-hd .deprice-btn {
top: 6px;
right: 20px;
}
.hui-history-box .hui-plughistory-Promotion {
margin: 0 auto;
width: 377px;
border: 1px solid #fdedc9;
background-color: #fffcf3;
}
.hui-history-box .hui-plughistory-Promotion p {
padding: 3px 9px;
font-size: 12px;
color: #333333;
}
.hui-history-box .hui-plughistory-Promotion p span {
color: #fd6802;
}
.hui-history-box .hui-flash {
margin: 0;
width: 490px;
height: 280px;
}
.hui-history-box .hui-plughistory-ft {
*text-align: center;
}
.hui-history-box .hui-plughistory-ft .history-collection-recommend {
text-align: center;
font-size: 12px;
color: #fa8200;
}
.hui-history-box .hui-plughistory-ft .history-collection-recommend .tip11-recommend {
color: #f90000;
}
.hui-history-box .hui-plughistory-ft .history-collection-wrapper {
text-align: center;
margin: 10px 0;
}
.hui-history-box .hui-plughistory-ft .hui-collection-collected {
display: none;
}
.hui-history-box .hui-plughistory-ft .hui-collection-no-collect {
display: inline-block;
}
.hui-history-box .hui-plughistory-ft .hui-collection-already .hui-collection-collected {
display: inline-block;
}
.hui-history-box .hui-plughistory-ft .hui-collection-already .hui-collection-no-collect {
display: none;
}
.hui-history-box .hui-plughistory-ft .deprice-btn {
margin: 10px 0;
margin-left: 130px;
width: 119px;
height: 34px;
text-indent: -9999px;
}
.hui-history-box .hui-plughistory-ft .hui-bottom-line {
background-color: #efefef;
height: 1px;
_padding: 0;
_margin: 0;
_line-heihgt: 1px;
_font-size: 1px;
}
.hui-taobao-history .hui-history-box .hui-plughistory-ft {
height: 10px;
margin-bottom: 20px;
}
.hui-taobao-history .hui-history-box .hui-plughistory-ft .deprice-btn {
display: none;
}
#youdaoGWZShistory .hui-plughistory-ft .hui-price-trend-share {
top: -3px;
right: 8px;
color: blue;
}
#youdaoGWZShistory .hui-plughistory-ft .hui-price-trend-share:hover {
text-decoration: underline;
}
.hui-shopping-quan {
border-right: 1px solid #ededed;
float: left;
position: relative;
}
.hui-shopping-quan .hui-sp11 {
display: inline-block;
height: 50px;
position: relative;
z-index: 9;
}
.hui-shopping-quan .hui-sp2 {
margin: 14px 10px 0;
_margin: 14px 9x 0;
}
.hui-shopping-quan .hui-sp15 {
margin: 10px auto 3px;
}
.hui-shopping-quan .hui-btn-quanget {
display: inline-block;
height: 31px;
line-height: 31px;
background-color: #fbbf4a;
border-bottom: 1px solid #e5e0cf;
padding: 0 20px;
color: #fff;
margin: 27px 0 9px;
}
.hui-shopping-quan .hui-btn-quanget:hover {
background-color: #eeb547;
}
.hui-shopping-quan .hui-shopping-lightbox {
width: 345px;
}
.hui-shopping-quan .hui-quan-thumb {
width: 140px;
padding: 5px 0 0 10px;
margin-right: 20px;
}
.hui-shopping-quan .hui-quan-detail {
width: 140px;
overflow: hidden;
zoom: 1;
}
.hui-shopping-quan .hui-quan-detail .hui-sp26 {
vertical-align: top;
margin: 5px 5px 0 0;
*margin: 2px 5px 0 0;
}
.hui-shopping-quan .hui-quan-list {
padding: 0 9px;
margin: 0;
}
.hui-shopping-quan .hui-quan-list .hui-quan-list-title:hover {
color: #df2020;
}
.hui-shopping-quan .hui-quan-list li {
border-bottom: 1px dashed #dfdfdf;
padding: 8px 0;
}
.hui-shopping-quan .hui-quan-list li.hui-no-border {
border-width: 0;
}
.hui-shopping-quan .hui-quan-list .hui-quan-dot {
color: #3060a8;
font: "13px/1.5 \5b8b\4f53";
}
.hui-shopping-quan .hui-quan-list .hui-quan-list-last {
border: none;
}
.hui-shopping-quan .hui-quan-ft {
border-top: 1px solid #f1f1f1;
padding: 7px 10px 6px 0;
text-align: right;
}
.hui-shopping-quan .hui-quan-ft a {
color: #999;
}
.hui-shopping-quan .hui-quan-ft a:hover {
color: #666;
}
.hui-shopping-quan .hui-quan-ft .hui-sp16 {
vertical-align: top;
margin: 3px 0 0 5px;
font-size: 0;
line-height: 0;
overflow: hidden;
}
.hui-shopping-quan .hui-quan-ft a:hover .hui-sp16 {
background-position: -278px -3px;
}
.hui-shoppingtool .hui-shopping-quan .hui-shopping-commontips {
width: 62px;
}
.hui-shoppingtool .hui-shopping-quan .hui-shopping-deftips {
width: 72px;
*width: 85px;
}
.hui-shopping-quan .hui-quan-list li .hui-sp26 {
vertical-align: top;
margin: 5px 5px 0 0;
*margin: 2px 5px 0 0;
}
.hui-recmdHistory .c999 {
color: #999;
}
.hui-recmdHistory .clh {
color: #fa8200;
}
.hui-recmdHistory .ccc {
color: #ccc;
}
.hui-recmdHistory a {
color: #666;
text-decoration: none;
}
.hui-recmdHistory a:hover {
color: #fa8200;
}
.hui-clearfix:after {
display: block;
clear: both;
visibility: hidden;
line-height: 0;
height: 0;
content: ".";
}
.hui-clearfix {
zoom: 1;
}
.hui-recmdHistory {
position: relative;
border: 1px solid #dfdfdf;
background-color: #fff;
width: 390px;
height: 314px;
font-size: 12px;
}
.hui-recmdHistory .bd {
padding: 8px;
}
.hui-recmdHistory .bd-hd {
margin: 4px 0 10px;
}
.hui-recmdHistory .bd-hd .u-view {
display: inline-block;
margin: 0 30px 0 10px;
}
.hui-recmdHistory .bd-bd {
position: relative;
width: 98px;
border-right: 1px solid #fadea9;
height: 270px;
}
.hui-recmdHistory .bd-bd .item-list {
width: 97px;
height: 88px;
border: 1px solid transparent;
*border: 1px solid #fff;
border-width: 1px 0 1px 1px;
*float: left;
}
.hui-recmdHistory .bd-bd .active {
width: 98px;
border-color: #fadea9;
background-color: #fff9e7;
box-shadow: 0 3px 4px rgba(0, 0, 0, 0.1);
}
.hui-recmdHistory .bd-bd .item {
display: block;
width: 68px;
height: 68px;
border: 1px solid #e7e7e7;
overflow: hidden;
margin: 9px 0 0 11px;
text-align: center;
line-height: 68px;
_font-size: 40px;
}
.hui-recmdHistory .bd-bd .item img {
vertical-align: middle;
}
.hui-recmdHistory .bd-bd .active .item {
background-color: #f7f7f7;
}
.hui-recmdHistory .bd-bd .subitem {
position: absolute;
height: 270px;
width: 270px;
top: 0;
left: 99px;
padding: 0 0 0 17px;
margin: 0;
display: none;
overflow: hidden;
}
.hui-recmdHistory .active .subitem {
display: block;
}
.hui-recmdHistory .bd-bd .subitem .thumb {
float: left;
position: relative;
padding-right: 20px;
}
.hui-recmdHistory .bd-bd .subitemlist {
padding: 10px 0;
}
.hui-recmdHistory .bd-bd .subitem .item {
margin: 0;
}
.hui-recmdHistory .bd-bd .subitem .detail {
overflow: hidden;
_zoom: 1;
}
.hui-recmdHistory .bd-bd .subitem .hui-fall {
display: inline-block;
margin: 4px 4px 0 0;
width: 7px;
height: 11px;
background-position: -47px -273px;
}
.hui-recmdHistory .bd-bd .subitem .title-link {
width: 175px;
height: 34px;
display: block;
line-height: 1.4;
margin-top: 3px;
overflow: hidden;
}
.hui-recmdHistory .bd-bd .subitem .item-cprice {
width: 175px;
height: 17px;
overflow: hidden;
}
.hui-recmdHistory .bd-bd .subitem .hui-tag {
position: absolute;
width: 43px;
height: 21px;
background-position: 0 -273px;
top: 4px;
left: -4px;
z-index: 2;
}
#GWZS-recmdHistory .hui-shopping-sidebar-hd,
#GWZS-recmdHistory .hui-shopping-sidebar-ft {
width: 392px;
}
.hui-shopping-recommand {
float: right;
border-left: 1px solid #ededed;
position: relative;
height: 50px;
text-align: center;
zoom: 1;
z-index: 3;
}
.hui-shopping-recommand > a {
text-align: center;
}
.hui-shopping-recommand .hui-sp11 {
display: inline-block;
height: 50px;
padding: 0 10px;
position: relative;
z-index: 9;
}
.hui-shoppingtool .hui-shopping-recommand .hui-shopping-lightbox {
width: 359px;
left: auto;
right: -1px;
}
.hui-shoppingtool .hui-shopping-recommand .hui-shopping-lightbox .fullHeight {
height: 319px;
}
.hui-shoppingtool .hui-shopping-recommand .testHeight {
visibility: hidden;
position: absolute;
display: block;
}
.hui-shopping-recommand .sublist-viewport {
margin: 0 10px;
}
.hui-shopping-recommand .sublist-viewport {
padding-top: 15px;
}
.hui-shopping-recommand .sublist-viewport li {
width: 350px;
border: none;
height: auto;
border-bottom: 1px dashed #999;
}
.hui-shopping-recommand .sublist-viewport .image-wrapper {
float: left;
margin: 0;
margin-right: 4px;
}
.hui-shopping-recommand .sublist-viewport .image-wrapper i {
position: absolute;
top: 1px;
left: 0;
width: 35px;
height: 29px;
text-indent: -9999px;
}
.hui-shopping-recommand .sublist-viewport .image-wrapper img {
height: 70px;
width: 70px;
}
.hui-shopping-recommand .sublist-viewport .content-wrapper {
margin-left: 50px;
margin-bottom: 15px;
zoom: 1;
overflow: hidden;
}
.hui-shopping-recommand .hui-recommand-icon {
margin-top: 4px;
}
.hui-shopping-recommand .hui-recommand-title {
color: #999;
}
.hui-shopping-recommand .hui-recommand-title {
color: #666;
margin: 8px 7px 5px 0;
display: block;
line-height: 15px;
overflow: hidden;
}
.hui-shopping-recommand .hui-recommand-title-ITEMCF {
height: 31px;
margin-bottom: 8px;
}
.hui-shopping-recommand .hui-recommand-title-DISCOUNT {
height: 15px;
}
.hui-shopping-recommand .hui-recommand-title:hover {
color: #df2020;
}
#youdaoGWZS-sidebar-right .hui-recommand .hui-recommand-price {
word-break: break-all;
height: 18px;
overflow: hidden;
margin: 0;
}
.hui-shopping-recommand .hui-recommand-price,
.hui-shopping-recommand .hui-recommand-disc {
color: #fa8200;
}
.hui-shopping-recommand .hui-recommand-price .hui-recommand-origin-price {
color: #999999;
}
.hui-shopping-recommand .hui-recommand-price .hui-recommand-current-price {
color: #df2020;
font-weight: 700;
}
.hui-shopping-recommand .hui-recommand-origin-price em {
text-decoration: line-through;
}
.hui-shopping-recommand .hui-recommand-disc .hui-lowest {
margin-right: 2px;
vertical-align: middle;
}
.hui-shopping-recommand .sublist-viewport li b {
position: absolute;
color: #fefefe;
font-size: 13px;
text-align: center;
line-height: 42px;
width: 42px;
height: 42px;
overflow: hidden;
top: -2px;
left: -2px;
background-image: url('https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/recommend_tip.png');
background-repeat: no-repeat;
background-position: left top;
_background: none;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true', sizingMethod='crop', src='https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/recommend_tip.png');
}
.sublist-viewport .image-wrapper .tip-ITEMCF {
background-position: -455px -4px;
}
.sublist-viewport .image-wrapper .tip-DISCOUNT {
background-position: -455px -33px;
}
#youdaoGWZSRecommand .sublist-viewport li .lowest {
line-height: 1;
padding-top: 9px;
}
#youdaoGWZSRecommand .header {
padding: 0;
margin: 10px 0;
padding-left: 4px;
font-weight: normal;
font-size: 12px;
color: #999;
}
.hui-shoppingtool .hui-shopping-recommand .hui-newfeature {
display: none;
width: 255px;
height: 96px;
right: -1px;
}
.hui-shoppingtool .hui-shopping-recommand .hui-newfeature .hui-newfeature-con {
position: relative;
text-align: left;
color: #333;
padding: 20px 20px 20px 20px;
}
.hui-shoppingtool .hui-shopping-recommand .hui-newfeature .hui-newfeature-con .color-green {
color: #7f9c20;
}
.hui-shoppingtool .hui-shopping-recommand .hui-newfeature .hui-newfeature-con h1 {
font-size: 14px;
line-height: 15px;
margin-bottom: 14px;
}
.hui-shoppingtool .hui-shopping-recommand .hui-newfeature .hui-newfeature-con p {
font-size: 12px;
line-height: 16px;
}
#youdaoGWZS-sidebar-right #GWZS-recommand {
width: 130px;
border: 1px solid #e9e9e9;
}
#youdaoGWZS-sidebar-right .hui-recommand .image-wrapper i {
position: absolute;
top: 0;
left: 10px;
width: 35px;
height: 29px;
text-indent: -9999px;
}
#youdaoGWZS-sidebar-right .hui-recommand .head-wrapper {
position: absolute;
width: 100%;
height: 20px;
}
#youdaoGWZS-sidebar-right .head-wrapper .head-line {
border-top: 1px solid #f2f1f1;
font-size: 0;
line-height: 0;
top: 8px;
height: 0;
width: 100%;
left: 0;
position: absolute;
}
#youdaoGWZS-sidebar-right .head-wrapper .head-title {
z-index: 2;
position: absolute;
color: #999;
background-color: #fff;
left: 34px;
top: 0;
padding: 0 4px;
}
#youdaoGWZS-sidebar-right .hui-recommand .hui-recommand-current-price {
color: #fa8200;
font-weight: bolder;
}
#youdaoGWZS-sidebar-right .hui-recommand .hui-recommand-origin-price {
color: #ccc;
text-decoration: line-through;
}
#youdaoGWZS-sidebar-right .image-wrapper {
width: 79px;
height: 79px;
margin: 0 auto;
display: table;
vertical-align: middle;
}
#youdaoGWZS-sidebar-right .image-wrapper > a {
display: table-cell;
vertical-align: middle;
}
#youdaoGWZS-sidebar-right .image-wrapper img {
max-width: 79px;
max-height: 79px;
width: auto;
height: auto;
_width: 79px;
_height: 79px;
margin: 0 auto;
}
#youdaoGWZS-sidebar-right .sales-wrapper {
border: 1px solid #EEE;
display: block;
margin: 0 10px;
padding-top: 5px;
padding-bottom: 5px;
}
#youdaoGWZS-sidebar-right .sales-wrapper:hover {
text-decoration: none;
}
#youdaoGWZS-sidebar-right .sales-wrapper:hover .sales-title span {
text-decoration: none;
}
#youdaoGWZS-sidebar-right .sales-wrapper .sales-image-wrapper {
width: 86px;
height: 30px;
margin: 0 auto;
margin-bottom: 10px;
_text-align: end;
}
#youdaoGWZS-sidebar-right .sales-wrapper {
color: #666;
}
#youdaoGWZS-sidebar-right .sales-wrapper .sales-title {
margin-bottom: 5px;
height: 33px;
padding: 0 10px;
overflow: hidden;
line-height: 16px;
vertical-align: middle;
}
#youdaoGWZS-sidebar-right .sales-wrapper .sales-title span {
vertical-align: middle;
display: inline-block;
font-size: 12px;
font-family: verdana, arial, helvetica, sans-serif;
}
#youdaoGWZS-sidebar-right .sales-wrapper .sales-discount {
color: #fa8200;
font-weight: bolder;
}
.hui-read {
color: #a7a7a7;
font-size: 12px;
}
.tmall-chaoshi #hui-recommand-new,
.w1190 #hui-recommand-new {
width: 1190px;
}
#detail #hui-recommand-new.full .hui-pluginlike-bd .hui-pluginlike-slider li {
margin-right: 32px;
}
#hui-recommand-new {
position: relative;
margin: 0 auto 10px;
/*.w1190 &{
width: 1190px!important;
}*/
}
#hui-recommand-new.tb-scombo {
border: none;
}
#hui-recommand-new .inner {
position: relative;
border: 1px solid #e5e5e5;
width: 100%;
box-sizing: border-box;
}
#hui-recommand-new.full {
/*width:1120px;
.inner{
width:1188px;
}*/
}
#hui-recommand-new.full .hui-pluginlike-bd .hui-pluginlike-slider li {
margin-right: 45px;
}
#hui-recommand-new .hui-pluginlike-hd {
position: relative;
line-height: 40px;
color: #fd6802;
font-size: 14px;
}
#hui-recommand-new .hui-pluginlike-hd h3 {
display: inline-block;
padding-left: 12px;
border-top: 2px solid #fd6802;
position: relative;
top: -1px;
}
#hui-recommand-new .hui-pluginlike-hd .hui-pluginlike-close {
position: absolute;
right: 12px;
top: 12px;
width: 15px;
line-height: 15px;
background-position: -510px -521px;
text-align: center;
text-indent: -9999px;
cursor: pointer;
}
#hui-recommand-new .hui-pluginlike-hd .hui-pluginlike-ico {
display: inline-block;
width: 24px;
height: 21px;
margin-right: 12px;
background-position: -501px -370px;
vertical-align: middle;
}
#hui-recommand-new .hui-pluginlike-bd {
position: relative;
margin: 0 51px;
height: 260px;
overflow: hidden;
font-size: 12px;
}
#hui-recommand-new .hui-pluginlike-bd .hui-pluginlike-slider {
position: absolute;
top: 0;
left: 0;
width: 300000px;
}
#hui-recommand-new .hui-pluginlike-bd .hui-pluginlike-slider li {
float: left;
width: 180px;
margin-right: 55px;
}
#hui-recommand-new .hui-pluginlike-bd .hui-pluginlike-slider li img {
transform: .1s linear;
}
#hui-recommand-new .hui-pluginlike-bd .hui-pluginlike-slider li img:hover {
transform: scale(1.02);
}
#hui-recommand-new .hui-pluginlike-pic {
position: relative;
display: table;
vertical-align: middle;
width: 180px;
height: 180px;
margin-bottom: 5px;
line-height: 180px;
text-align: center;
}
#hui-recommand-new .hui-pluginlike-pic img {
max-width: 180px;
max-height: 180px;
vertical-align: middle;
}
#hui-recommand-new .hui-pluginlike-pic .goods-tip .goods-tip-bg {
position: absolute;
left: 0;
top: 0;
border-style: solid;
border-width: 20px 20px 8px 20px;
border-color: #54be62 #54be62 transparent #54be62;
}
#hui-recommand-new .hui-pluginlike-pic .goods-tip em {
position: absolute;
top: 0;
left: 0;
width: 40px;
line-height: 20px;
text-align: center;
font-size: 12px;
color: #fff;
}
#hui-recommand-new .hui-pluginlike-title {
height: 36px;
line-height: 18px;
margin-bottom: 5px;
overflow: hidden;
font-weight: normal;
}
#hui-recommand-new .hui-pluginlike-title a {
color: #666;
}
#hui-recommand-new .hui-pluginlike-info {
color: #555;
line-height: 14px;
vertical-align: middle;
margin-top: 10px;
}
#hui-recommand-new .hui-pluginlike-info .hui-pluginlike-zoushi {
display: inline-block;
width: 13px;
height: 13px;
background-position: -50px 0;
}
#hui-recommand-new .hui-pluginlike-info .hui-pluginlike-price {
font-weight: bold;
color: #fd6802;
font-size: 14px;
font-family: 'arial';
}
#hui-recommand-new .hui-pluginlike-info .hui-pluginlike-look {
float: right;
color: #999;
}
#hui-recommand-new .hui-pluginlike-btn {
position: absolute;
top: 0;
left: 0;
width: 100%;
}
#hui-recommand-new .hui-pluginlike-btn a {
position: absolute;
top: 134px;
width: 19px;
height: 36px;
text-indent: -9999px;
}
#hui-recommand-new .hui-pluginlike-btn .hui-pluginlike-prev {
left: 12px;
background-position: -467px -521px;
}
#hui-recommand-new .hui-pluginlike-btn .hui-pluginlike-prev.disabled {
opacity: .1;
}
#hui-recommand-new .hui-pluginlike-btn .hui-pluginlike-next {
right: 12px;
background-position: -491px -521px;
}
#hui-recommand-new .hui-pluginlike-btn .hui-pluginlike-next.disabled {
opacity: .1;
}
#GWZS-shoppingtips {
font-size: 12px;
width: 356px;
height: 182px;
left: 0;
bottom: 70px;
display: none;
}
#GWZS-shoppingtips .GWZS-shoppingtips-cont {
padding: 20px;
}
#GWZS-shoppingtips .GWZS-shoppingtips-title {
font-size: 14px;
font-weight: 700;
color: #fa8200;
height: 16px;
width: 310px;
overflow: hidden;
line-height: 16px;
}
#GWZS-shoppingtips .GWZS-shoppingtips-dec {
color: #666;
font-size: 12px;
height: 32px;
width: 310px;
overflow: hidden;
line-height: 1.4;
margin-top: 10px;
}
#GWZS-shoppingtips .GWZS-shoppingtips-ft {
margin-top: 25px;
}
#GWZS-shoppingtips .GWZS-shoppingtips-ft .readmore {
color: #999;
float: left;
text-decoration: underline;
}
#GWZS-shoppingtips .GWZS-shoppingtips-ft .bless {
float: right;
color: #999;
cursor: pointer;
}
#GWZS-shoppingtips .GWZS-shoppingtips-ft .bless strong {
color: #fa8200;
}
#GWZS-shoppingtips .hui-icon-bless {
background-position: -447px -81px;
width: 16px;
height: 15px;
display: inline-block;
margin-right: 5px;
vertical-align: middle;
}
#GWZS-shoppingtips .hui-icon-blessed {
background-position: -464px -81px;
}
.GWZS-common-lightbox {
border-radius: 5px;
border: 1px solid #dfdfdf;
box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
background-color: #fff;
position: absolute;
font-size: 12px;
}
.GWZS-common-lightbox .GWZS-common-lightbox-topline {
height: 3px;
background-color: #fdd472;
border-bottom: 1px solid #deba64;
font-size: 0;
line-height: 0;
overflow: hidden;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
.GWZS-common-lightbox .GWZS-common-lightbox-hd {
border-top: 1px solid #fff;
height: 36px;
line-height: 36px;
font-size: 14px;
background-color: #f6f7f9;
text-indent: 10px;
border-bottom: 1px solid #fff;
position: relative;
}
.GWZS-common-lightbox .GWZS-common-lightbox-hd .GWZS-common-lightbox-close {
position: absolute;
color: #cbcbcb;
font-size: 16px;
font-family: "宋体";
height: 12px;
line-height: 8px;
cursor: pointer;
top: 14px;
right: 10px;
}
.hui-shoppingtool-sidebar {
position: fixed;
_position: absolute;
z-index: 2147483640;
border-radius: 3px;
-webkit-perspective: 500px;
font: 13px/19px Arial, sans-serif;
}
.hui-shoppingtool-sidebar * {
box-sizing: content-box;
}
.sidebar-middle {
top: 120px;
}
.sidebar-bottom {
bottom: 100px;
}
.sidebar-right {
right: 0;
}
.sidebar-left {
left: 0;
}
.hui-shoppingtool-sidebar .hui-sidebar-container,
.hui-shoppingtool-sidebar .hui-sidebar-btn {
/*-webkit-transition: all cubic-bezier(.9, .53, .5, .53) 1s;*/
/*-webkit-transform-origin: right top;*/
}
#GWZS-sidebar-collection {
position: absolute;
z-index: -1;
right: 0px;
top: 150px;
padding-top: 8px;
}
.hui-sidebar-no-collected {
display: block;
}
.hui-sidebar-collected {
display: none;
}
.hui-collection-already .hui-sidebar-collected {
display: block;
}
.hui-collection-already .hui-sidebar-no-collected {
display: none;
}
#GWZS-sidebar-collection .hui-sidebar-collec-btn {
text-align: center;
width: 28px;
height: 70px;
text-decoration: none;
background-color: #f8f8f8;
border: 1px solid #dedede;
border-radius: 4px;
padding-top: 6px;
}
#GWZS-sidebar-collection .hui-sidebar-collec-btn:hover {
text-decoration: none;
}
#GWZS-sidebar-collection .hui-sidebar-collec-btn:hover .hui-sidebar-btn-p {
color: #fd6802;
}
.hui-sidebar-no-collec {
display: none;
}
.hui-sidebar-collec {
display: block;
}
.hui-sidebar-collec-sp {
display: inline-block;
height: 18px;
width: 18px;
}
.hui-sidebar-collec-img {
background-position: -428px -62px;
}
.hui-sidebar-already-collec-img {
background-position: -446px -62px;
}
.hui-sidebar-collec-title {
margin: 0 auto;
line-height: 16px;
color: #666666;
font-size: 12px;
width: 13px;
margin-top: 6px;
}
.hui-collection-already .hui-sidebar-collec-title {
line-height: 15px;
margin-top: 0px;
}
.hui-sidebar-collec .hui-sidebar-collec-title {
margin-top: 0px;
line-height: 14px;
}
.hui-sidebar-btn {
position: absolute;
z-index: -1;
text-align: center;
width: 40px;
text-decoration: none;
}
.hui-sidebar-btn:hover {
text-decoration: none;
}
.hui-sidebar-down-no-collected {
display: block;
}
.hui-sidebar-down-collected {
display: none;
}
.hui-collection-already .hui-sidebar-down-collected {
display: block;
}
.hui-collection-already .hui-sidebar-down-no-collected {
display: none;
}
#GWZS-sidebar-down-collection .hui-sidebar-down-collec-btn {
margin-top: 4px;
width: 128px;
height: 30px;
overflow: hidden;
}
#GWZS-sidebar-down-collection .hui-sidebar-down-collec-btn:hover {
text-decoration: none;
}
#GWZS-sidebar-down-collection .hui-sidebar-down-collec-btn:hover .hui-sidebar-btn-p {
color: #fd6802;
}
.hui-sidebar-down-collec-logo {
display: block;
width: 32px;
height: 30px;
background-position: -378px -104px;
text-indent: -999em;
float: left;
}
.hui-sidebar-down-collec-btn .hui-sidebar-down-collec {
display: block;
width: 95px;
height: 28px;
text-decoration: none;
background-color: #f8f8f8;
border: 1px solid #dedede;
border-left: none;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
float: left;
}
#GWZS-sidebar-down-collection .hui-sidebar-collec-sp {
display: inline-block;
height: 18px;
width: 18px;
vertical-align: -5px;
margin-top: 5px;
margin-left: 12px;
}
.hui-sidebar-down-collec-title {
line-height: 14px;
color: #666666;
font-size: 12px;
display: inline-block;
margin-left: 8px;
letter-spacing: 4px;
}
.sidebar-middle .hui-sidebar-btn {
top: 0;
}
.sidebar-bottom .hui-sidebar-btn {
bottom: 0;
}
.sidbebar-left .hui-sidebar-btn {
left: 0;
border-radius: 0 2px 2px 0;
}
.sidebar-right .hui-sidebar-btn {
right: 0;
border-radius: 2px 0 0 2px;
}
.hui-shoppingtool-sidebar-mini {
border: none;
}
.hui-shoppingtool-sidebar-mini .hui-sidebar-btn {
z-index: 2;
width: 30px;
padding-bottom: 10px;
text-decoration: none;
-webkit-transform: rotateX(-360deg);
}
.hui-shoppingtool-sidebar-mini .hui-sidebar-container {
/*-webkit-transform: scaleX(.2) scaleY(.2) rotateX(-360deg);*/
display: none;
}
.hui-shopping-sidebar-close {
position: absolute;
width: 12px;
height: 12px;
top: 10px;
right: 7px;
text-indent: -9999px;
background-position: -440px -420px;
_background-position: 0 -280px;
}
.hui-shopping-sidebar-close {
_background-image: url("https://shared-https.ydstatic.com/gouwuex/images/extension_3_1/ie/gouwuzhushou_ie.png");
}
.hui-shopping-sidebar-hd,
.hui-shopping-sidebar-ft {
font-size: 12px;
font-weight: bolder;
background-color: #f6f6f6;
color: #666;
text-align: center;
}
.hui-shopping-sidebar-hd {
height: 31px;
line-height: 31px;
}
.hui-shopping-sidebar-bd {
background-color: #fff;
border-bottom: 1px solid #e9e9e9;
border-top: 1px solid #e9e9e9;
padding-top: 6px;
}
.hui-shopping-sidebar-ft {
height: 26px;
line-height: 26px;
}
.hui-shopping-sidebar-bd .sublist-viewport {
zoom: 1;
}
.hui-shopping-sidebar-bd .sublist-viewport ul {
height: 355px;
}
.hui-shopping-sidebar-bd .sublist-viewport {
position: relative;
text-align: center;
border: none;
}
.hui-shopping-sidebar-bd .sublist-viewport div {
text-align: center;
}
.hui-shopping-sidebar-bd .sublist-viewport li {
width: 100%;
height: auto;
border: none;
}
.hui-shopping-sidebar-bd .sublist-viewport .image-wrapper {
margin: 0;
}
.hui-shopping-sidebar-bd .sublist-viewport .content-wrapper {
height: 18px;
margin-bottom: 8px;
overflow: hidden;
}
.hui-sidebar-btn-logo {
display: block;
width: 30px;
height: 32px;
background-position: -471px -104px;
text-indent: -999em;
}
.hui-sidebar-btn-cont {
display: block;
width: 30px;
height: 95px;
background-color: #f8f8f8;
border: 1px solid #dedede;
border-top: none;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
}
.hui-sidebar-btn-cont .hui-sidebar-btn-p {
width: 14px;
font-weight: bolder;
color: #fd6802;
margin: 0 auto;
padding-top: 9px;
margin-bottom: 8px;
font-size: 13px;
line-height: 15px;
}
.hui-sidebar-btn-ad .hui-sidebar-btn-logo {
display: none;
}
.hui-sidebar-btn-ad .hui-sidebar-btn-cont {
border: 1px solid #dedede;
border-radius: 4px;
}
.hui-sidebar-btn-ad .hui-sidebar-btn-cont .hui-sidebar-btn-p {
color: #555;
}
.hui-sidebar-btn-arrow-right,
.hui-sidebar-btn-arrow-left {
display: block;
width: 10px;
height: 10px;
font-size: 0;
line-height: 0;
text-indent: -999em;
margin: 0 auto;
}
.hui-sidebar-btn-arrow-right {
background-position: -328px -136px;
}
.hui-sidebar-btn-arrow-left {
background-position: 0 -295px;
}
#youdaoGWZS-sidebar-right .paging-wrapper .prev-page {
background-position: -560px -520px;
margin-left: -49px;
top: 7px;
_background-position: -120px -280px;
}
#youdaoGWZS-sidebar-right .paging-wrapper .next-page {
background-position: -540px -520px;
margin-left: 34px;
top: 9px;
_background-position: -100px -280px;
}
#youdaoGWZS-sidebar-right .paging-wrapper .prev-page-unable {
background-position: -560px -540px;
_background-position: -120px -300px;
cursor: pointer;
}
#youdaoGWZS-sidebar-right .paging-wrapper .next-page-unable {
background-position: -540px -540px;
_background-position: -100px -300px;
cursor: pointer;
}
#youdaoGWZS-sidebar-right .paging-wrapper {
padding-top: 0;
-webkit-box-sizing: content-box;
box-sizing: content-box;
}
#youdaoGWZS-sidebar-right .hui-recommand .fullHeight {
height: 400px;
}
/*侧边栏没有halfHeight*/
#youdaoGWZS-sidebar-right .hui-recommand .halfHeight {
height: 400px;
}
#hui-signin .hui-button-bar-tip {
margin-left: 30px;
}
#hui-signin .hui-button-bar-title {
margin-right: 30px;
}
#hui-signin .hui-is-signin .hui-button-bar-tip {
background-position: -504px -96px;
}
#hui-signin .hui-not-signin .hui-button-bar-tip {
background-position: -504px -71px;
}
#hui-signin .hui-shopping-lightbox-bd {
text-align: center;
margin: 14px 0 0;
}
#hui-signin .hui-shopping-lightbox {
width: 260px;
left: 0;
border-bottom-left-radius: 5px;
border-bottom-right-radius: 0;
}
#hui-signin .hui-shopping-lightbox .punch-tips {
margin: 8px 0;
font-size: 13px;
}
#hui-signin .hui-shopping-lightbox .punch-notice {
text-align: right;
margin: 0 10px 5px 0;
}
#hui-signin .hui-shopping-lightbox .punch-notice a {
color: #1163a3;
}
#hui-signin .hui-shopping-lightbox .punch-notice a:hover {
text-decoration: underline;
}
#hui-signin .hui-shopping-lightbox .btn-punch {
width: 110px;
height: 33px;
line-height: 33px;
display: inline-block;
margin: 10px 0 25px;
background-color: #9cac2a;
border-radius: 2px;
color: #fff;
font-size: 14px;
font-weight: 700;
border-bottom: 1px solid #8a9b22;
box-shadow: 0 1px 1px #f7f7f7;
}
#hui-signin .hui-shopping-lightbox .uname {
color: #000;
}
#hui-signin .hui-shopping-lightbox .punch-progress {
width: 240px;
height: 9px;
border: 1px solid #f1f1f1;
border-radius: 20px;
margin: 50px auto 20px;
position: relative;
box-shadow: inset 0 -4px 3px rgba(0, 0, 0, 0.05);
}
#hui-signin .hui-shopping-lightbox .punch-progress-cont {
border: 1px solid #ee6104;
border-radius: 20px;
display: inline-block;
height: 9px;
float: left;
margin-top: -1px;
background-color: #fe8434;
box-shadow: inset 0 -4px 3px rgba(0, 0, 0, 0.05);
}
#hui-signin .hui-shopping-lightbox .punch-progress-cont .btn-progress {
display: inline-block;
width: 18px;
height: 20px;
background-position: -508px -120px;
position: absolute;
top: -4px;
left: 120px;
}
#hui-signin .hui-shopping-lightbox .punch-progress-cont .btn-progress .hui-tooltips {
left: -83px;
top: -35px;
width: 160px;
}
#hui-signin .hui-shopping-lightbox .punch-progress-cont .btn-progress .hui-tooltips .hui-tooltips-arrow {
left: 86px;
}
.hui-shoppingtool .hui-tooltips {
height: 25px;
line-height: 25px;
background-color: #fefded;
border: 1px solid #e8cca1;
padding: 0 10px;
border-radius: 2px;
position: absolute;
z-index: 11;
color: #666;
box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.1);
width: 132px;
}
.hui-shopping-signin .hint-tips {
left: -50px;
bottom: 53px;
z-index: 1;
width: 169px;
*width: 190px;
font-size: 12px;
}
.hui-shoppingtool .hui-tooltips .hui-tooltips-arrow {
position: absolute;
right: 30px;
top: 25px;
width: 12px;
height: 6px;
background-position: -513px -140px;
}
.hui-shoppingtool .hui-icon-zy {
width: 58px;
height: 64px;
position: absolute;
z-index: 100;
top: -59px;
}
.hui-shoppingtool .hui-icon-azy {
width: 68px;
height: 59px;
position: absolute;
z-index: 100;
top: -34px;
left: -59px;
}
.hui-shopping-subBookmarks {
border-right: 1px solid #ededed;
border-left: 2px solid #f1f1f1;
height: 50px;
float: left;
position: relative;
}
.hui-shopping-subBookmarks .hui-sp11 {
display: inline-block;
height: 50px;
position: relative;
z-index: 9;
}
.hui-shopping-subBookmarks .hui-sp3 {
margin: 14px 10px 0;
}
.hui-shopping-subBookmarks .hui-shopping-lightbox {
line-height: 1.3;
width: 347px;
overflow: hidden;
}
.hui-shopping-subBookmarks .hui-shopping-lightbox .hui-nosubBookmarkstips {
text-align: center;
padding: 25px;
}
.hui-shopping-subBookmarks .hui-shopping-lightbox .hui-nosubBookmarkstips a {
text-decoration: underline;
color: blue;
}
.hui-shopping-subBookmarks .hui-shopping-lightbox li.c {
border: 1px solid #f1f1f1;
border-width: 0 1px 1px 0;
position: relative;
float: left;
width: 110px;
height: 174px;
}
.hui-shopping-subBookmarks .hui-shopping-lightbox .hui-subBookmarkslist-last {
border-right-width: 0;
}
.hui-shopping-subBookmarks .hui-subBookmarks-thumb {
width: 90px;
height: 90px;
position: relative;
margin: 10px auto;
}
.hui-shopping-subBookmarks .hui-subBookmarks-detail {
width: 90px;
margin: 0 auto;
}
.hui-shopping-subBookmarks .hui-subBookmarks-detail .hui-shopping-lh {
margin-top: 3px;
}
.hui-shopping-subBookmarks .hui-subBookmarks-thumb .hui-sp17 {
position: absolute;
top: 3px;
left: -4px;
}
.hui-shopping-subBookmarks .hui-subBookmarks-setnav {
border-top-left-radius: 5px;
border-bottom-left-radius: 5px;
width: 13px;
height: 40px;
background-color: #f7f7f7;
position: absolute;
bottom: 0;
right: 0;
z-index: 9;
padding: 6px 4px 0 4px;
display: none;
}
.hui-shopping-subBookmarks .active .hui-subBookmarks-setnav {
display: block;
}
.hui-shopping-subBookmarks .hui-shopping-lightbox-title span {
position: absolute;
}
.hui-shopping-subBookmarks .hui-shopping-lightbox-title .history-newlogo {
width: 118px;
}
.hui-shopping-subBookmarks .hui-shopping-lightbox-title .lightbox-title-txt {
font-weight: bolder;
left: 114px;
top: 5px;
color: #333;
}
.hui-shopping-subBookmarks .hui-shopping-lightbox-title .hui-user-name {
left: 186px;
color: #666;
font-weight: normal;
}
.hui-shopping-subBookmarks .hui-subBookmarks-setnav .hui-subBookmarks-setnav-line {
border-top: 1px solid #c6c6c6;
border-bottom: 1px solid #fff;
line-height: 0;
font-size: 0;
overflow: hidden;
margin: 4px 0;
width: 13px;
}
.hui-shopping-subBookmarks .hui-subBookmarks-setnav .hui-sp18,
.hui-shopping-subBookmarks .hui-subBookmarks-setnav .hui-sp19 {
margin-left: 1px;
}
.hui-shopping-subBookmarks .hui-shopping-subBookmarks-page {
height: 14px;
line-height: 14px;
padding: 8px 0;
}
.youdaoGWZS_sublist .paging-wrapper .set-email-btn {
position: absolute;
right: 10px;
color: blue;
text-decoration: underline;
}
.hui-shopping-subBookmarks .hui-shopping-subBookmarks-page .hui-subBookmarks-pages {
padding: 0 50px;
line-height: 0;
}
#setDepressEmail label {
font-size: 12px;
font-family: Arial, Verdana;
color: #333;
}
#setDepressEmail .youdaoGWZS_dr_dialog_bd {
padding: 15px 40px 0;
}
#setDepressEmail .deprice-email-setting {
margin-top: 15px;
}
#setDepressEmail .deprice-email-setting .youdaoGWZS_dr_r {
position: absolute;
top: -3px;
left: 70px;
color: #999;
}
#setDepressEmail .youdaoGWZS_dr_dialog-ft a {
height: 27px;
line-height: 27px;
}
#setDepressEmail .youdaoGWZS_dr_dialog-ft .youdaoGWZS_noactive {
background-color: #f0f0f0;
border-bottom: 1px solid #d3d3d3;
color: #999;
margin-left: 40px;
}
.hui-shopping-taosame {
float: right;
border-left: 1px solid #ededed;
text-align: center;
position: relative;
}
.hui-shopping-taosame .hui-shopping-commontips {
width: 50px;
z-index: 10;
}
.hui-shopping-taosame .hui-sp11 {
position: relative;
z-index: 9;
display: inline-block;
height: 50px;
padding: 0 10px;
}
.hui-shopping-taosame .hui-sp23 {
margin-top: 6px;
}
.hui-taosame-noitem > a {
cursor: default;
}
.hui-taosame-noitem .hui-shopping-lh {
color: #b2b2b2;
}
.hui-shopping-taosimilar {
float: left;
margin-left: 20px;
}
.hui-shopping-taosimilar img {
display: none;
}
.hui-shopping-taosimilar .hui-shopping-readmore {
border: 1px solid #EFEFEF;
height: 20px;
line-height: 20px;
border-radius: 2px;
background-color: #F6F7F9;
display: inline-block;
padding: 0 5px;
color: #666;
margin: 14px 0 0 20px;
}
.hui-shopping-taosimilar .hui-shopping-datalist {
float: left;
}
.hui-shopping-taosimilar .hui-shopping-datalist .hui-datalist {
position: relative;
float: left;
margin-right: 30px;
height: 50px;
text-align: center;
*display: inline;
}
.hui-shopping-taosimilar .hui-shopping-datalist .hui-datalist .hui-shopping-lightbox {
width: 252px;
bottom: 50px;
}
.hui-shopping-taosimilar .hui-shopping-datalist .hui-datalist .hui-shopping-lightbox .hui-shopping-lightbox-title {
position: relative;
padding: 5px;
height: auto;
}
.hui-shopping-taosimilar .hui-shopping-datalist .hui-datalist .hui-shopping-lightbox .hui-shopping-lightbox-title .hui-taosimilar-title {
font-weight: normal;
line-height: 1.2;
overflow: hidden;
height: 28px;
text-indent: 18px;
font-size: 12px;
color: #343434;
}
.hui-shopping-taosimilar .hui-shopping-datalist .hui-datalist .hui-shopping-lightbox .hui-shopping-lightbox-title span {
position: absolute;
height: 16px;
width: 16px;
top: 2px;
left: 4px;
_left: -8px;
}
.hui-shopping-taosimilar .hui-shopping-datalist .hui-datalist .hui-shopping-lightbox .hui-shopping-lightbox-title .hui-taosimilar-tips-tmall {
background-position: -397px -81px;
}
.hui-shopping-taosimilar .hui-shopping-datalist .hui-datalist .hui-shopping-lightbox .hui-shopping-lightbox-title .hui-taosimilar-tips-taobao {
background-position: -381px -81px;
}
.hui-shopping-taosimilar .hui-shopping-datalist .hui-datalist .hui-shopping-lightbox .hui-shopping-lightbox-bd {
margin: 0 20px 15px;
}
.hui-shopping-taosimilar .hui-shopping-datalist .hui-datalist .hui-shopping-lightbox .hui-shopping-lightbox-bd .hui-taosimilar-hd span {
color: #fa8200;
font-size: 16px;
font-weight: 200;
}
.hui-shopping-taosimilar .hui-shopping-datalist .hui-datalist .hui-shopping-lightbox .hui-shopping-lightbox-bd .hui-taosimilar-bd {
width: 210px;
height: 210px;
margin: 10px 0;
text-align: center;
line-height: 210px;
_font-size: 40px;
}
.hui-shopping-taosimilar .hui-shopping-datalist .hui-datalist .hui-shopping-lightbox .hui-shopping-lightbox-bd .hui-taosimilar-ft {
zoom: 1;
overflow: hidden;
}
.hui-shopping-taosimilar .hui-shopping-datalist .hui-datalist .hui-shopping-lightbox .hui-shopping-lightbox-bd .hui-taosimilar-ft .hui-taosimilar-info-wrapper {
float: right;
font-size: 0;
}
.hui-shopping-taosimilar .hui-shopping-datalist .hui-datalist .hui-shopping-lightbox .hui-shopping-lightbox-bd .hui-taosimilar-ft .hui-taosimilar-info-wrapper:hover {
text-decoration: underline;
}
.hui-shopping-taosimilar .hui-shopping-datalist .hui-datalist .hui-shopping-lightbox .hui-shopping-lightbox-bd .hui-taosimilar-ft .hui-taosimilar-price {
color: #f00;
float: left;
font-weight: bolder;
}
.hui-shopping-taosimilar .hui-shopping-datalist .hui-datalist .hui-shopping-lightbox .hui-shopping-lightbox-bd .hui-taosimilar-ft .hui-taosimilar-sales {
color: #333;
font-size: 13px;
}
.hui-shopping-taosimilar .hui-shopping-datalist .hui-datalist .hui-shopping-lightbox .hui-shopping-lightbox-bd .hui-taosimilar-ft .hui-taosimilar-sales span {
color: #fa8200;
}
.hui-shopping-taosimilar .hui-shopping-datalist .hui-datalist .hui-shopping-lightbox .hui-shopping-lightbox-bd .hui-taosimilar-ft .hui-taosimilar-comment {
font-size: 13px;
color: #0201ff;
}
.hui-shopping-taosimilar .hui-shopping-datalist .hui-datalist-item {
display: inline-block;
border: 1px solid #eee;
*zoom: 1;
*display: inline;
position: relative;
width: 48px;
height: 48px;
text-align: center;
top: 3px;
}
.hui-shopping-taosimilar .hui-shopping-datalist .hui-datalist-item img {
height: 48px;
width: 48px;
}
.hui-shopping-taosimilar .hui-shopping-datalist .hui-datalist-item .hui-colorb2 {
color: #b2b2b2;
}
.hui-shopping-taosimilar .hui-shopping-datalist .hui-datalist-item .item-comment {
position: absolute;
bottom: 20px;
left: 0;
width: 50px;
}
.hui-shopping-taosimilar .hui-shopping-datalist .hui-datalist-item .item-shade {
position: absolute;
bottom: 2px;
left: 0;
width: 48px;
background-color: #000;
height: 20px;
opacity: .5;
filter: alpha(opacity=50);
z-index: 1;
}
.hui-shopping-taosimilar .hui-shopping-datalist .hui-datalist-item .item-price {
position: absolute;
z-index: 2;
bottom: 2px;
left: 0;
width: 50px;
font-weight: bolder;
color: #fff;
}
.hui-shopping-taosimilar .hui-shopping-datalist .hui-datalist-item:hover {
cursor: pointer;
}
.hui-shopping-taosimilar .hui-shopping-datalist .hui-datalist-item:hover .item-shade {
background-color: #fa8200;
opacity: .8;
filter: alpha(opacity=80);
}
.hui-shopping-taosimilar .hui-shopping-datalist .hui-datalist-item:hover .item-price {
color: #fff;
}
.hui-shopping-taosimilar .hui-active .hui-datalist-item {
border: 1px solid #dfdfdf;
background-color: #fff;
z-index: 9;
zoom: 1;
}
.hui-shopping-taosimilar .hui-active .hui-sp11 {
background-position: 0 47px;
}
/* author: xiong; moduleName: plugin_bijia; filePath: /Users/xiong/Documents/sourcecode/hui_zhushou/src/app/modules/plugin_bijia */
#hui-plugin-bijia.hui-plugin-active .hui-price-compare-btn {
width: 113px !important;
background: #fff;
border-bottom: none !important;
height: 37px !important;
z-index: 10;
}
#hui-plugin-bijia.hui-plugin-active .hui-price-compare-box {
display: block !important;
}
#hui-plugin-bijia .hui-price-compare-btn {
width: 113px;
height: 28px;
_width: 96px;
_height: 24px;
_padding-top: 5px;
display: block;
position: relative;
font-size: 12px;
text-align: center;
line-height: 30px;
background-image: none;
background-repeat: no-repeat;
text-decoration: none;
}
#hui-plugin-bijia .hui-price-compare-btn span {
color: #666;
}
#hui-plugin-bijia .hui-price-compare-btn .hui-new-sp {
display: inline-block;
height: 14px;
width: 14px;
vertical-align: middle;
}
#hui-plugin-bijia .hui-price-compare-btn .hui-shop-count {
color: #fa8200;
}
#hui-plugin-bijia .hui-price-compare-btn .hui-icon-lowerst {
background-position: -414px -81px;
margin-top: -2px;
margin-left: -4px;
margin-right: 5px;
}
#hui-plugin-bijia .hui-price-compare-btn .hui-icon-other {
background-position: -429px -80px;
height: 18px;
width: 17px;
margin: 0px 3px 0 3px;
}
#hui-plugin-bijia .hui-price-compare-btn .hui-icon-promotion {
background-position: -119px -25px;
margin-top: -1px;
margin-right: 2px;
}
#hui-plugin-bijia .hui-price-compare-btn .hui-compare-price {
color: #fa8200;
font-weight: bold;
}
#hui-plugin-bijia .hui-price-compare-box {
width: 170px;
padding: 10px;
}
#hui-plugin-bijia .hui-price-compare-box .hui-price-trend-share {
float: none;
display: block;
top: 10px;
color: blue !important;
padding-top: 3px;
padding-left: 0;
}
#hui-plugin-bijia .hui-price-compare-box ul {
float: none;
width: auto;
}
#hui-plugin-bijia .hui-price-compare-box ul li {
float: none;
padding: 0 20px;
font-size: 12px;
height: 2em;
line-height: 2em;
z-index: 1000;
position: relative;
}
#hui-plugin-bijia .hui-price-compare-box ul li a {
text-decoration: none;
}
#hui-plugin-bijia .hui-price-compare-box ul li a .hui-shop-name {
color: #666;
width: 83px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
display: inline-block;
}
#hui-plugin-bijia .hui-price-compare-box ul li a .hui-shop-name:hover {
text-decoration: underline;
}
#hui-plugin-bijia .hui-price-compare-box ul li a .hui-price {
color: #fa8200;
font-weight: bold;
position: absolute;
left: 100px;
}
#hui-plugin-bijia .hui-price-compare-box ul li a .hui-price:hover {
text-decoration: none;
}
#hui-plugin-bijia .hui-price-compare-box ul li a .hui-promotion {
position: absolute;
left: 157px;
top: 4px;
}
#hui-plugin-bijia .hui-price-compare-box ul li a .hui-promotion .hui-sp9 {
background-position: -119px -25px;
display: inline-block;
height: 14px;
width: 14px;
}
#hui-plugin-bijia .hui-price-compare-box ul .hui-more-price {
display: block;
height: 20px;
width: 70px;
padding: 0 1px ;
border: 1px solid #efefef;
color: #666;
background-color: #f6f7f9;
line-height: 20px;
margin: 10px auto;
text-align: center;
}
#hui-plugin-bijia.hui-price-compare-hai .hui-price-compare-box ul li {
padding: 0 10px;
}
/* author: xiong; moduleName: plugin_collect; filePath: /Users/xiong/Documents/sourcecode/hui_zhushou/src/app/modules/plugin_collect */
#hui-plugin-collection {
display: inline-block;
zoom: 1;
width: 80px;
}
#hui-plugin-collection .hui-collection-collected {
display: none;
}
#hui-plugin-collection .hui-collection-no-collect {
display: block;
}
#hui-plugin-collection.hui-collection-already .hui-collection-collected {
display: block;
}
#hui-plugin-collection.hui-collection-already .hui-collection-no-collect {
display: none;
}
#hui-plugin-collection .hui-btn-inside {
height: 28px;
_height: 24px;
_padding-top: 5px;
position: relative;
padding-left: 5px;
font-size: 12px;
text-align: left;
line-height: 30px;
background-image: none;
background-repeat: no-repeat;
text-decoration: none;
white-space: nowrap;
}
#hui-plugin-collection a {
display: none;
font-size: 14px;
line-height: 18px;
text-decoration: none;
}
#hui-plugin-collection a:hover,
#hui-plugin-collection a:visited {
color: #666 !important;
}
#hui-plugin-collection a .hui-new-sp {
display: inline-block;
height: 18px;
width: 18px;
vertical-align: -5px;
_vertical-align: middle;
}
#hui-plugin-collection a .hui-sp-star {
background-position: -428px -62px;
}
#hui-plugin-collection a .hui-sp-already-star {
background-position: -446px -62px;
}
#hui-plugin-collection a .hui-collection-title {
font-size: 14px;
color: #666;
display: inline;
}
#hui-plugin-collection .hui-plugin-no-collect {
display: block;
}
#hui-plugin-collection #hui-collection-new-user-guide {
position: absolute;
width: 240px;
height: 45px;
top: -7px;
left: 96px;
text-indent: 20px;
line-height: 40px;
font-size: 12px;
color: white;
}
#hui-plugin-collection #hui-collection-new-user-guide .hui-link {
display: block;
font-size: 12px;
color: #fff !important;
line-height: 40px;
}
#hui-plugin-collection #hui-collection-new-user-guide .hui-close-btn {
position: absolute;
right: 5px;
top: 3px;
display: block;
height: 15px;
width: 15px;
background-color: red;
filter: alpha(opacity=0);
opacity: 0;
overflow: hidden;
}
#hui-transition-item {
display: block;
z-index: 3147483648;
width: 28px;
height: 28px;
border: 2px solid #fa8000;
}
#hui-transition-start {
display: block;
z-index: 3147483647;
width: 18px;
height: 18px;
}
/* author: xiong; moduleName: haitao; filePath: /Users/xiong/Documents/sourcecode/hui_zhushou/src/app/modules/haitao */
#hui-plugin-haitao {
/*
*下面这条是为了和亚马逊的页面样式进行覆盖
*URL:http://www.dwz.cn/m2jft
*/
}
#hui-plugin-haitao a span {
display: inline;
}
#hui-plugin-haitao.hui-plugin-active .hui-plug-history-box {
display: block;
z-index: 2;
}
#hui-plugin-haitao.hui-plugin-active .hui-haitao-total-price {
z-index: 3;
height: 40px;
background-color: #fff;
border-bottom: none;
}
#hui-plugin-haitao.hui-plugin-active .hui-haitao-total-price:hover {
text-decoration: none;
}
#hui-plugin-haitao .hui-haitao-total-price {
width: auto;
height: 28px;
overflow: hidden;
position: relative;
display: block;
font-size: 12px;
}
#hui-plugin-haitao .hui-haitao-total-price div {
width: 100px;
line-height: 30px;
text-align: center;
font-size: 14px;
}
#hui-plugin-haitao .hui-haitao-total-price div i {
display: inline-block;
width: 5px;
height: 3px;
background-position: -328px -148px;
position: relative;
top: -2px;
left: 5px;
}
#hui-plugin-haitao .hui-haitao-total-price .hui-haitao-bolder {
font-size: 14px;
color: #fff;
font-weight: bolder;
}
#hui-plugin-haitao .hui-haitao-money {
font-weight: bolder;
color: #f98401;
}
#hui-plugin-haitao .hui-haitao-btn {
background-color: #f98200;
border: 1px solid #f98200;
color: #fff;
}
#hui-plugin-haitao .hui-haitao-btn .hui-haitao-btn-tip {
color: #000;
}
#hui-plugin-haitao .hui-haitao-bd {
margin: 21px 25px 0 21px;
color: #666;
font-size: 13px;
border-bottom: 1px solid #fffcf5;
}
#hui-plugin-haitao .hui-haitao-bd li {
margin-bottom: 8px;
color: #666;
}
#hui-plugin-haitao .hui-haitao-bd .hui-haitao-baseInfo {
border-bottom: 1px dashed #f1f1f1;
padding-bottom: 10px;
margin-bottom: 15px;
}
#hui-plugin-haitao .hui-haitao-bd .hui-haitao-transferMoney {
margin-bottom: 17px;
}
#hui-plugin-haitao .hui-haitao-bd .hui-haitao-transferMoney a {
text-decoration: underline;
}
#hui-plugin-haitao .hui-haitao-bd .hui-haitao-transferMoney .hui-haitao-transferMoney-item {
margin-bottom: -1px;
height: 18px;
overflow: hidden;
}
#hui-plugin-haitao .hui-haitao-bd .hui-haitao-transferMoney .hui-haitao-transferMoney-item a {
text-decoration: none;
}
#hui-plugin-haitao .hui-haitao-bd .hui-haitao-transferMoney .input-wrapper {
padding: 2px 10px;
padding-right: 0;
border: 1px solid #c0c0c0;
margin-right: 6px;
margin-left: -4px;
*display: inline-block;
*zoom: 1;
}
#hui-plugin-haitao .hui-haitao-bd .hui-haitao-transferMoney .input-wrapper .weightInput {
outline: none;
vertical-align: top;
-webkit-box-shadow: 0 0 0;
box-shadow: 0 0 0;
border: none;
padding: 0;
margin: 0;
width: 41px;
height: 15px;
}
#hui-plugin-haitao .hui-haitao-ft {
height: 58px;
font-size: 13px;
line-height: 45px;
padding-left: 21px;
background-color: #fffcf5;
position: relative;
z-index: -1;
}
#hui-plugin-haitao .hui-haitao-ft .hui-haitao-total-title {
color: #000;
font-weight: bolder;
}
#hui-plugin-haitao .hui-haitao-ft .hui-haitao-translate {
color: #676664;
margin-left: 50px;
position: absolute;
right: 10px;
*top: -5px;
}
#hui-plugin-haitao .hui-haitao-ft .hui-haitao-translate input {
vertical-align: baseline;
_vertical-align: middle;
_margin: 20px 0;
position: static;
width: 12px;
height: 12px;
}
#hui-plugin-haitao .hui-haitao-ft .hui-haitao-translate label {
*vertical-align: middle;
*margin: 20px 0;
display: inline;
font-weight: normal;
}
#hui-plugin-haitao .hui-haitao-share a {
font-size: 12px;
color: blue!important;
position: relative;
left: 8px;
}
.hui-selector {
position: relative;
top: 6px;
display: inline-block;
*display: inline;
zoom: 1;
cursor: default;
text-align: left;
line-height: 20px;
clear: both;
color: #888;
border: 1px solid #d9d9d9;
border-bottom: 1px solid #c0c0c0;
z-index: 2;
}
.hui-selector .hui-selector-selected {
position: relative;
float: left;
height: 20px;
z-index: 1;
width: 62px;
text-align: center;
border-right: 1px solid #d9d9d9;
background: #f6f6f6;
overflow: hidden;
}
.hui-selector .hui-selector-selectArrow {
position: relative;
float: left;
height: 20px;
z-index: 1;
width: 15px;
text-align: center;
font-size: 13px;
color: #768290;
background: #f5f5f3;
}
.hui-selector .hui-selector-selectOptions {
position: absolute;
display: none;
top: 20px;
left: -1px;
width: 78px;
border: 1px solid #ccc;
overflow: hidden;
background: #f6f6f6;
padding-top: 2px;
}
.hui-selector .hui-selector-selectOptions .hui-selector-option-hover {
background-color: #666;
color: #fff;
}
.hui-selector .hui-selector-selectOptions li {
line-height: 20px;
cursor: pointer;
}
#hui-plugin-haitao .hui-haitao-bd .hui-selector-option-hover {
background-color: #666;
color: #fff;
}
#hui-haitao-channel .hui-selector-selected {
width: 124px;
}
#hui-haitao-channel .hui-selector-selectOptions {
width: 140px;
}
/* author: xiong; moduleName: haitao; filePath: /Users/xiong/Documents/sourcecode/hui_zhushou/src/app/modules/haitao */
#hui-plugin-daigou {
/*
*下面这条是为了和亚马逊的页面样式进行覆盖
*URL:http://www.dwz.cn/m2jft
*/
}
#hui-plugin-daigou a span {
display: inline;
}
#hui-plugin-daigou:hover {
z-index: 2;
}
#hui-plugin-daigou:hover .daigou-detail {
display: block;
z-index: 3;
}
#hui-plugin-daigou.hui-btn-disabled {
/*&:hover {
.daigou-detail{
display:none;
}
}*/
}
#hui-plugin-daigou.hui-btn-disabled .hui-daigou-total-price {
background: #f8f8f9;
color: #b7b7b7;
}
#hui-plugin-daigou.hui-btn-disabled .hui-daigou-total-price .hui-sp-plane {
background-position: -341px -495px;
}
#hui-plugin-daigou.hui-btn-disabled .hui-daigou-conversion-price {
display: none!important;
}
#hui-plugin-daigou.hui-btn-isretailer .hui-daigou-total-price {
background: #f8f8f9;
color: #b7b7b7;
}
#hui-plugin-daigou.hui-btn-isretailer .hui-daigou-total-price .hui-sp-plane {
background-position: -341px -495px;
}
#hui-plugin-daigou.hui-btn-isretailer .hui-daigou-total-price .hui-daigou-conversion-price {
color: #b7b7b7;
}
#hui-plugin-daigou.hui-plugin-daigou-disabled {
z-index: 2;
}
#hui-plugin-daigou.hui-plugin-daigou-disabled:hover .daigou-detail {
display: none;
}
#hui-plugin-daigou.hui-plugin-active .hui-plug-history-box {
display: block;
z-index: 2;
}
#hui-plugin-daigou.hui-plugin-active .hui-haitao-total-price {
z-index: 3;
height: 38px;
-height: 35px;
}
#hui-plugin-daigou.hui-plugin-active .hui-haitao-total-price:hover {
text-decoration: none;
}
#hui-plugin-daigou .hui-daigou-total-price {
padding-right: 20px;
overflow: hidden;
position: relative;
display: block;
border-width: 1px;
border-color: #dedede;
border-style: solid;
text-decoration: none;
background-color: #fff3c8;
height: 28px;
line-height: 28px;
border-radius: 0 5px 5px 0;
}
#hui-plugin-daigou .hui-daigou-total-price .hui-sp-plane {
display: inline-block;
width: 15px;
height: 15px;
vertical-align: middle;
margin: -2px 5px 0 8px;
background-position: -321px -495px;
}
#hui-plugin-daigou .hui-daigou-total-price .hui-daigou-conversion-title {
font-size: 14px;
}
#hui-plugin-daigou .hui-daigou-total-price .hui-daigou-conversion-price {
display: inline-block;
color: #b12704;
font-weight: bold;
font-size: 14px;
font-family: 'Arial';
}
#hui-plugin-daigou .daigou-detail {
display: none;
position: absolute;
padding-top: 5px;
white-space: normal;
/*&:before,&:after{
content:'';
display:block;
border-style:solid;
width:0;
height:0;
position:absolute;
top:1px;
left:15px;
}
&:before{
top:6px;
border-width:0 8px 14px 8px;
border-color:transparent transparent #dfdfdf transparent;
}
&:after{
border-width:0 8px 14px 8px;
border-color:transparent transparent #fff transparent;
top:7px;
}*/
}
#hui-plugin-daigou .daigou-detail .inner {
background-color: #fff;
border: 2px solid #dedede;
font-size: 12px;
padding: 10px 15px;
color: #666;
width: 208px;
line-height: 18px;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
#hui-plugin-daigou .daigou-detail .inner .confirm-daigou {
display: block;
width: 120px;
line-height: 30px;
margin: 8px auto;
border: 1px solid #74b05f;
border-radius: 3px;
text-align: center;
color: #74b05f;
font-size: 14px;
}
#hui-plugin-daigou .daigou-detail .inner p {
margin: 3px 0;
}
#hui-plugin-daigou .daigou-detail .inner .fl {
float: left;
width: 85px;
text-align: right;
}
#hui-plugin-daigou .daigou-detail .inner .fr {
float: none;
font-weight: bold;
font-family: 'Arial';
display: block!important;
margin-left: 90px;
}
#hui-plugin-daigou .daigou-detail .inner .text-gray {
font-weight: normal;
color: #adadad;
}
#hui-plugin-daigou .daigou-detail .inner .hui-new-help {
margin: -1px 0 0 5px;
position: relative;
cursor: pointer;
}
#hui-plugin-daigou .daigou-detail .inner .hui-new-help span {
display: none!important;
width: 150px;
position: absolute;
left: 12px;
background: #fff;
border: 1px solid #eee;
padding: 5px;
font-weight: normal;
}
#hui-plugin-daigou .daigou-detail .inner .hui-new-help:hover span {
display: block!important;
}
#hui-plugin-daigou .daigou-detail strong {
font-weight: bold;
}
#hui-plugin-daigou .daigou-detail .tips {
border-bottom: 1px solid #f1f1f1;
padding-bottom: 5px;
}
#hui-plugin-daigou .daigou-detail .days {
border-top: 1px solid #f1f1f1;
padding-top: 5px;
}
#hui-plugin-daigou .daigou-detail .days span {
color: #aaa;
}
#hui-plugin-daigou.right .daigou-detail {
right: 0;
}
#hui-plugin-daigou .text-green {
color: #169b28;
}
#hui-plugin-daigou .text-red {
color: #b12704;
}
#hui-daigou-undisposed-aletr-dialog {
position: absolute;
top: 35px;
left: 0;
z-index: 2;
font-family: '\5B8B\4F53', Arial, Helvetica, sans-serif;
}
#hui-daigou-undisposed-aletr-dialog.hui-btn-cancel {
width: 170px;
height: 40px;
line-height: 20px;
background-color: #fff;
border: 2px solid #dedede;
font-size: 12px;
padding: 5px 50px 5px 15px;
font-weight: normal;
border-radius: 0;
}
#hui-daigou-undisposed-aletr-dialog.hui-btn-cancel span {
color: #555;
}
#hui-daigou-undisposed-aletr-dialog.hui-btn-cancel strong {
font-weight: normal;
color: #b12704;
}
#hui-daigou-undisposed-aletr-dialog.hui-btn-cancel i {
display: inline-block;
width: 26px;
height: 26px;
vertical-align: -8px;
margin: 5px 10px 0 0;
background-position: -442px -101px;
position: static;
font-size: 12px;
}
#hui-plugin-daigou-promotions.daigou-promotions {
display: none;
float: left;
width: 100%;
margin-top: 7px !important;
font-size: 12px;
}
#hui-plugin-daigou-promotions.daigou-promotions .daigou-promotions-content {
position: relative;
float: left;
padding: 8px 5px 0 38px !important;
min-width: 270px;
background-color: #fff;
border: 1px solid #dedede;
border-radius: 4px;
}
#hui-plugin-daigou-promotions.daigou-promotions .daigou-promotions-ico {
position: absolute;
left: 235px;
top: -12px;
width: 0;
height: 0;
font-size: 0;
border: 6px solid #dedede;
border-color: transparent transparent #dedede transparent;
}
#hui-plugin-daigou-promotions.daigou-promotions .daigou-promotions-ico .ico2 {
position: absolute;
left: -6px;
top: -5px;
width: 0;
height: 0;
font-size: 0;
border: 6px solid #fff;
border-color: transparent transparent #fff transparent;
}
#hui-plugin-daigou-promotions.daigou-promotions p {
position: relative;
margin-bottom: 4px;
line-height: 20px;
color: #ff6600;
margin-top: 0px;
}
#hui-plugin-daigou-promotions.daigou-promotions p a {
background: none;
}
#hui-plugin-daigou-promotions.daigou-promotions .yhui a,
#hui-plugin-daigou-promotions.daigou-promotions .app a {
color: #ff6600;
text-decoration: none;
}
#hui-plugin-daigou-promotions.daigou-promotions .yhui a:hover,
#hui-plugin-daigou-promotions.daigou-promotions .app a:hover {
color: #ef7f15;
text-decoration: underline;
}
#hui-plugin-daigou-promotions.daigou-promotions .ico-yhui {
position: absolute;
left: 5px;
top: 8px;
background-color: #ef7f15;
border-radius: 2px;
line-height: 1;
padding: 2px;
color: #fff;
}
#hui-plugin-daigou-promotions.daigou-promotions .download-app {
position: relative;
float: right;
z-index: 1;
width: 70px;
padding-top: 20px;
margin-bottom: 4px;
background-color: #f9f9f9;
background-position: -440px -152px;
color: #b0b0b0;
vertical-align: middle;
}
#hui-plugin-daigou-promotions.daigou-promotions .download-app:hover {
z-index: 2;
}
#hui-plugin-daigou-promotions.daigou-promotions .download-app:hover .download-app-pic {
display: block;
}
#hui-plugin-daigou-promotions.daigou-promotions .download-app-pic {
display: none;
position: absolute;
right: 0;
width: 200px;
height: 200px;
padding: 10px;
border: 2px solid #ddd;
background-color: #fff;
}
#hui-plugin-daigou-tips.daigou-tip-lists {
float: left;
width: 100%;
margin: 8px 0 !important;
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-tip {
float: left;
padding-right: 10px;
position: relative;
color: #666;
font-size: 12px;
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-tip:hover .daigou-tip-box {
display: block;
}
#hui-plugin-daigou-tips.daigou-tip-lists a {
color: #666;
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-tip-box {
display: none;
position: absolute;
left: 0px;
top: 19px;
padding-top: 6px;
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-tip-box > div {
background-color: #fff;
border: 2px solid #dedede;
font-size: 12px;
padding: 10px 15px;
color: #666;
width: 208px;
line-height: 18px;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-tip-box .daigou-tip-lable {
font-weight: normal;
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-tip-box .daigou-tip-lable input {
position: static;
width: auto;
opacity: 1;
margin: 0 5px 0 0;
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-tip-box.right {
left: auto;
right: 0;
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-size-help {
width: 286px!important;
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-size-help .size-media {
overflow: hidden;
line-height: 18px;
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-size-help .size-media .size-media-img {
float: left;
width: 50px;
height: 20px;
margin: 5px 10px 0 0;
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-size-help .size-media .offset {
margin-left: 60px;
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-size-help .size-tab {
margin: 10px 0 0;
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-size-help .size-tab a {
float: left;
font-size: 14px;
background: #f8f8f8;
color: #666;
width: 141px;
line-height: 31px;
letter-spacing: 25px;
text-indent: 25px;
text-align: center;
border: 1px solid #f8f8f8;
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-size-help .size-tab a.current {
border: 1px solid #dbeff7;
background: #fff;
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-size-help .size-tab a:hover {
text-decoration: none;
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-size-help .size-tab a:first-child {
margin-right: 1px;
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-size-help .size-tab a:last-child {
width: 140px;
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-size-help table {
width: 100%;
margin: 0;
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-size-help table th,
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-size-help table td {
color: #666;
border: 1px solid #fff;
text-align: center;
width: 25%;
line-height: 30px;
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-size-help table th {
font-weight: normal;
background: #dbeff7;
border-bottom: none;
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-size-help table td {
background: #f8f8f8;
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-size-help table .empty {
line-height: 90px;
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-size-help .size-tab-content {
height: 93px;
overflow-y: auto;
overflow-x: hidden;
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-size-help .size-tab-content table {
width: 286px;
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-size-help .size-footer {
color: #666;
padding-top: 5px;
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-size-help .size-footer p {
margin-top: 3px;
}
#hui-plugin-daigou-tips.daigou-tip-lists .daigou-size-help .size-footer .gray {
color: #999;
}
.hui-new-san,
.hui-new-ziying,
.hui-new-free-shipping,
.hui-new-shipping,
.hui-new-size,
.hui-new-cu,
.hui-new-help,
.hui-new-translate,
.hui-new-days {
display: inline-block !important;
vertical-align: middle;
width: 17px;
height: 17px;
margin-right: 3px;
}
.hui-new-san {
background-position: -360px -495px;
}
.hui-new-ziying {
background-position: -380px -495px;
}
.hui-new-shipping {
background-position: -420px -495px;
}
.hui-new-free-shipping {
background-position: -400px -495px;
}
.hui-new-size {
background-position: -440px -495px;
}
.hui-new-cu {
background-position: -486px -495px;
}
.hui-new-help {
width: 12px;
height: 12px;
background-position: -302px -3px;
}
.hui-new-days {
width: 12px;
height: 12px;
background-position: right -152px;
}
.hui-new-translate {
background-position: -506px -495px;
}
#hui-plugin.hui-plugin-6pm .daigou-tip-lists {
margin-left: 33px !important;
}
#hui-plugin.hui-plugin-6pm .daigou-tip-lists .daigou-tip-box {
top: 16px;
}
#hui-plugin.hui-plugin-6pm .daigou-promotions {
margin: 7px 0 7px 31px !important;
}
#hui-plugin.hui-plugin-6pm .daigou-promotions .daigou-promotions-content {
width: 211px;
min-width: 211px;
}
#hui_plugin_success_in_daigou {
box-sizing: content-box;
background: #fee4c1;
border-color: #fb8200;
margin-bottom: 14px;
}
#hui_plugin_success_in_daigou .higligth {
color: #e6490b;
}
#hui_plugin_success_in_daigou .higligth i {
font-style: normal;
font-family: sans-serif;
}
.gncStandard #product-top {
overflow: visible;
*zoom: 1;
}
.gncStandard #product-top:after {
content: '';
display: block;
clear: both;
}
#tran-crumb {
display: inline;
padding-left: 10px;
font-family: "\5FAE\8F6F\96C5\9ED1, Arail";
font-size: 12px;
color: #fd6802;
}
#tran-crumb i {
padding-left: 10px;
color: #999;
font-style: normal;
}
#actionPanelWrapper.burj {
overflow: visible!important;
}
/* author: xiong; moduleName: plugin_history; filePath: /Users/xiong/Documents/sourcecode/hui_zhushou/src/app/modules/plugin_history */
#hui-plugin-history .hui-lowest,
#hui-plugin-history .hui-rise,
#hui-plugin-history .hui-steady,
#hui-plugin-history .hui-fall,
#hui-plugin-history .hui-deprice-icon {
font-size: 0;
line-height: 0;
overflow: hidden;
}
#hui-plugin-history .hui-lowest,
#hui-plugin-history .hui-rise,
#hui-plugin-history .hui-steady,
#hui-plugin-history .hui-fall {
*margin-right: 5px;
}
#hui-plugin-history .hui-priceHistoryTip11-icon {
font-size: 0;
line-height: 0;
overflow: hidden;
*margin-right: 5px;
width: 19px;
height: 11px;
background-position: -328px -149px;
}
#hui-plugin-history .plugin-history-btn {
padding: 0 10px;
height: 28px;
width: auto;
_width: 0;
white-space: nowrap;
_height: 24px;
_padding-top: 5px;
display: block;
position: relative;
font-size: 14px;
text-align: center;
line-height: 30px;
background-image: none;
background-repeat: no-repeat;
color: #666;
text-decoration: none;
}
#hui-plugin-history .plugin-history-btn em {
_font-size: 11px;
display: inline-block;
}
#hui-plugin-history .plugin-history-btn:hover {
text-decoration: none;
}
#hui-plugin-history .history-collection-wrapper {
text-align: center;
margin: 2px 0 10px 0;
}
#hui-plugin-history .hui-collection-collected {
display: none;
}
#hui-plugin-history .hui-collection-no-collect {
display: inline-block;
}
#hui-plugin-history .history-collection-recommend {
text-align: center;
font-size: 12px;
color: #fa8200;
}
#hui-plugin-history .history-collection-recommend .tip11-recommend {
color: #f90000;
}
#hui-plugin-history .hui-collection-already .hui-collection-collected {
display: inline-block;
}
#hui-plugin-history .hui-collection-already .hui-collection-no-collect {
display: none;
}
#hui-plugin-history .hui-price-trend-share {
top: 0;
}
#hui-plugin-history.hui-plugin-active .hui-btn-inside {
height: 40px;
background-color: #fff;
border-bottom: none;
z-index: 10;
}
#hui-plugin-history.hui-plugin-active .hui-history-box {
left: 0;
top: 39px;
z-index: 2;
display: block;
}
#hui-plugin-history.hui-plugin-active .hui-history-box .history-newlogo {
width: 172px;
height: 28px;
background-position: -272px -17px;
top: 8px;
}
#hui-plugin-history.hui-plugin-active .hui-history-box .hui-price-Preferential {
width: 66px;
height: 73px;
background-position: 0px 0px;
top: 237px;
right: -45px;
}
#hui-plugin-history.hui-plugin-active .hui-history-box .hui-price-fraud {
width: 66px;
height: 72px;
background-position: 0px -78px;
top: 240px;
right: -45px;
}
.hui-history-canvas {
background-color: #fff;
position: relative;
width: 337px;
height: 200px;
margin-top: 18px;
}
.hui-history-canvas .hui-history-curve,
.hui-history-canvas .hui-history-canvas-tooltip {
position: absolute;
top: 0px;
left: 0px;
}
.hui-history-canvas .hui-history-labels {
font-size: smaller;
color: #888;
}
.hui-history-canvas .hui-history-labels .hui-history-time-label {
position: absolute;
text-align: center;
top: 168px;
width: 45px;
}
.hui-history-canvas .hui-history-labels .hui-history-price-label {
position: absolute;
left: 10px;
text-align: left;
}
.hui-history-canvas .hui-history-describe {
position: absolute;
left: 0px;
top: -5px;
}
.hui-history-canvas .hui-history-most-price {
position: absolute;
top: 0;
left: 102%;
text-align: center;
height: 162px;
white-space: nowrap;
}
.hui-history-canvas .hui-history-most-price dl {
position: absolute;
left: 10px;
}
.hui-history-canvas .hui-history-most-price dl dd {
margin-left: 0;
}
.hui-history-canvas .canvas-tooltip {
position: absolute;
border: 2px solid #fea364;
padding: 1px;
background: #fff;
max-width: 150px;
}
.hui-history-canvas .canvas-tooltip .tt {
padding: 0 2px;
}
.hui-history-canvas .canvas-tooltip .tt .date {
padding-right: 5px;
}
.hui-history-canvas .canvas-tooltip .hc {
padding: 0 2px;
border-top: 1px solid #efefef;
}
.hui-history-canvas .canvas-tooltip .hc p {
margin: 3px 0;
line-height: 1.5;
}
.hui-history-canvas .canvas-tooltip .hc p strong {
color: #fd6802;
}
.hui-history-canvas .canvas-tooltip:before,
.hui-history-canvas .canvas-tooltip:after {
content: '';
display: block;
width: 0;
position: absolute;
}
.hui-history-canvas .canvas-tooltip:before {
border-width: 10px 0 0 8px;
border-style: solid;
border-color: transparent transparent transparent #fea364;
top: -10px;
left: -2px;
}
.hui-history-canvas .canvas-tooltip:after {
border-width: 10px 0 0 8px;
border-style: solid;
border-color: transparent transparent transparent #fff;
top: -4px;
left: 0px;
}
.hui-history-canvas .canvas-tooltip.right {
min-width: 124px;
}
.hui-history-canvas .canvas-tooltip.right:before {
border-width: 10px 8px 0 0;
border-style: solid;
border-color: transparent #fea364 transparent transparent;
top: -10px;
left: auto;
right: -2px;
}
.hui-history-canvas .canvas-tooltip.right:after {
border-width: 10px 8px 0 0;
border-style: solid;
border-color: transparent #fff transparent transparent;
top: -4px;
left: auto;
right: 0;
}
#yixinDialog {
width: 540px;
height: 340px;
top: 0;
left: 0;
}
#yixinDialog .hui-yixinremind .hui-step-item {
float: left;
width: 123px;
text-align: center;
}
#yixinDialog .hui-yixinremind .hui-step-item p {
width: 110px;
display: inline-block;
}
#yixinDialog .hui-yixinremind .hui-step-item p a {
color: #005aa0;
}
#yixinDialog .hui-yixinremind .hui-step-item p em {
color: #fa8200;
}
#yixinDialog .hui-yixin-title {
font-weight: 700;
}
#yixinDialog .hui-yixinremind .icon-yixin-step-cont {
width: 121px;
height: 115px;
border-right: 1px dashed #e7e7e7;
margin-right: -1px;
margin-bottom: 30px;
}
#yixinDialog .hui-yixinremind .hui-step-lastitem {
border: none;
}
.hui-yixin-step1 {
display: inline-block;
width: 80px;
height: 80px;
background-position: 0 -461px;
}
.hui-yixin-step2 {
display: inline-block;
width: 51px;
height: 102px;
background-position: -81px -461px;
}
.hui-yixin-step3 {
display: inline-block;
width: 55px;
height: 102px;
background-position: -133px -461px;
}
.hui-yixin-step4 {
display: inline-block;
width: 130px;
height: 130px;
}
.hui-yixin-step5 {
display: inline-block;
width: 54px;
height: 102px;
background-position: -189px -461px;
}
#yixinDialog .hui-yixinremind .icon-yixin-step-cont .hui-yixin-step1,
#yixinDialog .hui-yixinremind .icon-yixin-step-cont .hui-yixin-step4 {
margin-top: 25px;
}
#yixinDialog .hui-yixinremind .icon-yixin-step-cont .hui-yixin-step2,
#yixinDialog .hui-yixinremind .icon-yixin-step-cont .hui-yixin-step3,
#yixinDialog .hui-yixinremind .icon-yixin-step-cont .hui-yixin-step5 {
margin-top: 10px;
}
#yixinDialog .youdaoGWZS_dr_dialog-ft {
margin-top: 24px;
position: relative;
}
#yixinDialog .youdaoGWZS_dr_dialog-ft a {
margin: 0 30px;
}
#yixinDialog .youdaoGWZS_dr_dialog-ft .youdaoGWZS_dr_dialog_tip {
position: absolute;
top: 15px;
right: 30px;
}
#yixinDialog .youdaoGWZS_dr_dialog-ft .youdaoGWZS_noactive {
background-color: #f0f0f0;
border-bottom: 1px solid #d3d3d3;
color: #999;
}
|
$(document).ready(function(){
//The user will be prompted to continue and go down the page by clicking on an HTML element
//The result will be a smooth transition of the word ">>>Continue" and then a smooth scroll down the page
//to the next stage of the user's process in the application: making an account(probably done through Google and Facebook)
$(document).ready(function(){
$('#userPrompt>span:nth-child(1)').delay(350).fadeTo(450,1.0);
$('#userPrompt>span:nth-child(2)').delay(450).fadeTo(450,1.0);
$('#userPrompt>span:nth-child(3)').delay(550).fadeTo(450,1.0); //this div represents the bottom option, or the 'quick presentation div'
$('#Continue').delay(700).fadeTo(850,1.0); //Continue button
});
/*$('#userPrompt').click(function(){
$('#promptOverlay').fadeTo(850,0.0);
$(this).delay(850).animate({marginLeft: '900px'}, 850)
$(this).delay(100).fadeOut(850);
});
The "#promptOverlay" div is not longer in use, and as a result, we do not need to use this line of code...
Let's keep things....simpler...
*/
$('#userPrompt').one("click",function(){
$(this).fadeTo(850,0);
//Scroll Down
var height = $("#navBar").css('height');
$('html , body').animate({
scrollTop: 725
}, 1250);
//Create Options on Options Bar div, first by making a dividing line
$('#imagine').delay(1250).animate({
height: '330px'
});
//Create Third option by making it now visible...
$('#quick').delay(1850).fadeTo(300, 1);
//Time to make options visible...
$('.heading').delay(2000).fadeTo(300, 1);
});
//With options now created, we can create some functionality to those options, making the user's experience both meaningful and aesthetically pleasing.
/*$('#returner, #imagine').click(function(){
//alert("Log into account"); Test
$('.heading').fadeTo(850, 0);
$('#quick').fadeOut();
$('#imagine').delay(250).animate({
height: '0px'
});
$('#optionsBar').delay(1400).css("background-color", "rgb(215,215,215)");
$('#optionsBar');
});*/
/*$('#newUser').one("click", function(){
//alert("Make account"); Test
$('#optionsBar>div').fadeOut(850);
$('#optionsBar').delay(1400).css("background-color", "rgb(215,215,215)");
var welcomeHeader = '<h3 margin-top="20px" class="heading">Welcome to ShowCase. Please Log In Below...</h3>';
var inputTypeOne = '<input type="text/plain">keep'
//$('h3').delay(1900).html("Welcome to ShowCase. Please Log In Below...").appendTo("#optionsBar");
$(welcomeHeader).hide().delay(2000).appendTo('#optionsBar').fadeIn(100);
var styles = {
fontFamily: 'Lato',
color: 'rgba(16,16,14,0.65)',
paddingTop: '10px',
};
// $(welcomeHeader).css(headerStyle);
$('#optionsBar').css(styles);
});//End of Account Creation Process...*
$('#quick').click(function(){
//alert("I just don't care."); Test
$('.heading').fadeTo(850, 0);
$('#quick').fadeOut();
$('#imagine').delay(250).animate({
height: '0px'
});
$('#optionsBar').delay(1400).css("background-color", "rgb(215,215,215)");
});*/
}); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.