answer
stringlengths 15
1.25M
|
|---|
'use strict'
var helper = require("../../../helper");
var <API key> = require('../../../../src/managers/production/finishing-printing/<API key>');
var codeGenerator = require('../../../../src/utils/code-generator');
var kanbanDataUtil = require('./kanban-data-util');
var machineDataUtil = require('../../master/machine-data-util');
var <API key> = require('../../master/<API key>');
var moment = require('moment');
class <API key> {
getNewData(type) {
return Promise.all([kanbanDataUtil.getNewTestData()])
.then(kanban => {
var _kanban = kanban[0];
return Promise.all([machineDataUtil.getTestData()])
.then((machine) => {
return <API key>.getTestData()
.then(reason => {
var dailyType = type ? type : "input";
var _machine = machine[0];
var tempStep = {};
for (var a of _machine.steps) {
tempStep = a.step;
break;
}
var code = codeGenerator();
var dateNow = new Date();
var dateNowString = '2017-01-01';
var data = {};
if (dailyType === "input") {
data = {
kanbanId: _kanban._id,
kanban: _kanban,
shift: `shift ${code}`,
machineId: _machine._id,
machine: _machine,
stepId: tempStep._id,
step: tempStep,
dateInput: dateNowString,
timeInput: 10000,
input: 20,
type: "input"
};
} else {
data = {
kanbanId: _kanban._id,
kanban: _kanban,
shift: `shift ${code}`,
machineId: _machine._id,
machine: _machine,
stepId: tempStep._id,
step: tempStep,
dateOutput: dateNowString,
timeOutput: 12000,
goodOutput: 18,
badOutput: 2,
type: "output",
badOutputReasons: [{
length: 2,
description: "Rusak",
action: "Digudangkan",
badOutputReasonId: reason._id,
badOutputReason: reason,
machineId: _machine._id,
machine: _machine
}]
};
}
return Promise.resolve(data);
});
});
});
}
<API key>(type) {
return Promise.all([kanbanDataUtil.<API key>(), machineDataUtil.getTestData(), <API key>.getTestData()])
.then((results) => {
var _kanban = results[0];
var dailyType = type ? type : "input";
var _machine = results[1];
var reason = results[2];
var tempStep = {};
for (var a of _machine.steps) {
tempStep = a.step;
break;
}
var code = codeGenerator();
var dateNow = new Date();
var dateNowString = '2017-01-01';
var data = {};
if (dailyType === "input") {
data = {
kanbanId: _kanban._id,
kanban: _kanban,
shift: `shift ${code}`,
machineId: _machine._id,
machine: _machine,
stepId: tempStep._id,
step: tempStep,
dateInput: dateNowString,
timeInput: 10000,
input: 20,
type: "input"
};
} else {
data = {
kanbanId: _kanban._id,
kanban: _kanban,
shift: `shift ${code}`,
machineId: _machine._id,
machine: _machine,
stepId: tempStep._id,
step: tempStep,
dateOutput: dateNowString,
timeOutput: 12000,
goodOutput: 20,
badOutput: 0,
type: "output",
};
}
return Promise.resolve(data);
});
}
<API key>(type) {
return Promise.all([kanbanDataUtil.<API key>(), machineDataUtil.getTestData(), <API key>.getTestData()])
.then((results) => {
var _kanban = results[0];
var dailyType = type ? type : "input";
var _machine = results[1];
var reason = results[2];
var tempStep = {};
for (var a of _machine.steps) {
tempStep = a.step;
break;
}
var code = codeGenerator();
var dateNow = new Date();
var dateNowString = '2017-01-01';
var data = {};
if (dailyType === "input") {
data = {
kanbanId: _kanban._id,
kanban: _kanban,
shift: `shift ${code}`,
machineId: _machine._id,
machine: _machine,
stepId: tempStep._id,
step: tempStep,
dateInput: dateNowString,
timeInput: 13000,
input: 20,
type: "input"
};
} else {
data = {
kanbanId: _kanban._id,
kanban: _kanban,
shift: `shift ${code}`,
machineId: _machine._id,
machine: _machine,
stepId: tempStep._id,
step: tempStep,
dateOutput: dateNowString,
timeOutput: 15000,
goodOutput: 20,
badOutput: 0,
type: "output",
};
}
return Promise.resolve(data);
});
}
<API key>(type) {
return helper
.getManager(<API key>)
.then((manager) => {
var a = type ? type : "input";
return this.<API key>(a).then((data) => {
return manager.create(data)
.then((id) => {
return manager.getSingleById(id)
});
});
});
}
<API key>(type) {
return helper
.getManager(<API key>)
.then((manager) => {
var a = type ? type : "input";
return this.<API key>(a).then((data) => {
return manager.create(data)
.then((id) => {
return manager.getSingleById(id)
});
});
});
}
getNewTestData(type) {
return helper
.getManager(<API key>)
.then((manager) => {
var a = type ? type : "input";
return this.getNewData(a).then((data) => {
return manager.create(data)
.then((id) => {
return manager.getSingleById(id)
});
});
});
}
}
module.exports = new <API key>();
|
module ActiveMerchant #:nodoc:
module Billing #:nodoc:
class WepayGateway < Gateway
self.test_url = 'https://stage.wepayapi.com/v2'
self.live_url = 'https://wepayapi.com/v2'
self.supported_countries = ['US', 'CA']
self.supported_cardtypes = [:visa, :master, :american_express, :discover]
self.homepage_url = 'https:
self.default_currency = 'USD'
self.display_name = 'WePay'
def initialize(options = {})
requires!(options, :client_id, :account_id, :access_token)
super(options)
end
def purchase(money, payment_method, options = {})
post = {}
if payment_method.is_a?(String)
MultiResponse.run do |r|
r.process { <API key>(post, money, payment_method, options) }
r.process { capture(money, r.authorization, options) }
end
else
MultiResponse.run do |r|
r.process { store(payment_method, options) }
r.process { <API key>(post, money, r.authorization, options) }
r.process { capture(money, r.authorization, options) }
end
end
end
def authorize(money, payment_method, options = {})
post = {}
if payment_method.is_a?(String)
<API key>(post, money, payment_method, options)
else
MultiResponse.run do |r|
r.process { store(payment_method, options) }
r.process { <API key>(post, money, r.authorization, options) }
end
end
end
def capture(money, identifier, options = {})
checkout_id, original_amount = split_authorization(identifier)
post = {}
post[:checkout_id] = checkout_id
post[:amount] = amount(money) if money && (original_amount != amount(money))
commit('/checkout/capture', post, options)
end
def void(identifier, options = {})
post = {}
post[:checkout_id] = split_authorization(identifier).first
post[:cancel_reason] = (options[:description] || 'Void')
commit('/checkout/cancel', post, options)
end
def refund(money, identifier, options = {})
checkout_id, original_amount = split_authorization(identifier)
post = {}
post[:checkout_id] = checkout_id
post[:amount] = amount(money) if money && (original_amount != amount(money))
post[:refund_reason] = (options[:description] || 'Refund')
post[:payer_email_message] = options[:payer_email_message] if options[:payer_email_message]
post[:payee_email_message] = options[:payee_email_message] if options[:payee_email_message]
commit('/checkout/refund', post, options)
end
def store(creditcard, options = {})
post = {}
post[:client_id] = @options[:client_id]
post[:user_name] = "#{creditcard.first_name} #{creditcard.last_name}"
post[:email] = options[:email] || 'unspecified@example.com'
post[:cc_number] = creditcard.number
post[:cvv] = creditcard.verification_value unless options[:recurring]
post[:expiration_month] = creditcard.month
post[:expiration_year] = creditcard.year
if (billing_address = (options[:billing_address] || options[:address]))
post[:address] = {}
post[:address]['address1'] = billing_address[:address1] if billing_address[:address1]
post[:address]['city'] = billing_address[:city] if billing_address[:city]
post[:address]['country'] = billing_address[:country] if billing_address[:country]
post[:address]['region'] = billing_address[:state] if billing_address[:state]
post[:address]['postal_code'] = billing_address[:zip]
end
if options[:recurring] == true
post[:client_secret] = @options[:client_secret]
commit('/credit_card/transfer', post, options)
else
post[:original_device] = options[:device_fingerprint] if options[:device_fingerprint]
post[:original_ip] = options[:ip] if options[:ip]
commit('/credit_card/create', post, options)
end
end
def supports_scrubbing?
true
end
def scrub(transcript)
transcript.
gsub(%r((\\?"cc_number\\?":\\?")[^\\"]+(\\?"))i, '\1[FILTERED]\2').
gsub(%r((\\?"cvv\\?":\\?")[^\\"]+(\\?"))i, '\1[FILTERED]\2').
gsub(%r((Authorization: Bearer )\w+)i, '\1[FILTERED]\2')
end
private
def <API key>(post, money, token, options)
add_token(post, token)
add_product_data(post, money, options)
commit('/checkout/create', post, options)
end
def add_product_data(post, money, options)
post[:account_id] = @options[:account_id]
post[:amount] = amount(money)
post[:short_description] = (options[:description] || 'Purchase')
post[:type] = (options[:type] || 'goods')
post[:currency] = (options[:currency] || currency(money))
post[:long_description] = options[:long_description] if options[:long_description]
post[:payer_email_message] = options[:payer_email_message] if options[:payer_email_message]
post[:payee_email_message] = options[:payee_email_message] if options[:payee_email_message]
post[:reference_id] = options[:order_id] if options[:order_id]
post[:unique_id] = options[:unique_id] if options[:unique_id]
post[:redirect_uri] = options[:redirect_uri] if options[:redirect_uri]
post[:callback_uri] = options[:callback_uri] if options[:callback_uri]
post[:fallback_uri] = options[:fallback_uri] if options[:fallback_uri]
post[:require_shipping] = options[:require_shipping] if options[:require_shipping]
post[:shipping_fee] = options[:shipping_fee] if options[:shipping_fee]
post[:charge_tax] = options[:charge_tax] if options[:charge_tax]
post[:mode] = options[:mode] if options[:mode]
post[:preapproval_id] = options[:preapproval_id] if options[:preapproval_id]
post[:prefill_info] = options[:prefill_info] if options[:prefill_info]
post[:funding_sources] = options[:funding_sources] if options[:funding_sources]
post[:payer_rbits] = options[:payer_rbits] if options[:payer_rbits]
post[:transaction_rbits] = options[:transaction_rbits] if options[:transaction_rbits]
add_fee(post, options)
end
def add_token(post, token)
payment_method = {}
payment_method[:type] = 'credit_card'
payment_method[:credit_card] = {
id: token,
auto_capture: false
}
post[:payment_method] = payment_method
end
def add_fee(post, options)
if options[:application_fee] || options[:fee_payer]
post[:fee] = {}
post[:fee][:app_fee] = options[:application_fee] if options[:application_fee]
post[:fee][:fee_payer] = options[:fee_payer] if options[:fee_payer]
end
end
def parse(response)
JSON.parse(response)
end
def commit(action, params, options={})
begin
response = parse(
ssl_post(
((test? ? test_url : live_url) + action),
params.to_json,
headers(options)
))
rescue ResponseError => e
response = parse(e.response.body)
end
return Response.new(
success_from(response),
message_from(response),
response,
authorization: authorization_from(response, params),
test: test?
)
rescue JSON::ParserError
return unparsable_response(response)
end
def success_from(response)
(!response['error'])
end
def message_from(response)
(response['error'] ? response['error_description'] : 'Success')
end
def authorization_from(response, params)
return response['credit_card_id'].to_s if response['credit_card_id']
original_amount = response['amount'].nil? ? nil : sprintf('%0.02f', response['amount'])
[response['checkout_id'], original_amount].join('|')
end
def split_authorization(authorization)
auth, original_amount = authorization.to_s.split('|')
[auth, original_amount]
end
def unparsable_response(raw_response)
message = 'Invalid JSON response received from WePay. Please contact WePay support if you continue to receive this message.'
message += " (The raw response returned by the API was #{raw_response.inspect})"
return Response.new(false, message)
end
def headers(options)
headers = {
'Content-Type' => 'application/json',
'User-Agent' => "<API key>/#{ActiveMerchant::VERSION}",
'Authorization' => "Bearer #{@options[:access_token]}"
}
headers['Api-Version'] = options[:version] if options[:version]
headers['Client-IP'] = options[:ip] if options[:ip]
headers['WePay-Risk-Token'] = options[:risk_token] if options[:risk_token]
headers
end
end
end
end
|
<?php
namespace Sonata\CoreBundle\Form\Type;
use Symfony\Component\Form\Extension\Core\Type\DateType;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\OptionsResolver\<API key>;
/**
* Class DatePickerType.
*
*
* @author Hugo Briand <briand@ekino.com>
*/
class DatePickerType extends BasePickerType
{
/**
* {@inheritdoc}
*
* @todo Remove it when bumping requirements to SF 2.7+
*/
public function setDefaultOptions(<API key> $resolver)
{
$this->configureOptions($resolver);
}
/**
* {@inheritdoc}
*/
public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults(array_merge($this->getCommonDefaults(), array(
'dp_pick_time' => false,
'format' => DateType::DEFAULT_FORMAT,
)));
}
/**
* {@inheritdoc}
*/
public function getParent()
{
return method_exists('Symfony\Component\Form\AbstractType', 'getBlockPrefix') ?
'Symfony\Component\Form\Extension\Core\Type\DateType' :
'date' // SF <2.8 BC
;
}
/**
* {@inheritdoc}
*/
public function getBlockPrefix()
{
return '<API key>';
}
/**
* {@inheritdoc}
*/
public function getName()
{
return $this->getBlockPrefix();
}
}
|
/* globals fireGlobalEvent, readMessage, RoomManager, Favico, favico, menu */
Meteor.startup(function() {
Tracker.autorun(function() {
let unreadCount = 0;
let unreadAlert = false;
const subscriptions = ChatSubscription.find({open: true}, { fields: { unread: 1, alert: 1, rid: 1, t: 1, name: 1, ls: 1, unreadAlert: 1 } });
let openedRoomId = undefined;
Tracker.nonreactive(function() {
if (['channel', 'group', 'direct'].includes(FlowRouter.getRouteName())) {
openedRoomId = Session.get('openedRoom');
}
});
for (let subscription of subscriptions.fetch()) {
fireGlobalEvent('<API key>', subscription);
if (subscription.alert || subscription.unread > 0) {
// This logic is duplicated in /client/notifications/notification.coffee.
const hasFocus = readMessage.isEnable();
const <API key> = openedRoomId === subscription.rid;
if (hasFocus && <API key>) {
// The user has probably read all messages in this room.
// TODO: readNow() should return whether it has actually marked the room as read.
Meteor.setTimeout(function() {
readMessage.readNow();
}, 500);
}
// Increment the total unread count.
unreadCount += subscription.unread;
if (subscription.alert === true && subscription.unreadAlert !== 'nothing') {
const userUnreadAlert = Meteor.user() && Meteor.user().settings && Meteor.user().settings.preferences && Meteor.user().settings.preferences.unreadAlert;
if (subscription.unreadAlert === 'all' || userUnreadAlert !== false) {
unreadAlert = '•';
}
}
}
if (RoomManager.openedRooms[subscription.t + subscription.name]) {
readMessage.refreshUnreadMark(subscription.rid);
}
}
menu.updateUnreadBars();
if (unreadCount > 0) {
if (unreadCount > 999) {
Session.set('unread', '999+');
} else {
Session.set('unread', unreadCount);
}
} else if (unreadAlert !== false) {
Session.set('unread', unreadAlert);
} else {
Session.set('unread', '');
}
});
});
Meteor.startup(function() {
window.favico = new Favico({
position: 'up',
animation: 'none'
});
Tracker.autorun(function() {
const siteName = RocketChat.settings.get('Site_Name') || '';
const unread = Session.get('unread');
fireGlobalEvent('unread-changed', unread);
if (favico) {
favico.badge(unread, {
bgColor: typeof unread !== 'number' ? '#3d8a3a' : '#ac1b1b'
});
}
document.title = unread === '' ? siteName : `(${unread}) ${siteName}`;
});
});
|
require 'ebay/types/<API key>'
require 'ebay/types/characteristics_set'
module Ebay # :nodoc:
module Types # :nodoc:
# == Attributes
# boolean_node :best_offer_enabled, 'BestOfferEnabled', 'true', 'false', :optional => true
# boolean_node :auto_pay_enabled, 'AutoPayEnabled', 'true', 'false', :optional => true
# boolean_node :b2_bvat_enabled, 'B2BVATEnabled', 'true', 'false', :optional => true
# boolean_node :catalog_enabled, 'CatalogEnabled', 'true', 'false', :optional => true
# text_node :category_id, 'CategoryID', :optional => true
# numeric_node :category_level, 'CategoryLevel', :optional => true
# text_node :category_name, 'CategoryName', :optional => true
# value_array_node :category_parent_ids, 'CategoryParentID', :default_value => []
# value_array_node :<API key>, 'CategoryParentName', :default_value => []
# boolean_node :<API key>, '<API key>', 'true', 'false', :optional => true
# array_node :product_finder_ids, 'ProductFinderIDs', :class => <API key>, :default_value => []
# array_node :<API key>, 'CharacteristicsSets', :class => CharacteristicsSet, :default_value => []
# boolean_node :expired, 'Expired', 'true', 'false', :optional => true
# boolean_node :<API key>, 'IntlAutosFixedCat', 'true', 'false', :optional => true
# boolean_node :leaf_category, 'LeafCategory', 'true', 'false', :optional => true
# boolean_node :virtual, 'Virtual', 'true', 'false', :optional => true
# numeric_node :num_of_items, 'NumOfItems', :optional => true
# boolean_node :<API key>, '<API key>', 'true', 'false', :optional => true
# boolean_node :orpa, 'ORPA', 'true', 'false', :optional => true
# boolean_node :orra, 'ORRA', 'true', 'false', :optional => true
# boolean_node :lsd, 'LSD', 'true', 'false', :optional => true
# text_node :keywords, 'Keywords', :optional => true
class Category
include XML::Mapping
include Initializer
root_element_name 'Category'
boolean_node :best_offer_enabled, 'BestOfferEnabled', 'true', 'false', :optional => true
boolean_node :auto_pay_enabled, 'AutoPayEnabled', 'true', 'false', :optional => true
boolean_node :b2_bvat_enabled, 'B2BVATEnabled', 'true', 'false', :optional => true
boolean_node :catalog_enabled, 'CatalogEnabled', 'true', 'false', :optional => true
text_node :category_id, 'CategoryID', :optional => true
numeric_node :category_level, 'CategoryLevel', :optional => true
text_node :category_name, 'CategoryName', :optional => true
value_array_node :category_parent_ids, 'CategoryParentID', :default_value => []
value_array_node :<API key>, 'CategoryParentName', :default_value => []
boolean_node :<API key>, '<API key>', 'true', 'false', :optional => true
array_node :product_finder_ids, 'ProductFinderIDs', :class => <API key>, :default_value => []
array_node :<API key>, 'CharacteristicsSets', :class => CharacteristicsSet, :default_value => []
boolean_node :expired, 'Expired', 'true', 'false', :optional => true
boolean_node :<API key>, 'IntlAutosFixedCat', 'true', 'false', :optional => true
boolean_node :leaf_category, 'LeafCategory', 'true', 'false', :optional => true
boolean_node :virtual, 'Virtual', 'true', 'false', :optional => true
numeric_node :num_of_items, 'NumOfItems', :optional => true
boolean_node :<API key>, '<API key>', 'true', 'false', :optional => true
boolean_node :orpa, 'ORPA', 'true', 'false', :optional => true
boolean_node :orra, 'ORRA', 'true', 'false', :optional => true
boolean_node :lsd, 'LSD', 'true', 'false', :optional => true
text_node :keywords, 'Keywords', :optional => true
end
end
end
|
<?php
namespace Chamilo\Core\Repository\ContentObject\Vimeo\Integration\Chamilo\Core\Repository\ContentObject\LearningPath\Display;
use Chamilo\Core\Repository\ContentObject\LearningPath\Display\Embedder\Type\<API key>;
/**
*
* @package core\repository\content_object\vimeo\integration\core\repository\content_object\learning_path\display
* @author Hans De Bisschop <hans.de.bisschop@ehb.be>
* @author Magali Gillard <magali.gillard@ehb.be>
* @author Eduard Vossen <eduard.vossen@ehb.be>
*/
class Embedder extends <API key>
{
}
|
#ifndef <API key>
#ifndef <API key>
#define <API key>
namespace j2cpp { namespace java { namespace lang { class Object; } } }
namespace j2cpp { namespace android { namespace view { class View; } } }
namespace j2cpp { namespace android { namespace view { class ViewGroup; } } }
namespace j2cpp { namespace android { namespace widget { class Adapter; } } }
#include <android/view/View.hpp>
#include <android/view/ViewGroup.hpp>
#include <android/widget/Adapter.hpp>
#include <java/lang/Object.hpp>
namespace j2cpp {
namespace android { namespace widget {
class SpinnerAdapter;
class SpinnerAdapter
: public object<SpinnerAdapter>
{
public:
J2CPP_DECLARE_CLASS
<API key>(0)
explicit SpinnerAdapter(jobject jobj)
: object<SpinnerAdapter>(jobj)
{
}
operator local_ref<java::lang::Object>() const;
operator local_ref<android::widget::Adapter>() const;
local_ref< android::view::View > getDropDownView(jint, local_ref< android::view::View > const&, local_ref< android::view::ViewGroup > const&);
}; //class SpinnerAdapter
} //namespace widget
} //namespace android
} //namespace j2cpp
#endif //<API key>
#else //<API key>
#ifndef <API key>
#define <API key>
namespace j2cpp {
android::widget::SpinnerAdapter::operator local_ref<java::lang::Object>() const
{
return local_ref<java::lang::Object>(get_jobject());
}
android::widget::SpinnerAdapter::operator local_ref<android::widget::Adapter>() const
{
return local_ref<android::widget::Adapter>(get_jobject());
}
local_ref< android::view::View > android::widget::SpinnerAdapter::getDropDownView(jint a0, local_ref< android::view::View > const &a1, local_ref< android::view::ViewGroup > const &a2)
{
return call_method<
android::widget::SpinnerAdapter::J2CPP_CLASS_NAME,
android::widget::SpinnerAdapter::J2CPP_METHOD_NAME(0),
android::widget::SpinnerAdapter::<API key>(0),
local_ref< android::view::View >
>(get_jobject(), a0, a1, a2);
}
J2CPP_DEFINE_CLASS(android::widget::SpinnerAdapter,"android/widget/SpinnerAdapter")
J2CPP_DEFINE_METHOD(android::widget::SpinnerAdapter,0,"getDropDownView","(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;")
} //namespace j2cpp
#endif //<API key>
#endif //<API key>
|
# <API key>: true
module RuboCop
module Cop
module Lint
# This cop checks for unused method arguments.
# @example
# # bad
# def some_method(used, unused, _unused_but_allowed)
# puts used
# end
# # good
# def some_method(used, _unused, _unused_but_allowed)
# puts used
# end
# @example <API key>: false (default)
# # bad
# def do_something(used, unused: 42)
# used
# end
# @example <API key>: true
# # good
# def do_something(used, unused: 42)
# used
# end
# @example IgnoreEmptyMethods: true (default)
# # good
# def do_something(unused)
# end
# @example IgnoreEmptyMethods: false
# # bad
# def do_something(unused)
# end
# @example <API key>: true (default)
# # good
# def do_something(unused)
# raise NotImplementedError
# end
# def do_something_else(unused)
# fail "TODO"
# end
# @example <API key>: false
# # bad
# def do_something(unused)
# raise NotImplementedError
# end
# def do_something_else(unused)
# fail "TODO"
# end
class <API key> < Base
include UnusedArgument
extend AutoCorrector
# @!method not_implemented?(node)
def_node_matcher :not_implemented?, <<~PATTERN
{(send nil? :raise (const {nil? cbase} :NotImplementedError))
(send nil? :fail ...)}
PATTERN
def self.joining_forces
VariableForce
end
private
def autocorrect(corrector, node)
UnusedArgCorrector.correct(corrector, processed_source, node)
end
def check_argument(variable)
return unless variable.method_argument?
return if variable.keyword_argument? && cop_config['<API key>']
return if ignored_method?(variable.scope.node.body)
super
end
def ignored_method?(body)
(cop_config['IgnoreEmptyMethods'] && body.nil?) ||
(cop_config['<API key>'] && not_implemented?(body))
end
def message(variable)
message = +"Unused method argument - `#{variable.name}`."
unless variable.keyword_argument?
message << " If it's necessary, use `_` or `_#{variable.name}` " \
"as an argument name to indicate that it won't be used."
end
scope = variable.scope
all_arguments = scope.variables.each_value.select(&:method_argument?)
if all_arguments.none?(&:referenced?)
message << " You can also write as `#{scope.name}(*)` " \
'if you want the method to accept any arguments ' \
"but don't care about them."
end
message
end
end
end
end
end
|
import * as i18n from "i18next";
import * as moment from "moment";
import * as React from "react";
import ContentEditable = require("<API key>");
import { PermissionKind } from "sp-pnp-js";
import { <API key>, IDiscussionReply } from "../../../models/IDiscussionReply";
import <API key> from "./<API key>";
import { EditMode, <API key> } from "./<API key>";
class DiscussionReply extends React.Component<<API key>, <API key>> {
private readonly <API key> = 3;
private readonly <API key> = 32;
public constructor() {
super();
this.state = {
editMode: EditMode.NewComment,
inputValue: "",
isLoading: false,
showInput: false,
};
// Handlers
this.toggleInput = this.toggleInput.bind(this);
this.onValueChange = this.onValueChange.bind(this);
this.updateReply = this.updateReply.bind(this);
this.addNewReply = this.addNewReply.bind(this);
this.deleteReply = this.deleteReply.bind(this);
this.toggleLikeReply = this.toggleLikeReply.bind(this);
}
public render() {
let renderIsLoading: JSX.Element = null;
if (this.state.isLoading) {
renderIsLoading = <i className="fa fa-spinner fa-spin"/>;
}
let renderEdit: JSX.Element = null;
if (this.props.reply.UserPermissions.indexOf(<API key>.EditAsAuthor) !== -1 ||
this.props.reply.UserPermissions.indexOf(<API key>.Edit) !== -1) {
renderEdit = <div><i className="fa fa-pencil-alt"/><a href="#" onClick={ () => {
this.toggleInput(true, EditMode.UpdateComment);
}}>{ i18n.t("comments_edit") }</a></div>;
}
let renderDelete: JSX.Element = null;
if (this.props.reply.UserPermissions.indexOf(<API key>.DeleteAsAuthor) !== -1 ||
this.props.reply.UserPermissions.indexOf(<API key>.Delete) !== -1) {
renderDelete = <div><i className="fa fa-trash"/><a href="#" onClick={ () => {
this.deleteReply(this.props.reply);
}}>{ i18n.t("comments_delete") }</a></div>;
}
let renderReply: JSX.Element = null;
if (this.props.reply.UserPermissions.indexOf(<API key>.Add) !== -1 && this.props.replyLevel < this.<API key>) {
renderReply = <div><i className="fa fa-reply"/><a href="#" onClick={ () => {
this.toggleInput(true, EditMode.NewComment);
}}>{ i18n.t("comments_reply") }</a></div>;
}
const renderChildren: JSX.Element[] = [];
if (this.props.reply.Children) {
this.props.reply.Children.map((childReply, index) => {
renderChildren.push(
<DiscussionReply
key={ childReply.Id }
id={ `${this.props.id}${index}`}
reply={ childReply }
isLikeEnabled={ this.props.isLikeEnabled }
addNewReply={this.props.addNewReply}
deleteReply={ this.props.deleteReply }
updateReply={ this.props.updateReply }
toggleLikeReply={ this.props.toggleLikeReply }
isChildReply={ true }
replyLevel={ this.props.replyLevel + 1 }
/>,
);
});
}
let renderLike: JSX.Element = null;
if (this.props.isLikeEnabled) {
const likeLabel = this.<API key>(this.props.reply) ? i18n.t("comments_unlike") : i18n.t("comments_like");
renderLike = <div>
<i className="fa fa-heart"/>
<span>{this.props.reply.LikesCount}</span>
<a href="#" onClick={ () => { this.toggleLikeReply(this.props.reply); }}>{ likeLabel }</a>
</div>;
}
const posted = moment(this.props.reply.Posted);
const modified = moment(this.props.reply.Edited);
const isPosthasBeenEdited: JSX.Element = modified.diff(posted) > 0 ? <span>{`(${i18n.t("comments_edited")})`}</span> : null;
const lastUpdate: JSX.Element = isPosthasBeenEdited ? <div>{`${i18n.t("comments_lastUpdate")} ${moment(modified).format("LLL")}`}</div> : null;
const <API key> = this.props.isChildReply ? "reply child" : "reply";
const paddingCalc = this.<API key> * this.props.replyLevel;
return <div>
<div className="reply" style={{ paddingLeft: `${paddingCalc}px`}} key= { this.props.reply.Id }>
<div>
<img className="reply--user-avatar" src={ this.props.reply.Author.PictureUrl}/>
</div>
<div className="reply--content">
<div>
<div className="<API key>">{ this.props.reply.Author.DisplayName } { isPosthasBeenEdited }</div>
<div className="<API key>" <API key>= {{__html: this.props.reply.Body }}></div>
<div className="<API key>">
<div>{ `${i18n.t("comments_postedOn")} ${moment(this.props.reply.Posted).format("LLL")}`}</div>
{ lastUpdate }
</div>
</div>
<div className="<API key>">
{ renderLike }
{ renderReply }
{ renderEdit }
{ renderDelete }
<div>
{ renderIsLoading }
</div>
</div>
{ this.state.showInput ?
<div className="reply--input-zone">
<ContentEditable
id={`reply-input-${this.props.id}`}
html={ this.state.inputValue }
disabled={ false }
onChange={ this.onValueChange }
className="input"
role="textbox"
/>
<button type="button" className="btn" onClick={ async () => {
switch (this.state.editMode) {
case EditMode.NewComment:
await this.addNewReply(this.props.reply.Id, this.state.inputValue);
break;
case EditMode.UpdateComment:
await this.updateReply(this.props.reply);
break;
}
this.toggleInput(false, null);
}}>{ this.state.editMode === EditMode.UpdateComment ? i18n.t("comments_update") : i18n.t("comments_post") }</button>
<button className="btn" onClick={ () => { this.toggleInput(false, null); }} >{ i18n.t("comments_cancel") }</button>
</div>
:
null
}
</div>
</div>
{ renderChildren }
</div>;
}
public onValueChange(e: any) {
this.setState({
inputValue: e.target.value,
});
}
public componentDidUpdate() {
// Set auto focus to input when replying or updating
if (this.state.showInput) {
switch (this.state.editMode) {
case EditMode.NewComment:
if (!this.state.inputValue) {
this.setFocus(`reply-input-${this.props.id}`);
}
break;
case EditMode.UpdateComment:
if (this.state.inputValue === this.props.reply.Body) {
this.setFocus(`reply-input-${this.props.id}`);
break;
}
}
}
}
/**
* Adds a new reply
* @param parentReplyId the parent reply item id
* @param replyBody the reply body text
*/
public async addNewReply(parentReplyId: number, replyBody: string) {
try {
this.setState({
isLoading: true,
});
await this.props.addNewReply(this.props.reply.Id, this.state.inputValue);
this.setState({
isLoading: false,
});
} catch (error) {
throw error;
}
}
/**
* Updates an existing reply
* @param replyToUpdate replu object to update
*/
public async updateReply(replyToUpdate: IDiscussionReply): Promise<void> {
try {
this.setState({
isLoading: true,
});
const reply: IDiscussionReply = {
Body: `<div>${this.state.inputValue}</div>`, // Set as HTML to be able to parse it easily afterward
Id: replyToUpdate.Id,
};
await this.props.updateReply(reply);
this.setState({
isLoading: false,
});
} catch (error) {
throw error;
}
}
/**
* Deletes a single or multipels replies
* @param replyToDelete the reply to delete
*/
public async deleteReply(replyToDelete: IDiscussionReply): Promise<void> {
try {
// We make this verification in the reply component itself to avoid an issue when the user says 'No'.
// In this case, the state wouldn't be updated to false (isLoading).
if (replyToDelete.Children.length > 0) {
if (confirm(i18n.t("<API key>"))) {
this.setState({
isLoading: true,
});
await this.props.deleteReply(replyToDelete);
}
} else {
if (confirm(i18n.t("<API key>"))) {
this.setState({
isLoading: true,
});
await this.props.deleteReply(replyToDelete);
}
}
// After that the element is deleted in the DOM so we can't update the state anymore...
} catch (error) {
throw error;
}
}
/**
* Like or unlike a reply
* @param reply the reply to like/unlike
*/
public async toggleLikeReply(reply: IDiscussionReply) {
this.setState({
isLoading: true,
});
await this.props.toggleLikeReply(reply, !this.<API key>(reply));
this.setState({
isLoading: false,
});
}
/**
* Show or hide the input control
* @param isVisible true if visible, false otherwise
* @param editMode the current edit mode (UpdateComment or NewComment)
*/
public toggleInput(isVisible: boolean, editMode: EditMode) {
let inputValue;
switch (editMode) {
case EditMode.UpdateComment:
inputValue = this.props.reply.Body;
break;
case EditMode.NewComment:
inputValue = "";
break;
default:
inputValue = "";
break;
}
this.setState({
editMode,
inputValue,
showInput: isVisible,
});
}
/**
* Indicates whether or not a reply is liked by the current user
* @param reply the reply to check
*/
private <API key>(reply: IDiscussionReply): boolean {
// If the current user id is in the list ok "liked by" field
let isLiked = false;
if (reply.LikedBy.indexOf(_spPageContextInfo.userId.toString()) !== -1) {
isLiked = true;
}
return isLiked;
}
/**
* Sets the focus in the content editable div
* @param eltId the DOM element id
*/
private setFocus(eltId: string) {
const p = document.getElementById(eltId);
const s = window.getSelection();
const r = document.createRange();
r.setStart(p, p.childElementCount);
r.setEnd(p, p.childElementCount);
s.removeAllRanges();
s.addRange(r);
}
}
export default DiscussionReply;
|
package com.microsoft.azure.cognitiveservices.vision.contentmoderator.models;
/**
* The <API key> model.
*/
public class <API key> {
/**
* The pagination start index.
*/
private Integer offset;
/**
* The max limit.
*/
private Integer limit;
/**
* Gets or sets the preferred language for the response.
*/
private String <API key>;
/**
* Get the offset value.
*
* @return the offset value
*/
public Integer offset() {
return this.offset;
}
/**
* Set the offset value.
*
* @param offset the offset value to set
* @return the <API key> object itself.
*/
public <API key> withOffset(Integer offset) {
this.offset = offset;
return this;
}
/**
* Get the limit value.
*
* @return the limit value
*/
public Integer limit() {
return this.limit;
}
/**
* Set the limit value.
*
* @param limit the limit value to set
* @return the <API key> object itself.
*/
public <API key> withLimit(Integer limit) {
this.limit = limit;
return this;
}
/**
* Get the <API key> value.
*
* @return the <API key> value
*/
public String <API key>() {
return this.<API key>;
}
/**
* Set the <API key> value.
*
* @param <API key> the <API key> value to set
* @return the <API key> object itself.
*/
public <API key> <API key>(String <API key>) {
this.<API key> = <API key>;
return this;
}
}
|
// @flow
function /*Random*/ test /*weird*/ (x: number) /*Comments*/ {
/* Two */ const a = 4 + x; // END OF a = 4...
return /* BETWEEEN */ `${a}` // END OF return ...
// Spaced out comments /* non-comments
// BEFORE FUNCTION
export //too many comments
// ONE
// Three
} // END */
|
# ScopeManager
This document was written based on the implementation of [eslint-scope](https:
-
## ScopeManager interface
`ScopeManager` object has all variable scopes.
Fields
# scopes
* **Type:** `Scope[]`
* **Description:** All scopes.
# globalScope
* **Type:** `Scope`
* **Description:** The root scope.
Methods
# acquire(node, inner = false)
* **Parameters:**
* `node` (`ASTNode`) ... An AST node to get their scope.
* `inner` (`boolean`) ... If the node has multiple scope, this returns the outermost scope normally. If `inner` is `true` then this returns the innermost scope. Default is `false`.
* **Return type:** `Scope | null`
* **Description:** Get the scope of a given AST node. The gotten scope's `block` property is the node. This method never returns `<API key>` scope and `TDZ` scope. If the node does not have their scope, this returns `null`.
# <API key>(node)
* **Parameters:**
* `node` (`ASTNode`) ... An AST node to get their variables.
* **Return type:** `Variable[]`
* **Description:** Get the variables that a given AST node defines. The gotten variables' `def[].node`/`def[].parent` property is the node. If the node does not define any variable, this returns an empty array.
Deprecated members
Those members are defined but not used in ESLint.
# isModule()
* **Parameters:**
* **Return type:** `boolean`
* **Description:** `true` if this program is module.
# isImpliedStrict()
* **Parameters:**
* **Return type:** `boolean`
* **Description:** `true` if this program is strict mode implicitly. I.e., `options.impliedStrict === true`.
# <API key>()
* **Parameters:**
* **Return type:** `boolean`
* **Description:** `true` if this program supports strict mode. I.e., `options.ecmaVersion >= 5`.
# acquireAll(node)
* **Parameters:**
* `node` (`ASTNode`) ... An AST node to get their scope.
* **Return type:** `Scope[] | null`
* **Description:** Get the scopes of a given AST node. The gotten scopes' `block` property is the node. If the node does not have their scope, this returns `null`.
-
## Scope interface
`Scope` object has all variables and references in the scope.
Fields
# type
* **Type:** `string`
* **Description:** The type of this scope. This is one of `"block"`, `"catch"`, `"class"`, `"for"`, `"function"`, `"<API key>"`, `"global"`, `"module"`, `"switch"`, `"with"`, `"TDZ"`
# isStrict
* **Type:** `boolean`
* **Description:** `true` if this scope is strict mode.
# upper
* **Type:** `Scope | null`
* **Description:** The parent scope. If this is the global scope then this property is `null`.
# childScopes
* **Type:** `Scope[]`
* **Description:** The array of child scopes. This does not include grandchild scopes.
# variableScope
* **Type:** `Scope`
* **Description:** The scope which hosts variables which are defined by `var` declarations.
# block
* **Type:** `ASTNode`
* **Description:** The AST node which created this scope.
# variables
* **Type:** `Variable[]`
* **Description:** The array of all variables which are defined on this scope. This does not include variables which are defined in child scopes.
# set
* **Type:** `Map<string, Variable>`
* **Description:** The map from variable names to variable objects.
> I hope to rename `set` field or replace by a method.
# references
* **Type:** `Reference[]`
* **Description:** The array of all references on this scope. This does not include references in child scopes.
# through
* **Type:** `Reference[]`
* **Description:** The array of references which could not be resolved in this scope.
# <API key>
* **Type:** `boolean`
* **Description:** `true` if this scope is `"<API key>"` scope.
> I hope to deprecate `<API key>` field as replacing by `scope.type === "<API key>"`.
Deprecated members
Those members are defined but not used in ESLint.
# taints
* **Type:** `Map<string, boolean>`
* **Description:** The map from variable names to `tainted` flag.
# dynamic
* **Type:** `boolean`
* **Description:** `true` if this scope is dynamic. I.e., the type of this scope is `"global"` or `"with"`.
# <API key>
* **Type:** `boolean`
* **Description:** `true` if this scope contains `eval()` invocations.
# thisFound
* **Type:** `boolean`
* **Description:** `true` if this scope contains `this`.
# resolve(node)
* **Parameters:**
* `node` (`ASTNode`) ... An AST node to get their reference object. The type of the node must be `"Identifier"`.
* **Return type:** `Reference | null`
* **Description:** Returns `this.references.find(r => r.identifier === node)`.
# isStatic()
* **Parameters:**
* **Return type:** `boolean`
* **Description:** Returns `!this.dynamic`.
# <API key>()
* **Parameters:**
* **Return type:** `boolean`
* **Description:** `true` if this is a `"function"` scope which has used `arguments` variable.
# isThisMaterialized()
* **Parameters:**
* **Return type:** `boolean`
* **Description:** Returns `this.thisFound`.
# isUsedName(name)
* **Parameters:**
* `name` (`string`) ... The name to check.
* **Return type:** `boolean`
* **Description:** `true` if a given name is used in variable names or reference names.
-
## Variable interface
`Variable` object is variable's information.
Fields
# name
* **Type:** `string`
* **Description:** The name of this variable.
# identifiers
* **Type:** `ASTNode[]`
* **Description:** The array of `Identifier` nodes which define this variable. If this variable is redeclared, this array includes two or more nodes.
> I hope to deprecate `identifiers` field as replacing by `defs[].name` field.
# references
* **Type:** `Reference[]`
* **Description:** The array of the references of this variable.
# defs
* **Type:** `Definition[]`
* **Description:** The array of the definitions of this variable.
Deprecated members
Those members are defined but not used in ESLint.
# tainted
* **Type:** `boolean`
* **Description:** The `tainted` flag. (always `false`)
# stack
* **Type:** `boolean`
* **Description:** The `stack` flag. (I'm not sure what this means.)
-
## Reference interface
`Reference` object is reference's information.
Fields
# identifier
* **Type:** `ASTNode`
* **Description:** The `Identifier` node of this reference.
# from
* **Type:** `Scope`
* **Description:** The `Scope` object that this reference is on.
# resolved
* **Type:** `Variable | null`
* **Description:** The `Variable` object that this reference refers. If such variable was not defined, this is `null`.
# writeExpr
* **Type:** `ASTNode | null`
* **Description:** The ASTNode object which is right-hand side.
# init
* **Type:** `boolean`
* **Description:** `true` if this writing reference is a variable initializer or a default value.
Methods
# isWrite()
* **Parameters:**
* **Return type:** `boolean`
* **Description:** `true` if this reference is writing.
# isRead()
* **Parameters:**
* **Return type:** `boolean`
* **Description:** `true` if this reference is reading.
# isWriteOnly()
* **Parameters:**
* **Return type:** `boolean`
* **Description:** `true` if this reference is writing but not reading.
# isReadOnly()
* **Parameters:**
* **Return type:** `boolean`
* **Description:** `true` if this reference is reading but not writing.
# isReadWrite()
* **Parameters:**
* **Return type:** `boolean`
* **Description:** `true` if this reference is reading and writing.
Deprecated members
Those members are defined but not used in ESLint.
# tainted
* **Type:** `boolean`
* **Description:** The `tainted` flag. (always `false`)
# flag
* **Type:** `number`
* **Description:** `1` is reading, `2` is writing, `3` is reading/writing.
# partial
* **Type:** `boolean`
* **Description:** The `partial` flag.
# isStatic()
* **Parameters:**
* **Return type:** `boolean`
* **Description:** `true` if this reference is resolved statically.
-
## Definition interface
`Definition` object is variable definition's information.
Fields
# type
* **Type:** `string`
* **Description:** The type of this definition. One of `"CatchClause"`, `"ClassName"`, `"FunctionName"`, `"<API key>"`, `"ImportBinding"`, `"Parameter"`, `"TDZ"`, and `"Variable"`.
# name
* **Type:** `ASTNode`
* **Description:** The `Identifier` node of this definition.
# node
* **Type:** `ASTNode`
* **Description:** The enclosing node of the name.
| type | node |
|:
| `"CatchClause"` | `CatchClause`
| `"ClassName"` | `ClassDeclaration` or `ClassExpression`
| `"FunctionName"` | `FunctionDeclaration` or `FunctionExpression`
| `"<API key>"` | `Program`
| `"ImportBinding"` | `ImportSpecifier`, `<API key>`, or `<API key>`
| `"Parameter"` | `FunctionDeclaration`, `FunctionExpression`, or `<API key>`
| `"TDZ"` | ?
| `"Variable"` | `VariableDeclarator`
# parent
* **Type:** `ASTNode | undefined | null`
* **Description:** The enclosing statement node of the name.
| type | parent |
|:
| `"CatchClause"` | `null`
| `"ClassName"` | `null`
| `"FunctionName"` | `null`
| `"<API key>"` | `null`
| `"ImportBinding"` | `ImportDeclaration`
| `"Parameter"` | `null`
| `"TDZ"` | `null`
| `"Variable"` | `VariableDeclaration`
Deprecated members
Those members are defined but not used in ESLint.
# index
* **Type:** `number | undefined | null`
* **Description:** The index in the declaration statement.
# kind
* **Type:** `string | undefined | null`
* **Description:** The kind of the declaration statement.
|
<!DOCTYPE html PUBLIC "-
<html><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Observers - Boost.Outcome documentation</title>
<link rel="stylesheet" href="../../../css/boost.css" type="text/css">
<meta name="generator" content="Hugo 0.52 with Boostdoc theme">
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
<link rel="icon" href="../../../images/favicon.ico" type="image/ico"/>
<body><div class="spirit-nav">
<a accesskey="p" href="../../../history.html"><img src="../../../images/prev.png" alt="Prev"></a>
<a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="../../../requirements.html"><img src="../../../images/next.png" alt="Next"></a></div><div id="content">
<div class="extra-pagination inner">
<nav class="pagination" role="navigation">
<a class="newer-posts" href="../../../categories/observers/page/3.html">← </a>
<span class="page-number"> 4 7</span>
<a class="older-posts" href="../../../categories/observers/page/5.html"> →</a>
</nav>
</div>
<div style="margin-bottom:2rem"></div>
<nav class="pagination" role="navigation">
<a class="newer-posts" href="../../../categories/observers/page/3.html">← </a>
<span class="page-number"> 4 7</span>
<a class="older-posts" href="../../../categories/observers/page/5.html"> →</a>
</nav>
</div><p><small>Last revised: February 12, 2019 at 16:36:24 UTC</small></p>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../../../history.html"><img src="../../../images/prev.png" alt="Prev"></a>
<a accesskey="h" href="../../../index.html"><img src="../../../images/home.png" alt="Home"></a><a accesskey="n" href="../../../requirements.html"><img src="../../../images/next.png" alt="Next"></a></div></body>
</html>
|
#include "base/logging.h"
#include "input/input_state.h"
#include "ui/screen.h"
#include "ui/ui.h"
#include "ui/view.h"
ScreenManager::ScreenManager() {
nextScreen_ = 0;
uiContext_ = 0;
dialogFinished_ = 0;
}
ScreenManager::~ScreenManager() {
shutdown();
}
void ScreenManager::switchScreen(Screen *screen) {
if (screen == nextScreen_) {
ELOG("Already switching to this screen");
return;
}
// Note that if a dialog is found, this will be a silent background switch that
// will only become apparent if the dialog is closed. The previous screen will stick around
// until that switch.
// TODO: is this still true?
if (nextScreen_ != 0) {
FLOG("Already had a nextScreen_");
}
if (screen == 0) {
WLOG("Swiching to a zero screen, this can't be good");
}
if (stack_.empty() || screen != stack_.back().screen) {
nextScreen_ = screen;
nextScreen_->setScreenManager(this);
}
}
void ScreenManager::update(InputState &input) {
if (nextScreen_) {
switchToNext();
}
if (stack_.size()) {
stack_.back().screen->update(input);
}
}
void ScreenManager::switchToNext() {
if (!nextScreen_) {
ELOG("switchToNext: No nextScreen_!");
}
Layer temp = {0, 0};
if (!stack_.empty()) {
temp = stack_.back();
stack_.pop_back();
}
Layer newLayer = {nextScreen_, 0};
stack_.push_back(newLayer);
if (temp.screen) {
delete temp.screen;
}
nextScreen_ = 0;
UI::SetFocusedView(0);
}
bool ScreenManager::touch(const TouchInput &touch) {
if (!stack_.empty()) {
return stack_.back().screen->touch(touch);
} else {
return false;
}
}
bool ScreenManager::key(const KeyInput &key) {
if (!stack_.empty()) {
return stack_.back().screen->key(key);
} else {
return false;
}
}
bool ScreenManager::axis(const AxisInput &axis) {
if (!stack_.empty()) {
return stack_.back().screen->axis(axis);
} else {
return false;
}
}
void ScreenManager::resized() {
// Have to notify the whole stack, otherwise there will be problems when going back
// to non-top screens.
for (auto iter = stack_.begin(); iter != stack_.end(); ++iter) {
iter->screen->resized();
}
}
void ScreenManager::render() {
if (!stack_.empty()) {
switch (stack_.back().flags) {
case LAYER_SIDEMENU:
case LAYER_TRANSPARENT:
if (stack_.size() == 1) {
ELOG("Can't have sidemenu over nothing");
break;
} else {
auto iter = stack_.end();
iter
iter
Layer backback = *iter;
UIDisableBegin();
// Also shift to the right somehow...
backback.screen->render();
UIDisableEnd();
stack_.back().screen->render();
break;
}
default:
stack_.back().screen->render();
break;
}
} else {
ELOG("No current screen!");
}
processFinishDialog();
}
void ScreenManager::sendMessage(const char *msg, const char *value) {
if (!strcmp(msg, "recreateviews"))
RecreateAllViews();
if (!stack_.empty())
stack_.back().screen->sendMessage(msg, value);
}
void ScreenManager::deviceLost() {
for (size_t i = 0; i < stack_.size(); i++) {
stack_[i].screen->deviceLost();
}
// Dialogs too? Nah, they should only use the standard UI texture anyway.
// TODO: Change this when it becomes necessary.
}
Screen *ScreenManager::topScreen() const {
if (!stack_.empty())
return stack_.back().screen;
else
return 0;
}
void ScreenManager::shutdown() {
for (auto x = stack_.begin(); x != stack_.end(); x++)
delete x->screen;
stack_.clear();
delete nextScreen_;
nextScreen_ = 0;
}
void ScreenManager::push(Screen *screen, int layerFlags) {
if (nextScreen_ && stack_.empty()) {
// we're during init, this is OK
switchToNext();
}
screen->setScreenManager(this);
if (screen->isTransparent()) {
layerFlags |= LAYER_TRANSPARENT;
}
UI::SetFocusedView(0);
Layer layer = {screen, layerFlags};
stack_.push_back(layer);
}
void ScreenManager::pop() {
if (stack_.size()) {
delete stack_.back().screen;
stack_.pop_back();
} else {
ELOG("Can't pop when stack empty");
}
}
void ScreenManager::RecreateAllViews() {
for (auto it = stack_.begin(); it != stack_.end(); ++it) {
it->screen->RecreateViews();
}
}
void ScreenManager::finishDialog(Screen *dialog, DialogResult result) {
if (stack_.empty()) {
ELOG("Must be in a dialog to finishDialog");
return;
}
if (dialog != stack_.back().screen) {
ELOG("Wrong dialog being finished!");
return;
}
dialog->onFinish(result);
dialogFinished_ = dialog;
dialogResult_ = result;
}
void ScreenManager::processFinishDialog() {
if (dialogFinished_) {
// Another dialog may have been pushed before the render, so search for it.
Screen *caller = 0;
for (size_t i = 0; i < stack_.size(); ++i) {
if (stack_[i].screen != dialogFinished_) {
continue;
}
stack_.erase(stack_.begin() + i);
// The previous screen was the caller (not necessarily the topmost.)
if (i > 0) {
caller = stack_[i - 1].screen;
}
}
if (!caller) {
ELOG("ERROR: no top screen when finishing dialog");
} else if (caller != topScreen()) {
// The caller may get confused if we call dialogFinished() now.
WLOG("Skipping non-top dialog when finishing dialog.");
} else {
caller->dialogFinished(dialogFinished_, dialogResult_);
}
delete dialogFinished_;
dialogFinished_ = 0;
}
}
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
// Croatian
function numpf(n, f, s, t) {
var n10;
n10 = n % 10;
if (n10 === 1 && (n === 1 || n > 20)) {
return f;
} else if (n10 > 1 && n10 < 5 && (n > 20 || n < 10)) {
return s;
} else {
return t;
}
}
var strings = {
prefixAgo: 'prije',
prefixFromNow: 'za',
suffixAgo: null,
suffixFromNow: null,
second: 'sekundu',
seconds: function seconds(value) {
return numpf(value, '%d sekundu', '%d sekunde', '%d sekundi');
},
minute: 'oko minutu',
minutes: function minutes(value) {
return numpf(value, '%d minutu', '%d minute', '%d minuta');
},
hour: 'oko jedan sat',
hours: function hours(value) {
return numpf(value, '%d sat', '%d sata', '%d sati');
},
day: 'jedan dan',
days: function days(value) {
return numpf(value, '%d dan', '%d dana', '%d dana');
},
month: 'mjesec dana',
months: function months(value) {
return numpf(value, '%d mjesec', '%d mjeseca', '%d mjeseci');
},
year: 'prije godinu dana',
years: function years(value) {
return numpf(value, '%d godinu', '%d godine', '%d godina');
},
wordSeparator: ' '
};
var _default = strings;
exports["default"] = _default;
|
using System.ComponentModel.DataAnnotations;
namespace GRA.Domain.Model
{
public class VendorCodeType : Abstract.BaseDomainEntity
{
public int SiteId { get; set; }
[Required]
[MaxLength(255)]
public string Description { get; set; }
[Required]
[MaxLength(1250)]
public string Mail { get; set; }
[Required]
[MaxLength(255)]
public string MailSubject { get; set; }
[MaxLength(255)]
public string <API key> { get; set; }
[MaxLength(1250)]
public string DonationOptionMail { get; set; }
[MaxLength(255)]
public string DonationSubject { get; set; }
[MaxLength(1250)]
public string DonationMail { get; set; }
[MaxLength(255)]
public string DonationMessage { get; set; }
[MaxLength(255)]
public string Url { get; set; }
}
}
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hello MUI</title>
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="<API key>" content="yes">
<meta name="<API key>" content="black">
<link rel="stylesheet" href="../css/mui.min.css">
<script src="../js/mui.min.js"></script>
<script src="../js/app.js"></script>
<style>
html,
body {
background-color: #efeff4;
}
header.mui-bar {
display: none;
}
.mui-bar-nav~.mui-content {
padding: 0;
}
.title {
margin: 20px 15px 10px;
color: #6d6d72;
font-size: 15px;
}
</style>
<script>
mui.init();
</script>
</head>
<body>
<header class="mui-bar mui-bar-nav">
<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
<h1 class="mui-title"></h1>
</header>
<div class="mui-content">
<!--<ul class="mui-table-view mui-unfold">
<li class="mui-table-view-cell mui-collapse mui-media mui-media-icon">
<a href="javascript:;">
<div class="mui-media-object mui-pull-left">
<img src="../images/shuijiao.jpg">
</div>
<div class="mui-media-body">
</div>
</a>
<ul class="mui-table-view <API key>">
<li class="mui-table-view-cell mui-media mui-media-icon">
<a href="javascript:;">
<div class="mui-media-object mui-pull-left"><span class="mui-icon mui-icon-contact"></span>
</div>
<div class="mui-media-body">
</div>
</a>
</li>
<li class="mui-table-view-cell mui-media mui-media-icon">
<a href="javascript:;">
<div class="mui-media-object mui-pull-left"><span class="mui-icon mui-icon-contact"></span>
</div>
<div class="mui-media-body">
</div>
</a>
</li>
</ul>
</li>
<li class="mui-table-view-cell mui-media mui-media-icon">
<a href="javascript:;">
<div class="mui-media-object mui-pull-left"><span class="mui-icon mui-icon-contact"></span>
</div>
<div class="mui-media-body">
</div>
</a>
</li>
<li class="mui-table-view-cell mui-media mui-media-icon">
<a href="javascript:;">
<div class="mui-media-object mui-pull-left"><span class="mui-icon mui-icon-contact"></span>
</div>
<div class="mui-media-body">
</div>
</a>
</li>
</ul>
<div class="title">
</div>
<ul class="mui-table-view">
<li class="mui-table-view-cell mui-media">
<a href="javascript:;">
<img class="mui-media-object mui-pull-left" src="../images/shuijiao.jpg">
<div class="mui-media-body">
<p class='mui-ellipsis'></p>
</div>
</a>
</li>
<li class="mui-table-view-cell mui-media">
<a href="javascript:;">
<img class="mui-media-object mui-pull-left" src="../images/muwu.jpg">
<div class="mui-media-body">
<p class='mui-ellipsis'>.</p>
</div>
</a>
</li>
<li class="mui-table-view-cell mui-media">
<a href="javascript:;">
<img class="mui-media-object mui-pull-left" src="../images/cbd.jpg">
<div class="mui-media-body">
CBD
<p class='mui-ellipsis'>.</p>
</div>
</a>
</li>
</ul>
<div class="title">
</div>
<ul class="mui-table-view">
<li class="mui-table-view-cell mui-media">
<a href="javascript:;">
<img class="mui-media-object mui-pull-right" src="../images/yuantiao.jpg">
<div class="mui-media-body">
<p class='mui-ellipsis'></p>
</div>
</a>
</li>
<li class="mui-table-view-cell mui-media">
<a href="javascript:;">
<img class="mui-media-object mui-pull-right" src="../images/shuijiao.jpg">
<div class="mui-media-body">
<p class='mui-ellipsis'></p>
</div>
</a>
</li>
<li class="mui-table-view-cell mui-media">
<a href="javascript:;">
<img class="mui-media-object mui-pull-right" src="../images/muwu.jpg">
<div class="mui-media-body">
<p class='mui-ellipsis'>.</p>
</div>
</a>
</li>
</ul>
<div class="title">
</div>
<ul class="mui-table-view <API key>">
<li class="mui-table-view-cell mui-media">
<a class="mui-navigate-right">
<img class="mui-media-object mui-pull-left" src="../images/cbd.jpg">
<div class="mui-media-body">
CBD
<p class='mui-ellipsis'>.</p>
</div>
</a>
</li>
<li class="mui-table-view-cell mui-media">
<a class='mui-navigate-right' href="javascript:;">
<img class="mui-media-object mui-pull-left" src="../images/yuantiao.jpg">
<div class="mui-media-body">
<p class='mui-ellipsis'></p>
</div>
</a>
</li>
<li class="mui-table-view-cell mui-media">
<a class="mui-navigate-right">
<img class="mui-media-object mui-pull-left" src="../images/shuijiao.jpg">
<div class="mui-media-body">
<p class='mui-ellipsis'></p>
</div>
</a>
</li>
</ul>
<div class="title">
card
</div>
<div class="mui-card" style="margin-bottom: 35px;">
<ul class="mui-table-view">
<li class="mui-table-view-cell mui-media">
<a href="javascript:;">
<img class="mui-media-object mui-pull-right" src="../images/muwu.jpg">
<div class="mui-media-body">
<p class='mui-ellipsis'>.</p>
</div>
</a>
</li>
<li class="mui-table-view-cell mui-media">
<a href="javascript:;">
<img class="mui-media-object mui-pull-right" src="../images/cbd.jpg">
<div class="mui-media-body">
CBD
<p class='mui-ellipsis'>.</p>
</div>
</a>
</li>
<li class="mui-table-view-cell mui-media">
<a href="javascript:;">
<img class="mui-media-object mui-pull-right" src="../images/yuantiao.jpg">
<div class="mui-media-body">
<p class='mui-ellipsis'></p>
</div>
</a>
</li>
</ul>
</div>
</div>
</body>
</html>
|
// <auto-generated/>
#nullable disable
using System;
using System.Threading;
using System.Threading.Tasks;
using Azure;
using Azure.Core;
using Azure.Core.Pipeline;
namespace Azure.ResourceManager.Network
{
<summary> Deletes a virtual wan vpn gateway. </summary>
public partial class <API key> : Operation<Response>, IOperationSource<Response>
{
private readonly ArmOperationHelpers<Response> _operation;
internal <API key>(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response)
{
_operation = new ArmOperationHelpers<Response>(this, clientDiagnostics, pipeline, request, response, <API key>.Location, "<API key>");
}
<inheritdoc />
public override string Id => _operation.Id;
<inheritdoc />
public override Response Value => _operation.Value;
<inheritdoc />
public override bool HasCompleted => _operation.HasCompleted;
<inheritdoc />
public override bool HasValue => _operation.HasValue;
<inheritdoc />
public override Response GetRawResponse() => _operation.GetRawResponse();
<inheritdoc />
public override Response UpdateStatus(Cancellation<API key> = default) => _operation.UpdateStatus(cancellationToken);
<inheritdoc />
public override ValueTask<Response> UpdateStatusAsync(Cancellation<API key> = default) => _operation.UpdateStatusAsync(cancellationToken);
<inheritdoc />
public override ValueTask<Response<Response>> <API key>(Cancellation<API key> = default) => _operation.<API key>(cancellationToken);
<inheritdoc />
public override ValueTask<Response<Response>> <API key>(TimeSpan pollingInterval, Cancellation<API key> = default) => _operation.<API key>(pollingInterval, cancellationToken);
Response IOperationSource<Response>.CreateResult(Response response, Cancellation<API key>)
{
return response;
}
async ValueTask<Response> IOperationSource<Response>.CreateResultAsync(Response response, Cancellation<API key>)
{
return await new ValueTask<Response>(response).ConfigureAwait(false);
}
}
}
|
!function(t,o){"function"==typeof define&&define.amd?define(o):"object"==typeof module?module.exports=o():t.augment=o()}(this,function(){"use strict";var f=function(){},i=Array.prototype.slice,n=function(t,o){var n=f.prototype="function"==typeof t?t.prototype:t,r=new f,e=o.apply(r,i.call(arguments,2).concat(n));if("object"==typeof e)for(var c in e)r[c]=e[c];if(!r.hasOwnProperty("constructor"))return r;var u=r.constructor;return u.prototype=r,u};return n.defclass=function(t){var o=t.constructor;return o.prototype=t,o},n.extend=function(t,o){return n(t,function(t){return this.uber=t,o})},n});
|
package net.minecraft.entity.ai;
import net.minecraft.entity.EntityCreature;
import net.minecraft.util.Vec3;
public class EntityAIWander extends EntityAIBase
{
private EntityCreature entity;
private double xPosition;
private double yPosition;
private double zPosition;
private double speed;
private int executionChance;
private boolean mustUpdate;
public EntityAIWander(EntityCreature creatureIn, double speedIn)
{
this(creatureIn, speedIn, 120);
}
public EntityAIWander(EntityCreature creatureIn, double speedIn, int chance)
{
this.entity = creatureIn;
this.speed = speedIn;
this.executionChance = chance;
this.setMutexBits(1);
}
/**
* Returns whether the EntityAIBase should begin execution.
*/
public boolean shouldExecute()
{
if (!this.mustUpdate)
{
if (this.entity.getAge() >= 100)
{
return false;
}
if (this.entity.getRNG().nextInt(this.executionChance) != 0)
{
return false;
}
}
Vec3 vec3 = <API key>.findRandomTarget(this.entity, 10, 7);
if (vec3 == null)
{
return false;
}
else
{
this.xPosition = vec3.xCoord;
this.yPosition = vec3.yCoord;
this.zPosition = vec3.zCoord;
this.mustUpdate = false;
return true;
}
}
/**
* Returns whether an in-progress EntityAIBase should continue executing
*/
public boolean continueExecuting()
{
return !this.entity.getNavigator().noPath();
}
/**
* Execute a one shot task or start executing a continuous task
*/
public void startExecuting()
{
this.entity.getNavigator().tryMoveToXYZ(this.xPosition, this.yPosition, this.zPosition, this.speed);
}
/**
* Makes task to bypass chance
*/
public void makeUpdate()
{
this.mustUpdate = true;
}
/**
* Changes task random possibility for execution
*/
public void setExecutionChance(int newchance)
{
this.executionChance = newchance;
}
}
|
title: Rule strict
layout: doc
<!-- Note: No pull requests accepted for this file. See README.md in the root directory for details. -->
# Strict Mode (strict)
A Use Strict Directive at the beginning of a script or function body enables strict mode semantics:
js
"use strict";
When used globally, as in the preceding example, the entire script, including all contained functions, are strict mode code. It is also possible to specify function-level strict mode, such that strict mode applies only to the function in which the directive occurs:
js
function foo() {
"use strict";
return;
}
var bar = function() {
"use strict";
return;
};
## Rule Details
This rule is aimed at controlling how Use Strict Directives are used in code. It has three modes, each enabled by a single string argument:
"never" mode
This mode forbids any occurrence of a Use Strict Directive.
The following patterns are considered warnings:
js
// "strict": [2, "never"]
"use strict";
function foo() {
"use strict";
return;
}
var bar = function() {
"use strict";
return;
};
foo();
bar();
The following patterns are considered valid:
js
// "strict": [2, "never"]
function foo() {
return;
}
var bar = function() {
return;
};
foo();
bar();
"global" mode
This mode ensures that all code is in strict mode and that there are no extraneous Use Strict Directives at the top level or in nested functions, which are themselves already strict by virtue of being contained in strict global code. It requires that global code contains exactly one Use Strict Directive. Use Strict Directives inside functions are considered unnecessary. Multiple Use Strict Directives at any level also trigger warnings.
The following patterns are considered warnings:
js
// "strict": [2, "global"]
"use strict";
"use strict"; // Multiple Use Strict Directives
function foo() {
"use strict"; // Unnecessary; already nested in strict mode code
return function() {
"use strict"; // Unnecessary; already nested in strict mode code
"use strict"; // Multiple Use Strict Directives
return;
};
}
foo();
The following patterns are considered valid:
js
// "strict": [2, "global"]
"use strict";
function foo() {
return function() {
return;
};
}
foo();
"function" mode (default)
This mode ensures that all function bodies are strict mode code, while global code is not. Particularly if a build step concatenates multiple scripts, a Use Strict Directive in global code of one script could unintentionally enable strict mode in another script that was not intended to be strict code. It forbids any occurrence of a Use Strict Directive in global code. It requires exactly one Use Strict Directive in each function declaration or expression whose parent is global code. Use Strict Directives inside nested functions are considered unnecessary. Multiple Use Strict Directives at any level also trigger warnings.
The following patterns are considered warnings:
js
// "strict": [2, "function"]
"use strict"; // Use function form
function foo() {
// Missing Use Strict Directive
return function() {
"use strict"; // Unnecessary; parent should contain a Strict Mode Directive
"use strict"; // Multiple Use Strict Directives
return;
};
}
foo();
The following patterns are considered valid:
js
// "strict": [2, "function"]
function foo() {
"use strict";
return function() {
return;
};
}
(function() {
"use strict";
return;
}());
foo();
deprecated mode (Removed)
**Replacement notice**: This mode, previously enabled by turning on the rule without specifying a mode, has been removed in ESLint v1.0. `"function"` mode is most similar to the deprecated behavior, and has been made the default if no mode is specified.
This mode ensures that all functions are executed in strict mode. A Use Strict Directive must be present in global code or in every top-level function declaration or expression. It does not concern itself with unnecessary Use Strict Directives in nested functions that are already strict, nor with multiple Use Strict Directives at the same level.
The following patterns are considered warnings:
js
// "strict": 2
function foo() {
return true;
}
The following patterns do not cause a warning:
js
// "strict": 2
"use strict";
function foo() {
return true;
}
function foo() {
"use strict";
return true;
}
(function() {
"use strict";
// other code
}());
## When Not To Use It
In a codebase that has both strict and non-strict code, either turn this rule off, or [selectively disable it](https://eslint.org/docs/user-guide/configuring) where necessary. For example, functions referencing `arguments.callee` are invalid in strict mode. A [full list of strict mode differences](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode/<API key>#<API key>) is available on MDN.
## Version
This rule was introduced in ESLint 0.1.0.
## Resources
* [Rule source](https://github.com/eslint/eslint/tree/master/lib/rules/strict.js)
* [Documentation source](https://github.com/eslint/eslint/tree/master/docs/rules/strict.md)
|
# <API key>: false
# TkDND (Tk Drag & Drop Extension) support
# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
require 'tk'
# call setup script for general 'tkextlib' libraries
require 'tkextlib/setup.rb'
# call setup script
require 'tkextlib/tkDND/setup.rb'
module Tk
module TkDND
autoload :DND, 'tkextlib/tkDND/tkdnd'
autoload :Shape, 'tkextlib/tkDND/shape'
end
end
|
if(!dojo._hasResource["dojox.drawing"]){
dojo._hasResource["dojox.drawing"]=true;
dojo.provide("dojox.drawing");
dojo.require("dojox.drawing._base");
}
|
const REQUEST_STATUSES = [
{
value: 'Unassigned',
label: 'Unassigned'
},
{
value: 'Assigned',
label: 'Assigned'
},
{
value: 'Contacted',
label: 'Contacted'
},
{
value: 'Awaiting Response',
label: 'Awaiting Response'
},
{
value: 'Scheduled',
label: 'Scheduled'
},
{
value: 'Completed',
label: 'Completed'
}
];
export const MENTOR_ANSWERS = [
{
value: true,
label: 'Yes'
},
{
value: false,
label: 'No'
}
];
export const IDENTIFIERS = [
{
value: false,
label: 'Active Duty Veteran / Spouse'
},
{
value: true,
label: 'Volunteer'
}
];
export const WORKINFO = [
{
value: 'fulltime',
label: 'Employed Full-Time'
},
{
value: 'parttime',
label: 'Employed Part-Time'
},
{
value: 'unemployed',
label: 'Currently Un-Employed'
}
];
export const SCHOOLINFO = [
{
value: 'none',
label: 'None'
},
{
value: 'online',
label: 'Self-Taught (MOOCS, Etc.)'
},
{
value: 'bootcamp',
label: 'Code Bootcamp'
},
{
value: 'associates',
label: '2 Year Degree'
},
{
value: 'college',
label: '4 Year Degree'
},
{
value: 'postgrad',
label: 'Post Graduate Studies'
}
];
export const MILSTATUS = [
{
value: 'current',
label: 'Currently Serving'
},
{
value: 'veteran',
label: 'Veteran'
},
{
value: 'spouse',
label: 'Spouse / Family Member of Service Member'
}
];
export const BRANCH = [
{
value: 'army',
label: 'Army / Army Reserves'
},
{
value: 'navy',
label: 'Navy / Navy Reserves'
},
{
value: 'marine',
label: 'Marine Corps / Marine Corps Reserves'
},
{
value: 'airforce',
label: 'Air Force / Air Force Reserves'
},
{
value: 'coastguard',
label: 'Coast Guard / Coast Guard Reserves'
},
{
value: 'armyguard',
label: 'Army National Guard'
},
{
value: 'airguard',
label: 'Air National Guard'
},
];
export const BRANCH_PROMPT = {
spouse: 'Your Partner\'s Branch of Service',
other: 'Your Branch of Service'
};
export const LANGUAGES = ['Javascript', 'Ruby', 'Java', 'Python', 'C#', 'C', 'Swift', '.NET', 'HTML / CSS'];
export const DISCIPLINES = ['Web Developer', 'Web Designer', 'Front-End Developer', 'Back-End Developer', 'Full-Stack Developer', 'Mobile / IOS', 'Mobile / Android', 'I.T / SysAdmin', 'Cyber Security', 'Data Science'];
export default REQUEST_STATUSES;
|
'use strict';
var RangeIterator = function (startIndex, count) {
var self = this;
self._working = startIndex-1;
self._startIndex = startIndex;
self._count = count;
};
module.exports = RangeIterator;
RangeIterator.prototype.moveNext = function () {
var self = this;
if (self._working < self._startIndex+self._count-1) {
++self._working;
return true;
}
return false;
};
RangeIterator.prototype.getCurrent = function () {
var self = this;
if (self._working < self._startIndex || self._working >= self._startIndex+self._count) {
return undefined;
}
else {
return self._working;
}
};
|
package org.broad.igv.dev.db;
import org.broad.igv.dev.IParser;
import org.broad.igv.exceptions.ParserException;
import java.sql.ResultSet;
import java.sql.SQLException;
public class <API key> implements IParser<ResultSet, Integer> {
@Override
public final byte getByte(ResultSet rs, Integer index) throws ParserException {
try {
return rs.getByte(index + 1);
} catch (SQLException e) {
throw new ParserException(e.getMessage(), -1);
}
}
@Override
public final short getShort(ResultSet rs, Integer index) throws ParserException {
try {
return rs.getShort(index + 1);
} catch (SQLException e) {
throw new ParserException(e.getMessage(), -1);
}
}
@Override
public final int getInt(ResultSet rs, Integer index) throws ParserException {
try {
return rs.getInt(index + 1);
} catch (SQLException e) {
throw new ParserException(e.getMessage(), -1);
}
}
@Override
public final double getDouble(ResultSet rs, Integer index) throws ParserException {
try {
return rs.getDouble(index + 1);
} catch (SQLException e) {
throw new ParserException(e.getMessage(), -1);
}
}
@Override
public final float getFloat(ResultSet rs, Integer index) throws ParserException {
try {
return rs.getFloat(index + 1);
} catch (SQLException e) {
throw new ParserException(e.getMessage(), -1);
}
}
@Override
public final String getString(ResultSet rs, Integer index) throws ParserException {
try {
return rs.getString(index + 1);
} catch (SQLException e) {
throw new ParserException(e.getMessage(), -1);
}
}
@Override
public int size(ResultSet obj) throws ParserException {
try {
return obj.getMetaData().getColumnCount();
} catch (SQLException e) {
throw new ParserException(e.getMessage(), -1);
}
}
}
|
@charset "UTF-8";
/**
* Holisticon theme for reveal.js.
*
*/
@font-face {
font-family: "PT Sans";
src: font-url("");
src: font-url(?#iefix) format('eot'), inline-font-files("../fonts/PT_Sans.woff");
font-weight: normal;
font-style: normal; }
@font-face {
font-family: "PT Sans";
src: font-url("");
src: font-url(?#iefix) format('eot'), inline-font-files("../fonts/PT_Sans_Bold.woff");
font-weight: bold;
font-style: normal; }
body {
background: #fff;
background-color: #fff; }
.reveal {
font-family: "Calibri", "PT Sans", "Open Sans", sans-serif;
font-size: 40px;
font-weight: normal;
color: #666666; }
::-moz-selection {
color: #fff;
background: rgba(0, 0, 0, 0.5);
text-shadow: none; }
::selection {
color: #fff;
background: rgba(0, 0, 0, 0.5);
text-shadow: none; }
::-moz-selection {
color: #fff;
background: rgba(0, 0, 0, 0.5);
text-shadow: none; }
.reveal .slides section,
.reveal .slides section > section {
line-height: 1.3;
font-weight: inherit; }
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
margin: 0 0 20px 0;
color: #DE0027;
font-family: "PT Sans", "Open Sans", sans-serif;
font-weight: normal;
line-height: 1.2;
letter-spacing: normal;
text-transform: none;
text-shadow: none;
word-wrap: break-word; }
.reveal h1 {
font-size: 3.77em; }
.reveal h2 {
font-size: 2.11em; }
.reveal h3 {
font-size: 1.55em; }
.reveal h4 {
font-size: 1em; }
.reveal h1 {
text-shadow: none; }
.reveal p {
margin: 20px 0;
line-height: 1.3; }
/* Ensure certain elements are never larger than the slide itself */
.reveal img,
.reveal video,
.reveal iframe {
max-width: 95%;
max-height: 95%; }
.reveal strong,
.reveal b {
font-weight: bold; }
.reveal em {
font-style: italic; }
.reveal ol,
.reveal dl,
.reveal ul {
display: inline-block;
text-align: left;
margin: 0 0 0 1em; }
.reveal ol {
list-style-type: decimal; }
.reveal ul {
list-style-type: disc; }
.reveal ul ul {
list-style-type: square; }
.reveal ul ul ul {
list-style-type: circle; }
.reveal ul ul,
.reveal ul ol,
.reveal ol ol,
.reveal ol ul {
display: block;
margin-left: 40px; }
.reveal dt {
font-weight: bold; }
.reveal dd {
margin-left: 40px; }
.reveal blockquote {
display: block;
position: relative;
width: 70%;
margin: 20px auto;
padding: 5px;
font-style: italic;
background: rgba(255, 255, 255, 0.05);
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2); }
.reveal blockquote p:first-child,
.reveal blockquote p:last-child {
display: inline-block; }
.reveal q {
font-style: italic; }
.reveal pre {
display: block;
position: relative;
width: 90%;
margin: 20px auto;
text-align: left;
font-size: 0.55em;
font-family: monospace;
line-height: 1.2em;
word-wrap: break-word;
box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.3); }
.reveal code {
font-family: monospace;
text-transform: none; }
.reveal pre code {
display: block;
padding: 5px;
overflow: auto;
max-height: 400px;
word-wrap: normal; }
.reveal table {
margin: auto;
border-collapse: collapse;
border-spacing: 0; }
.reveal table th {
font-weight: bold; }
.reveal table th,
.reveal table td {
text-align: left;
padding: 0.2em 0.5em 0.2em 0.5em;
border-bottom: 1px solid; }
.reveal table th[align="center"],
.reveal table td[align="center"] {
text-align: center; }
.reveal table th[align="right"],
.reveal table td[align="right"] {
text-align: right; }
.reveal table tbody tr:last-child th,
.reveal table tbody tr:last-child td {
border-bottom: none; }
.reveal sup {
vertical-align: super;
font-size: smaller; }
.reveal sub {
vertical-align: sub;
font-size: smaller; }
.reveal small {
display: inline-block;
font-size: 0.6em;
line-height: 1.2em;
vertical-align: top; }
.reveal small * {
vertical-align: top; }
.reveal a {
color: #1952a0;
text-decoration: none;
transition: color .15s ease; }
.reveal a:hover {
color: #2069cc;
text-shadow: none;
border: none; }
.reveal .roll span:after {
color: #fff;
background: #0f305e; }
.reveal section img {
margin: 15px 0px;
background: rgba(255, 255, 255, 0.12);
border: 4px solid #666666;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15); }
.reveal section img.plain {
border: 0;
box-shadow: none; }
.reveal a img {
transition: all .15s linear; }
.reveal a:hover img {
background: rgba(255, 255, 255, 0.2);
border-color: #1952a0;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.55); }
.reveal .controls {
color: #1952a0; }
.reveal .progress {
background: rgba(0, 0, 0, 0.2);
color: #1952a0; }
.reveal .progress span {
transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985); }
@media print {
.backgrounds {
background-color: #fff; } }
pre code {
display: block;
color: #000; }
pre .subst,
pre .title {
font-weight: normal;
color: #000; }
pre .comment,
pre .template_comment,
pre .javadoc,
pre .diff .header {
color: #808080;
font-style: italic; }
pre .annotation,
pre .decorator,
pre .preprocessor,
pre .pragma,
pre .doctype,
pre .pi,
pre .chunk,
pre .shebang,
pre .apache .cbracket,
pre .prompt,
pre .http .title {
color: #808000; }
pre .tag .title,
pre .id,
pre .attr_selector,
pre .pseudo,
pre .literal,
pre .keyword,
pre .hexcolor,
pre .css .function,
pre .ini .title,
pre .css .class,
pre .list .title,
pre .clojure .title,
pre .nginx .title,
pre .tex .command,
pre .request,
pre .markdown .header,
pre .status {
font-weight: bold;
color: #1952a0; }
pre .attribute,
pre .rules .keyword,
pre .number,
pre .date,
pre .regexp,
pre .tex .special {
font-weight: bold;
color: #1952a0; }
pre .number,
pre .regexp {
font-weight: normal; }
pre .string,
pre .value,
pre .filter .argument,
pre .css .function .params,
pre .apache .tag {
color: #008000;
font-weight: bold; }
pre .symbol,
pre .ruby .symbol .string,
pre .char,
pre .tex .formula {
color: #000;
background: #d0eded;
font-style: italic; }
pre .phpdoc,
pre .yardoctag,
pre .javadoctag {
text-decoration: underline; }
pre .variable,
pre .envvar,
pre .apache .sqbracket,
pre .nginx .built_in {
color: #660e7a; }
pre .addition {
background: #baeeba; }
pre .deletion {
background: #ffc8bd; }
pre .diff .change {
background: #bccff9; }
pre .markdown .strong {
font-weight: bold; }
pre .markdown .strong {
font-weight: bold; }
pre .markdown .emphasis {
font-style: italic; }
.img-top div.slide-background.present {
background-position: top; }
.img-left div.slide-background.present {
background-position: left; }
.img-right div.slide-background.present {
background-position: right; }
.img-bottom div.slide-background.present {
background-position: bottom; }
.img-full .reveal blockquote {
background-color: rgba(224, 224, 224, 0.8); }
.reveal .controls {
width: 3em;
height: 3em;
zoom: 0.5 !important; }
.reveal section img {
border: 0 !important;
box-shadow: 0 0 0 !important; }
.reveal h1 {
font-size: 150%;
font-weight: bold;
margin-bottom: 20px;
text-shadow: none; }
.reveal h2 {
font-size: inherit;
font-weight: bold; }
.reveal ul ul {
list-style: none;
padding: 0;
margin: 0;
font-size: 75%; }
.reveal ul {
list-style: none;
padding: 0; }
.reveal ul li {
padding-left: 1ex;
text-indent: -1em; }
.reveal ul li:not(:empty):before {
content: "";
padding-right: 1ex;
color: #DE0027; }
.reveal ul ul li:not(:empty):before {
content: "";
color: #666666; }
.reveal code {
font-family: monospace;
font-size: 0.99em; }
.reveal blockquote {
font-style: italic;
font-size: 0.8em;
text-align: left;
width: auto;
display: inline-block;
padding-top: 0.3em;
padding-left: 0.6em;
padding-right: 0.6em;
color: #666666;
background-color: #e0e0e0; }
.reveal pre {
box-shadow: none;
background-color: #e0e0e0;
padding: 0;
width: -webkit-fit-content;
width: -moz-fit-content;
width: fit-content;
line-height: 0.95em; }
.reveal pre code {
padding: 10px 15px 15px 15px; }
.reveal table {
margin: auto;
border-collapse: collapse;
border-spacing: 0; }
.reveal table th,
.reveal table td {
padding: 0.2em 0.5em 0.2em 0.5em;
border-bottom: 1px solid; }
.reveal table th {
text-align: center; }
.reveal table td[align="right"] {
text-align: right; }
.reveal table td[align="center"] {
text-align: center; }
.reveal .controls div {
opacity: 0.1; }
.reveal .slide-number {
color: #666666;
font-size: 0.8em;
right: 120px; }
.reveal .pause-overlay {
background-color: #fff; }
.reveal .slides section.title p {
color: #8e9297; }
.reveal .slides table {
border-color: #666666; }
.reveal .slides section.title {
background-image: inline-image("../images/brand/<API key>.svg");
background-repeat: no-repeat;
background-position: left top;
background-size: 40%; }
.reveal .slides section {
margin-top: -0.6em; }
.reveal .slides section.title h1 {
margin-top: 4em;
color: #8e9297; }
.checklist li:before {
content: ""; }
footer {
left: 20px;
bottom: 20px;
position: absolute;
display: block;
width: 240px; }
footer .holisticon-logo {
height: 2rem;
opacity: 0.6; }
html, body, .reveal div big {
font-size: 1.3em; }
@media screen {
.reveal {
-<API key>: antialiased; } }
@media screen and (max-width: 800px), screen and (max-height: 500px) {
.reveal .controls {
zoom: 0.5; }
footer .holisticon-logo {
width: 100px; } }
|
<a href='https://github.com/angular/angular.js/edit/v1.3.x/src/Angular.js?message=docs(angular.fromJson)%3A%20describe%20your%20change...#L988' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit"> </i>Improve this Doc</a>
<a href='https://github.com/angular/angular.js/tree/v1.3.8/src/Angular.js#L988' class='view-source pull-right btn btn-primary'>
<i class="glyphicon glyphicon-zoom-in"> </i>View Source
</a>
<header class="api-profile-header">
<h1 class="<API key>">angular.fromJson</h1>
<ol class="<API key> naked-list step-list">
<li>
- function in module <a href="api/ng">ng</a>
</li>
</ol>
</header>
<div class="<API key>">
<p>Deserializes a JSON string.</p>
</div>
<div>
<h2 id="usage">Usage</h2>
<p><code>angular.fromJson(json);</code></p>
<section class="api-section">
<h3>Arguments</h3>
<table class="variables-matrix input-arguments">
<thead>
<tr>
<th>Param</th>
<th>Type</th>
<th>Details</th>
</tr>
</thead>
<tbody>
<tr>
<td>
json
</td>
<td>
<a href="" class="label type-hint type-hint-string">string</a>
</td>
<td>
<p>JSON string to deserialize.</p>
</td>
</tr>
</tbody>
</table>
</section>
<h3>Returns</h3>
<table class="variables-matrix return-arguments">
<tr>
<td><a href="" class="label type-hint type-hint-object">Object</a><a href="" class="label type-hint type-hint-array">Array</a><a href="" class="label type-hint type-hint-string">string</a><a href="" class="label type-hint type-hint-number">number</a></td>
<td><p>Deserialized JSON string.</p>
</td>
</tr>
</table>
</div>
|
!function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):(_="undefined"!=typeof globalThis?globalThis:_||self).dayjs_locale_zh_hk=e(_.dayjs)}(this,(function(_){"use strict";function e(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}var t=e(_),d={name:"zh-hk",months:"___________".split("_"),monthsShort:"1_2_3_4_5_6_7_8_9_10_11_12".split("_"),weekdays:"______".split("_"),weekdaysShort:"______".split("_"),weekdaysMin:"______".split("_"),ordinal:function(_){return _+""},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYYMD",LLL:"YYYYMD HH:mm",LLLL:"YYYYMDdddd HH:mm"},relativeTime:{future:"%s",past:"%s",s:"",m:"",mm:"%d ",h:"",hh:"%d ",d:"",dd:"%d ",M:"",MM:"%d ",y:"",yy:"%d "}};return t.default.locale(d,null,!0),d}));
|
@import url("//fonts.googleapis.com/css?family=Roboto:300,400,500,700");
html {
font-family: sans-serif;
-ms-text-size-adjust: 100%;
-<API key>: 100%;
}
body {
margin: 0;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
display: block;
}
audio,
canvas,
progress,
video {
display: inline-block;
vertical-align: baseline;
}
audio:not([controls]) {
display: none;
height: 0;
}
[hidden],
template {
display: none;
}
a {
background-color: transparent;
}
a:active,
a:hover {
outline: 0;
}
abbr[title] {
border-bottom: 1px dotted;
}
b,
strong {
font-weight: bold;
}
dfn {
font-style: italic;
}
h1 {
font-size: 2em;
margin: 0.67em 0;
}
mark {
background: #ff0;
color: #000;
}
small {
font-size: 80%;
}
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
img {
border: 0;
}
svg:not(:root) {
overflow: hidden;
}
figure {
margin: 1em 40px;
}
hr {
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
pre {
overflow: auto;
}
code,
kbd,
pre,
samp {
font-family: monospace, monospace;
font-size: 1em;
}
button,
input,
optgroup,
select,
textarea {
color: inherit;
font: inherit;
margin: 0;
}
button {
overflow: visible;
}
button,
select {
text-transform: none;
}
button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
-webkit-appearance: button;
cursor: pointer;
}
button[disabled],
html input[disabled] {
cursor: default;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
input {
line-height: normal;
}
input[type="checkbox"],
input[type="radio"] {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
input[type="number"]::-<API key>,
input[type="number"]::-<API key> {
height: auto;
}
input[type="search"] {
-webkit-appearance: textfield;
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box;
box-sizing: content-box;
}
input[type="search"]::-<API key>,
input[type="search"]::-<API key> {
-webkit-appearance: none;
}
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
legend {
border: 0;
padding: 0;
}
textarea {
overflow: auto;
}
optgroup {
font-weight: bold;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
td,
th {
padding: 0;
}
@media print {
*,
*:before,
*:after {
background: transparent !important;
color: #000 !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
text-shadow: none !important;
}
a,
a:visited {
text-decoration: underline;
}
a[href]:after {
content: " (" attr(href) ")";
}
abbr[title]:after {
content: " (" attr(title) ")";
}
a[href^="#"]:after,
a[href^="javascript:"]:after {
content: "";
}
pre,
blockquote {
border: 1px solid #999;
page-break-inside: avoid;
}
thead {
display: table-header-group;
}
tr,
img {
page-break-inside: avoid;
}
img {
max-width: 100% !important;
}
p,
h2,
h3 {
orphans: 3;
widows: 3;
}
h2,
h3 {
page-break-after: avoid;
}
select {
background: #fff !important;
}
.navbar {
display: none;
}
.btn > .caret,
.dropup > .btn > .caret {
border-top-color: #000 !important;
}
.label {
border: 1px solid #000;
}
.table {
border-collapse: collapse !important;
}
.table td,
.table th {
background-color: #fff !important;
}
.table-bordered th,
.table-bordered td {
border: 1px solid #ddd !important;
}
}
@font-face {
font-family: 'Glyphicons Halflings';
src: url('../bower_components/bootstrap/fonts/<API key>.eot');
src: url('../bower_components/bootstrap/fonts/<API key>.eot?#iefix') format('embedded-opentype'), url('../bower_components/bootstrap/fonts/<API key>.woff2') format('woff2'), url('../bower_components/bootstrap/fonts/<API key>.woff') format('woff'), url('../bower_components/bootstrap/fonts/<API key>.ttf') format('truetype'), url('../bower_components/bootstrap/fonts/<API key>.svg#<API key>') format('svg');
}
.glyphicon {
position: relative;
top: 1px;
display: inline-block;
font-family: 'Glyphicons Halflings';
font-style: normal;
font-weight: normal;
line-height: 1;
-<API key>: antialiased;
-<API key>: grayscale;
}
.glyphicon-asterisk:before {
content: "\2a";
}
.glyphicon-plus:before {
content: "\2b";
}
.glyphicon-euro:before,
.glyphicon-eur:before {
content: "\20ac";
}
.glyphicon-minus:before {
content: "\2212";
}
.glyphicon-cloud:before {
content: "\2601";
}
.glyphicon-envelope:before {
content: "\2709";
}
.glyphicon-pencil:before {
content: "\270f";
}
.glyphicon-glass:before {
content: "\e001";
}
.glyphicon-music:before {
content: "\e002";
}
.glyphicon-search:before {
content: "\e003";
}
.glyphicon-heart:before {
content: "\e005";
}
.glyphicon-star:before {
content: "\e006";
}
.<API key>:before {
content: "\e007";
}
.glyphicon-user:before {
content: "\e008";
}
.glyphicon-film:before {
content: "\e009";
}
.glyphicon-th-large:before {
content: "\e010";
}
.glyphicon-th:before {
content: "\e011";
}
.glyphicon-th-list:before {
content: "\e012";
}
.glyphicon-ok:before {
content: "\e013";
}
.glyphicon-remove:before {
content: "\e014";
}
.glyphicon-zoom-in:before {
content: "\e015";
}
.glyphicon-zoom-out:before {
content: "\e016";
}
.glyphicon-off:before {
content: "\e017";
}
.glyphicon-signal:before {
content: "\e018";
}
.glyphicon-cog:before {
content: "\e019";
}
.glyphicon-trash:before {
content: "\e020";
}
.glyphicon-home:before {
content: "\e021";
}
.glyphicon-file:before {
content: "\e022";
}
.glyphicon-time:before {
content: "\e023";
}
.glyphicon-road:before {
content: "\e024";
}
.<API key>:before {
content: "\e025";
}
.glyphicon-download:before {
content: "\e026";
}
.glyphicon-upload:before {
content: "\e027";
}
.glyphicon-inbox:before {
content: "\e028";
}
.<API key>:before {
content: "\e029";
}
.glyphicon-repeat:before {
content: "\e030";
}
.glyphicon-refresh:before {
content: "\e031";
}
.glyphicon-list-alt:before {
content: "\e032";
}
.glyphicon-lock:before {
content: "\e033";
}
.glyphicon-flag:before {
content: "\e034";
}
.<API key>:before {
content: "\e035";
}
.<API key>:before {
content: "\e036";
}
.<API key>:before {
content: "\e037";
}
.glyphicon-volume-up:before {
content: "\e038";
}
.glyphicon-qrcode:before {
content: "\e039";
}
.glyphicon-barcode:before {
content: "\e040";
}
.glyphicon-tag:before {
content: "\e041";
}
.glyphicon-tags:before {
content: "\e042";
}
.glyphicon-book:before {
content: "\e043";
}
.glyphicon-bookmark:before {
content: "\e044";
}
.glyphicon-print:before {
content: "\e045";
}
.glyphicon-camera:before {
content: "\e046";
}
.glyphicon-font:before {
content: "\e047";
}
.glyphicon-bold:before {
content: "\e048";
}
.glyphicon-italic:before {
content: "\e049";
}
.<API key>:before {
content: "\e050";
}
.<API key>:before {
content: "\e051";
}
.<API key>:before {
content: "\e052";
}
.<API key>:before {
content: "\e053";
}
.<API key>:before {
content: "\e054";
}
.<API key>:before {
content: "\e055";
}
.glyphicon-list:before {
content: "\e056";
}
.<API key>:before {
content: "\e057";
}
.<API key>:before {
content: "\e058";
}
.<API key>:before {
content: "\e059";
}
.glyphicon-picture:before {
content: "\e060";
}
.<API key>:before {
content: "\e062";
}
.glyphicon-adjust:before {
content: "\e063";
}
.glyphicon-tint:before {
content: "\e064";
}
.glyphicon-edit:before {
content: "\e065";
}
.glyphicon-share:before {
content: "\e066";
}
.glyphicon-check:before {
content: "\e067";
}
.glyphicon-move:before {
content: "\e068";
}
.<API key>:before {
content: "\e069";
}
.<API key>:before {
content: "\e070";
}
.glyphicon-backward:before {
content: "\e071";
}
.glyphicon-play:before {
content: "\e072";
}
.glyphicon-pause:before {
content: "\e073";
}
.glyphicon-stop:before {
content: "\e074";
}
.glyphicon-forward:before {
content: "\e075";
}
.<API key>:before {
content: "\e076";
}
.<API key>:before {
content: "\e077";
}
.glyphicon-eject:before {
content: "\e078";
}
.<API key>:before {
content: "\e079";
}
.<API key>:before {
content: "\e080";
}
.glyphicon-plus-sign:before {
content: "\e081";
}
.<API key>:before {
content: "\e082";
}
.<API key>:before {
content: "\e083";
}
.glyphicon-ok-sign:before {
content: "\e084";
}
.<API key>:before {
content: "\e085";
}
.glyphicon-info-sign:before {
content: "\e086";
}
.<API key>:before {
content: "\e087";
}
.<API key>:before {
content: "\e088";
}
.glyphicon-ok-circle:before {
content: "\e089";
}
.<API key>:before {
content: "\e090";
}
.<API key>:before {
content: "\e091";
}
.<API key>:before {
content: "\e092";
}
.glyphicon-arrow-up:before {
content: "\e093";
}
.<API key>:before {
content: "\e094";
}
.glyphicon-share-alt:before {
content: "\e095";
}
.<API key>:before {
content: "\e096";
}
.<API key>:before {
content: "\e097";
}
.<API key>:before {
content: "\e101";
}
.glyphicon-gift:before {
content: "\e102";
}
.glyphicon-leaf:before {
content: "\e103";
}
.glyphicon-fire:before {
content: "\e104";
}
.glyphicon-eye-open:before {
content: "\e105";
}
.glyphicon-eye-close:before {
content: "\e106";
}
.<API key>:before {
content: "\e107";
}
.glyphicon-plane:before {
content: "\e108";
}
.glyphicon-calendar:before {
content: "\e109";
}
.glyphicon-random:before {
content: "\e110";
}
.glyphicon-comment:before {
content: "\e111";
}
.glyphicon-magnet:before {
content: "\e112";
}
.<API key>:before {
content: "\e113";
}
.<API key>:before {
content: "\e114";
}
.glyphicon-retweet:before {
content: "\e115";
}
.<API key>:before {
content: "\e116";
}
.<API key>:before {
content: "\e117";
}
.<API key>:before {
content: "\e118";
}
.<API key>:before {
content: "\e119";
}
.<API key>:before {
content: "\e120";
}
.glyphicon-hdd:before {
content: "\e121";
}
.glyphicon-bullhorn:before {
content: "\e122";
}
.glyphicon-bell:before {
content: "\e123";
}
.<API key>:before {
content: "\e124";
}
.glyphicon-thumbs-up:before {
content: "\e125";
}
.<API key>:before {
content: "\e126";
}
.<API key>:before {
content: "\e127";
}
.glyphicon-hand-left:before {
content: "\e128";
}
.glyphicon-hand-up:before {
content: "\e129";
}
.glyphicon-hand-down:before {
content: "\e130";
}
.<API key>:before {
content: "\e131";
}
.<API key>:before {
content: "\e132";
}
.<API key>:before {
content: "\e133";
}
.<API key>:before {
content: "\e134";
}
.glyphicon-globe:before {
content: "\e135";
}
.glyphicon-wrench:before {
content: "\e136";
}
.glyphicon-tasks:before {
content: "\e137";
}
.glyphicon-filter:before {
content: "\e138";
}
.glyphicon-briefcase:before {
content: "\e139";
}
.<API key>:before {
content: "\e140";
}
.glyphicon-dashboard:before {
content: "\e141";
}
.glyphicon-paperclip:before {
content: "\e142";
}
.<API key>:before {
content: "\e143";
}
.glyphicon-link:before {
content: "\e144";
}
.glyphicon-phone:before {
content: "\e145";
}
.glyphicon-pushpin:before {
content: "\e146";
}
.glyphicon-usd:before {
content: "\e148";
}
.glyphicon-gbp:before {
content: "\e149";
}
.glyphicon-sort:before {
content: "\e150";
}
.<API key>:before {
content: "\e151";
}
.<API key>:before {
content: "\e152";
}
.<API key>:before {
content: "\e153";
}
.<API key>:before {
content: "\e154";
}
.<API key>:before {
content: "\e155";
}
.<API key>:before {
content: "\e156";
}
.glyphicon-unchecked:before {
content: "\e157";
}
.glyphicon-expand:before {
content: "\e158";
}
.<API key>:before {
content: "\e159";
}
.<API key>:before {
content: "\e160";
}
.glyphicon-log-in:before {
content: "\e161";
}
.glyphicon-flash:before {
content: "\e162";
}
.glyphicon-log-out:before {
content: "\e163";
}
.<API key>:before {
content: "\e164";
}
.glyphicon-record:before {
content: "\e165";
}
.glyphicon-save:before {
content: "\e166";
}
.glyphicon-open:before {
content: "\e167";
}
.glyphicon-saved:before {
content: "\e168";
}
.glyphicon-import:before {
content: "\e169";
}
.glyphicon-export:before {
content: "\e170";
}
.glyphicon-send:before {
content: "\e171";
}
.<API key>:before {
content: "\e172";
}
.<API key>:before {
content: "\e173";
}
.<API key>:before {
content: "\e174";
}
.<API key>:before {
content: "\e175";
}
.<API key>:before {
content: "\e176";
}
.<API key>:before {
content: "\e177";
}
.glyphicon-transfer:before {
content: "\e178";
}
.glyphicon-cutlery:before {
content: "\e179";
}
.glyphicon-header:before {
content: "\e180";
}
.<API key>:before {
content: "\e181";
}
.glyphicon-earphone:before {
content: "\e182";
}
.glyphicon-phone-alt:before {
content: "\e183";
}
.glyphicon-tower:before {
content: "\e184";
}
.glyphicon-stats:before {
content: "\e185";
}
.glyphicon-sd-video:before {
content: "\e186";
}
.glyphicon-hd-video:before {
content: "\e187";
}
.glyphicon-subtitles:before {
content: "\e188";
}
.<API key>:before {
content: "\e189";
}
.<API key>:before {
content: "\e190";
}
.glyphicon-sound-5-1:before {
content: "\e191";
}
.glyphicon-sound-6-1:before {
content: "\e192";
}
.glyphicon-sound-7-1:before {
content: "\e193";
}
.<API key>:before {
content: "\e194";
}
.<API key>:before {
content: "\e195";
}
.<API key>:before {
content: "\e197";
}
.<API key>:before {
content: "\e198";
}
.<API key>:before {
content: "\e199";
}
.<API key>:before {
content: "\e200";
}
.glyphicon-cd:before {
content: "\e201";
}
.glyphicon-save-file:before {
content: "\e202";
}
.glyphicon-open-file:before {
content: "\e203";
}
.glyphicon-level-up:before {
content: "\e204";
}
.glyphicon-copy:before {
content: "\e205";
}
.glyphicon-paste:before {
content: "\e206";
}
.glyphicon-alert:before {
content: "\e209";
}
.glyphicon-equalizer:before {
content: "\e210";
}
.glyphicon-king:before {
content: "\e211";
}
.glyphicon-queen:before {
content: "\e212";
}
.glyphicon-pawn:before {
content: "\e213";
}
.glyphicon-bishop:before {
content: "\e214";
}
.glyphicon-knight:before {
content: "\e215";
}
.<API key>:before {
content: "\e216";
}
.glyphicon-tent:before {
content: "\26fa";
}
.<API key>:before {
content: "\e218";
}
.glyphicon-bed:before {
content: "\e219";
}
.glyphicon-apple:before {
content: "\f8ff";
}
.glyphicon-erase:before {
content: "\e221";
}
.glyphicon-hourglass:before {
content: "\231b";
}
.glyphicon-lamp:before {
content: "\e223";
}
.glyphicon-duplicate:before {
content: "\e224";
}
.<API key>:before {
content: "\e225";
}
.glyphicon-scissors:before {
content: "\e226";
}
.glyphicon-bitcoin:before {
content: "\e227";
}
.glyphicon-btc:before {
content: "\e227";
}
.glyphicon-xbt:before {
content: "\e227";
}
.glyphicon-yen:before {
content: "\00a5";
}
.glyphicon-jpy:before {
content: "\00a5";
}
.glyphicon-ruble:before {
content: "\20bd";
}
.glyphicon-rub:before {
content: "\20bd";
}
.glyphicon-scale:before {
content: "\e230";
}
.glyphicon-ice-lolly:before {
content: "\e231";
}
.<API key>:before {
content: "\e232";
}
.glyphicon-education:before {
content: "\e233";
}
.<API key>:before {
content: "\e234";
}
.<API key>:before {
content: "\e235";
}
.<API key>:before {
content: "\e236";
}
.<API key>:before {
content: "\e237";
}
.glyphicon-oil:before {
content: "\e238";
}
.glyphicon-grain:before {
content: "\e239";
}
.<API key>:before {
content: "\e240";
}
.glyphicon-text-size:before {
content: "\e241";
}
.<API key>:before {
content: "\e242";
}
.<API key>:before {
content: "\e243";
}
.<API key>:before {
content: "\e244";
}
.<API key>:before {
content: "\e245";
}
.<API key>:before {
content: "\e246";
}
.<API key>:before {
content: "\e247";
}
.<API key>:before {
content: "\e248";
}
.<API key>:before {
content: "\e249";
}
.<API key>:before {
content: "\e250";
}
.<API key>:before {
content: "\e251";
}
.<API key>:before {
content: "\e252";
}
.<API key>:before {
content: "\e253";
}
.glyphicon-console:before {
content: "\e254";
}
.<API key>:before {
content: "\e255";
}
.glyphicon-subscript:before {
content: "\e256";
}
.glyphicon-menu-left:before {
content: "\e257";
}
.<API key>:before {
content: "\e258";
}
.glyphicon-menu-down:before {
content: "\e259";
}
.glyphicon-menu-up:before {
content: "\e260";
}
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
*:before,
*:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
html {
font-size: 10px;
-<API key>: rgba(0, 0, 0, 0);
}
body {
font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 13px;
line-height: 1.846;
color: #666666;
background-color: #ffffff;
}
input,
button,
select,
textarea {
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
a {
color: #2196f3;
text-decoration: none;
}
a:hover,
a:focus {
color: #0a6ebd;
text-decoration: underline;
}
a:focus {
outline: thin dotted;
outline: 5px auto -<API key>;
outline-offset: -2px;
}
figure {
margin: 0;
}
img {
vertical-align: middle;
}
.img-responsive,
.thumbnail > img,
.thumbnail a > img,
.carousel-inner > .item > img,
.carousel-inner > .item > a > img {
display: block;
max-width: 100%;
height: auto;
}
.img-rounded {
border-radius: 3px;
}
.img-thumbnail {
padding: 4px;
line-height: 1.846;
background-color: #ffffff;
border: 1px solid #dddddd;
border-radius: 3px;
-webkit-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
display: inline-block;
max-width: 100%;
height: auto;
}
.img-circle {
border-radius: 50%;
}
hr {
margin-top: 23px;
margin-bottom: 23px;
border: 0;
border-top: 1px solid #eeeeee;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
.sr-only-focusable:active,
.sr-only-focusable:focus {
position: static;
width: auto;
height: auto;
margin: 0;
overflow: visible;
clip: auto;
}
[role="button"] {
cursor: pointer;
}
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
font-family: inherit;
font-weight: 400;
line-height: 1.1;
color: #444444;
}
h1 small,
h2 small,
h3 small,
h4 small,
h5 small,
h6 small,
.h1 small,
.h2 small,
.h3 small,
.h4 small,
.h5 small,
.h6 small,
h1 .small,
h2 .small,
h3 .small,
h4 .small,
h5 .small,
h6 .small,
.h1 .small,
.h2 .small,
.h3 .small,
.h4 .small,
.h5 .small,
.h6 .small {
font-weight: normal;
line-height: 1;
color: #bbbbbb;
}
h1,
.h1,
h2,
.h2,
h3,
.h3 {
margin-top: 23px;
margin-bottom: 11.5px;
}
h1 small,
.h1 small,
h2 small,
.h2 small,
h3 small,
.h3 small,
h1 .small,
.h1 .small,
h2 .small,
.h2 .small,
h3 .small,
.h3 .small {
font-size: 65%;
}
h4,
.h4,
h5,
.h5,
h6,
.h6 {
margin-top: 11.5px;
margin-bottom: 11.5px;
}
h4 small,
.h4 small,
h5 small,
.h5 small,
h6 small,
.h6 small,
h4 .small,
.h4 .small,
h5 .small,
.h5 .small,
h6 .small,
.h6 .small {
font-size: 75%;
}
h1,
.h1 {
font-size: 56px;
}
h2,
.h2 {
font-size: 45px;
}
h3,
.h3 {
font-size: 34px;
}
h4,
.h4 {
font-size: 24px;
}
h5,
.h5 {
font-size: 20px;
}
h6,
.h6 {
font-size: 14px;
}
p {
margin: 0 0 11.5px;
}
.lead {
margin-bottom: 23px;
font-size: 14px;
font-weight: 300;
line-height: 1.4;
}
@media (min-width: 768px) {
.lead {
font-size: 19.5px;
}
}
small,
.small {
font-size: 92%;
}
mark,
.mark {
background-color: #ffe0b2;
padding: .2em;
}
.text-left {
text-align: left;
}
.text-right {
text-align: right;
}
.text-center {
text-align: center;
}
.text-justify {
text-align: justify;
}
.text-nowrap {
white-space: nowrap;
}
.text-lowercase {
text-transform: lowercase;
}
.text-uppercase {
text-transform: uppercase;
}
.text-capitalize {
text-transform: capitalize;
}
.text-muted {
color: #bbbbbb;
}
.text-primary {
color: #2196f3;
}
a.text-primary:hover {
color: #0c7cd5;
}
.text-success {
color: #4caf50;
}
a.text-success:hover {
color: #3d8b40;
}
.text-info {
color: #9c27b0;
}
a.text-info:hover {
color: #771e86;
}
.text-warning {
color: #ff9800;
}
a.text-warning:hover {
color: #cc7a00;
}
.text-danger {
color: #e51c23;
}
a.text-danger:hover {
color: #b9151b;
}
.bg-primary {
color: #fff;
background-color: #2196f3;
}
a.bg-primary:hover {
background-color: #0c7cd5;
}
.bg-success {
background-color: #dff0d8;
}
a.bg-success:hover {
background-color: #c1e2b3;
}
.bg-info {
background-color: #e1bee7;
}
a.bg-info:hover {
background-color: #d099d9;
}
.bg-warning {
background-color: #ffe0b2;
}
a.bg-warning:hover {
background-color: #ffcb7f;
}
.bg-danger {
background-color: #f9bdbb;
}
a.bg-danger:hover {
background-color: #f5908c;
}
.page-header {
padding-bottom: 10.5px;
margin: 46px 0 23px;
border-bottom: 1px solid #eeeeee;
}
ul,
ol {
margin-top: 0;
margin-bottom: 11.5px;
}
ul ul,
ol ul,
ul ol,
ol ol {
margin-bottom: 0;
}
.list-unstyled {
padding-left: 0;
list-style: none;
}
.list-inline {
padding-left: 0;
list-style: none;
margin-left: -5px;
}
.list-inline > li {
display: inline-block;
padding-left: 5px;
padding-right: 5px;
}
dl {
margin-top: 0;
margin-bottom: 23px;
}
dt,
dd {
line-height: 1.846;
}
dt {
font-weight: bold;
}
dd {
margin-left: 0;
}
@media (min-width: 768px) {
.dl-horizontal dt {
float: left;
width: 160px;
clear: left;
text-align: right;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.dl-horizontal dd {
margin-left: 180px;
}
}
abbr[title],
abbr[data-original-title] {
cursor: help;
border-bottom: 1px dotted #bbbbbb;
}
.initialism {
font-size: 90%;
text-transform: uppercase;
}
blockquote {
padding: 11.5px 23px;
margin: 0 0 23px;
font-size: 16.25px;
border-left: 5px solid #eeeeee;
}
blockquote p:last-child,
blockquote ul:last-child,
blockquote ol:last-child {
margin-bottom: 0;
}
blockquote footer,
blockquote small,
blockquote .small {
display: block;
font-size: 80%;
line-height: 1.846;
color: #bbbbbb;
}
blockquote footer:before,
blockquote small:before,
blockquote .small:before {
content: '\2014 \00A0';
}
.blockquote-reverse,
blockquote.pull-right {
padding-right: 15px;
padding-left: 0;
border-right: 5px solid #eeeeee;
border-left: 0;
text-align: right;
}
.blockquote-reverse footer:before,
blockquote.pull-right footer:before,
.blockquote-reverse small:before,
blockquote.pull-right small:before,
.blockquote-reverse .small:before,
blockquote.pull-right .small:before {
content: '';
}
.blockquote-reverse footer:after,
blockquote.pull-right footer:after,
.blockquote-reverse small:after,
blockquote.pull-right small:after,
.blockquote-reverse .small:after,
blockquote.pull-right .small:after {
content: '\00A0 \2014';
}
address {
margin-bottom: 23px;
font-style: normal;
line-height: 1.846;
}
code,
kbd,
pre,
samp {
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}
code {
padding: 2px 4px;
font-size: 90%;
color: #c7254e;
background-color: #f9f2f4;
border-radius: 3px;
}
kbd {
padding: 2px 4px;
font-size: 90%;
color: #ffffff;
background-color: #333333;
border-radius: 3px;
-webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}
kbd kbd {
padding: 0;
font-size: 100%;
font-weight: bold;
-webkit-box-shadow: none;
box-shadow: none;
}
pre {
display: block;
padding: 11px;
margin: 0 0 11.5px;
font-size: 12px;
line-height: 1.846;
word-break: break-all;
word-wrap: break-word;
color: #212121;
background-color: #f5f5f5;
border: 1px solid #cccccc;
border-radius: 3px;
}
pre code {
padding: 0;
font-size: inherit;
color: inherit;
white-space: pre-wrap;
background-color: transparent;
border-radius: 0;
}
.pre-scrollable {
max-height: 340px;
overflow-y: scroll;
}
.container {
margin-right: auto;
margin-left: auto;
padding-left: 15px;
padding-right: 15px;
}
@media (min-width: 768px) {
.container {
width: 750px;
}
}
@media (min-width: 992px) {
.container {
width: 970px;
}
}
@media (min-width: 1200px) {
.container {
width: 1170px;
}
}
.container-fluid {
margin-right: auto;
margin-left: auto;
padding-left: 15px;
padding-right: 15px;
}
.row {
margin-left: -15px;
margin-right: -15px;
}
.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
position: relative;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;
}
.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {
float: left;
}
.col-xs-12 {
width: 100%;
}
.col-xs-11 {
width: 91.66666667%;
}
.col-xs-10 {
width: 83.33333333%;
}
.col-xs-9 {
width: 75%;
}
.col-xs-8 {
width: 66.66666667%;
}
.col-xs-7 {
width: 58.33333333%;
}
.col-xs-6 {
width: 50%;
}
.col-xs-5 {
width: 41.66666667%;
}
.col-xs-4 {
width: 33.33333333%;
}
.col-xs-3 {
width: 25%;
}
.col-xs-2 {
width: 16.66666667%;
}
.col-xs-1 {
width: 8.33333333%;
}
.col-xs-pull-12 {
right: 100%;
}
.col-xs-pull-11 {
right: 91.66666667%;
}
.col-xs-pull-10 {
right: 83.33333333%;
}
.col-xs-pull-9 {
right: 75%;
}
.col-xs-pull-8 {
right: 66.66666667%;
}
.col-xs-pull-7 {
right: 58.33333333%;
}
.col-xs-pull-6 {
right: 50%;
}
.col-xs-pull-5 {
right: 41.66666667%;
}
.col-xs-pull-4 {
right: 33.33333333%;
}
.col-xs-pull-3 {
right: 25%;
}
.col-xs-pull-2 {
right: 16.66666667%;
}
.col-xs-pull-1 {
right: 8.33333333%;
}
.col-xs-pull-0 {
right: auto;
}
.col-xs-push-12 {
left: 100%;
}
.col-xs-push-11 {
left: 91.66666667%;
}
.col-xs-push-10 {
left: 83.33333333%;
}
.col-xs-push-9 {
left: 75%;
}
.col-xs-push-8 {
left: 66.66666667%;
}
.col-xs-push-7 {
left: 58.33333333%;
}
.col-xs-push-6 {
left: 50%;
}
.col-xs-push-5 {
left: 41.66666667%;
}
.col-xs-push-4 {
left: 33.33333333%;
}
.col-xs-push-3 {
left: 25%;
}
.col-xs-push-2 {
left: 16.66666667%;
}
.col-xs-push-1 {
left: 8.33333333%;
}
.col-xs-push-0 {
left: auto;
}
.col-xs-offset-12 {
margin-left: 100%;
}
.col-xs-offset-11 {
margin-left: 91.66666667%;
}
.col-xs-offset-10 {
margin-left: 83.33333333%;
}
.col-xs-offset-9 {
margin-left: 75%;
}
.col-xs-offset-8 {
margin-left: 66.66666667%;
}
.col-xs-offset-7 {
margin-left: 58.33333333%;
}
.col-xs-offset-6 {
margin-left: 50%;
}
.col-xs-offset-5 {
margin-left: 41.66666667%;
}
.col-xs-offset-4 {
margin-left: 33.33333333%;
}
.col-xs-offset-3 {
margin-left: 25%;
}
.col-xs-offset-2 {
margin-left: 16.66666667%;
}
.col-xs-offset-1 {
margin-left: 8.33333333%;
}
.col-xs-offset-0 {
margin-left: 0%;
}
@media (min-width: 768px) {
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
float: left;
}
.col-sm-12 {
width: 100%;
}
.col-sm-11 {
width: 91.66666667%;
}
.col-sm-10 {
width: 83.33333333%;
}
.col-sm-9 {
width: 75%;
}
.col-sm-8 {
width: 66.66666667%;
}
.col-sm-7 {
width: 58.33333333%;
}
.col-sm-6 {
width: 50%;
}
.col-sm-5 {
width: 41.66666667%;
}
.col-sm-4 {
width: 33.33333333%;
}
.col-sm-3 {
width: 25%;
}
.col-sm-2 {
width: 16.66666667%;
}
.col-sm-1 {
width: 8.33333333%;
}
.col-sm-pull-12 {
right: 100%;
}
.col-sm-pull-11 {
right: 91.66666667%;
}
.col-sm-pull-10 {
right: 83.33333333%;
}
.col-sm-pull-9 {
right: 75%;
}
.col-sm-pull-8 {
right: 66.66666667%;
}
.col-sm-pull-7 {
right: 58.33333333%;
}
.col-sm-pull-6 {
right: 50%;
}
.col-sm-pull-5 {
right: 41.66666667%;
}
.col-sm-pull-4 {
right: 33.33333333%;
}
.col-sm-pull-3 {
right: 25%;
}
.col-sm-pull-2 {
right: 16.66666667%;
}
.col-sm-pull-1 {
right: 8.33333333%;
}
.col-sm-pull-0 {
right: auto;
}
.col-sm-push-12 {
left: 100%;
}
.col-sm-push-11 {
left: 91.66666667%;
}
.col-sm-push-10 {
left: 83.33333333%;
}
.col-sm-push-9 {
left: 75%;
}
.col-sm-push-8 {
left: 66.66666667%;
}
.col-sm-push-7 {
left: 58.33333333%;
}
.col-sm-push-6 {
left: 50%;
}
.col-sm-push-5 {
left: 41.66666667%;
}
.col-sm-push-4 {
left: 33.33333333%;
}
.col-sm-push-3 {
left: 25%;
}
.col-sm-push-2 {
left: 16.66666667%;
}
.col-sm-push-1 {
left: 8.33333333%;
}
.col-sm-push-0 {
left: auto;
}
.col-sm-offset-12 {
margin-left: 100%;
}
.col-sm-offset-11 {
margin-left: 91.66666667%;
}
.col-sm-offset-10 {
margin-left: 83.33333333%;
}
.col-sm-offset-9 {
margin-left: 75%;
}
.col-sm-offset-8 {
margin-left: 66.66666667%;
}
.col-sm-offset-7 {
margin-left: 58.33333333%;
}
.col-sm-offset-6 {
margin-left: 50%;
}
.col-sm-offset-5 {
margin-left: 41.66666667%;
}
.col-sm-offset-4 {
margin-left: 33.33333333%;
}
.col-sm-offset-3 {
margin-left: 25%;
}
.col-sm-offset-2 {
margin-left: 16.66666667%;
}
.col-sm-offset-1 {
margin-left: 8.33333333%;
}
.col-sm-offset-0 {
margin-left: 0%;
}
}
@media (min-width: 992px) {
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
float: left;
}
.col-md-12 {
width: 100%;
}
.col-md-11 {
width: 91.66666667%;
}
.col-md-10 {
width: 83.33333333%;
}
.col-md-9 {
width: 75%;
}
.col-md-8 {
width: 66.66666667%;
}
.col-md-7 {
width: 58.33333333%;
}
.col-md-6 {
width: 50%;
}
.col-md-5 {
width: 41.66666667%;
}
.col-md-4 {
width: 33.33333333%;
}
.col-md-3 {
width: 25%;
}
.col-md-2 {
width: 16.66666667%;
}
.col-md-1 {
width: 8.33333333%;
}
.col-md-pull-12 {
right: 100%;
}
.col-md-pull-11 {
right: 91.66666667%;
}
.col-md-pull-10 {
right: 83.33333333%;
}
.col-md-pull-9 {
right: 75%;
}
.col-md-pull-8 {
right: 66.66666667%;
}
.col-md-pull-7 {
right: 58.33333333%;
}
.col-md-pull-6 {
right: 50%;
}
.col-md-pull-5 {
right: 41.66666667%;
}
.col-md-pull-4 {
right: 33.33333333%;
}
.col-md-pull-3 {
right: 25%;
}
.col-md-pull-2 {
right: 16.66666667%;
}
.col-md-pull-1 {
right: 8.33333333%;
}
.col-md-pull-0 {
right: auto;
}
.col-md-push-12 {
left: 100%;
}
.col-md-push-11 {
left: 91.66666667%;
}
.col-md-push-10 {
left: 83.33333333%;
}
.col-md-push-9 {
left: 75%;
}
.col-md-push-8 {
left: 66.66666667%;
}
.col-md-push-7 {
left: 58.33333333%;
}
.col-md-push-6 {
left: 50%;
}
.col-md-push-5 {
left: 41.66666667%;
}
.col-md-push-4 {
left: 33.33333333%;
}
.col-md-push-3 {
left: 25%;
}
.col-md-push-2 {
left: 16.66666667%;
}
.col-md-push-1 {
left: 8.33333333%;
}
.col-md-push-0 {
left: auto;
}
.col-md-offset-12 {
margin-left: 100%;
}
.col-md-offset-11 {
margin-left: 91.66666667%;
}
.col-md-offset-10 {
margin-left: 83.33333333%;
}
.col-md-offset-9 {
margin-left: 75%;
}
.col-md-offset-8 {
margin-left: 66.66666667%;
}
.col-md-offset-7 {
margin-left: 58.33333333%;
}
.col-md-offset-6 {
margin-left: 50%;
}
.col-md-offset-5 {
margin-left: 41.66666667%;
}
.col-md-offset-4 {
margin-left: 33.33333333%;
}
.col-md-offset-3 {
margin-left: 25%;
}
.col-md-offset-2 {
margin-left: 16.66666667%;
}
.col-md-offset-1 {
margin-left: 8.33333333%;
}
.col-md-offset-0 {
margin-left: 0%;
}
}
@media (min-width: 1200px) {
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
float: left;
}
.col-lg-12 {
width: 100%;
}
.col-lg-11 {
width: 91.66666667%;
}
.col-lg-10 {
width: 83.33333333%;
}
.col-lg-9 {
width: 75%;
}
.col-lg-8 {
width: 66.66666667%;
}
.col-lg-7 {
width: 58.33333333%;
}
.col-lg-6 {
width: 50%;
}
.col-lg-5 {
width: 41.66666667%;
}
.col-lg-4 {
width: 33.33333333%;
}
.col-lg-3 {
width: 25%;
}
.col-lg-2 {
width: 16.66666667%;
}
.col-lg-1 {
width: 8.33333333%;
}
.col-lg-pull-12 {
right: 100%;
}
.col-lg-pull-11 {
right: 91.66666667%;
}
.col-lg-pull-10 {
right: 83.33333333%;
}
.col-lg-pull-9 {
right: 75%;
}
.col-lg-pull-8 {
right: 66.66666667%;
}
.col-lg-pull-7 {
right: 58.33333333%;
}
.col-lg-pull-6 {
right: 50%;
}
.col-lg-pull-5 {
right: 41.66666667%;
}
.col-lg-pull-4 {
right: 33.33333333%;
}
.col-lg-pull-3 {
right: 25%;
}
.col-lg-pull-2 {
right: 16.66666667%;
}
.col-lg-pull-1 {
right: 8.33333333%;
}
.col-lg-pull-0 {
right: auto;
}
.col-lg-push-12 {
left: 100%;
}
.col-lg-push-11 {
left: 91.66666667%;
}
.col-lg-push-10 {
left: 83.33333333%;
}
.col-lg-push-9 {
left: 75%;
}
.col-lg-push-8 {
left: 66.66666667%;
}
.col-lg-push-7 {
left: 58.33333333%;
}
.col-lg-push-6 {
left: 50%;
}
.col-lg-push-5 {
left: 41.66666667%;
}
.col-lg-push-4 {
left: 33.33333333%;
}
.col-lg-push-3 {
left: 25%;
}
.col-lg-push-2 {
left: 16.66666667%;
}
.col-lg-push-1 {
left: 8.33333333%;
}
.col-lg-push-0 {
left: auto;
}
.col-lg-offset-12 {
margin-left: 100%;
}
.col-lg-offset-11 {
margin-left: 91.66666667%;
}
.col-lg-offset-10 {
margin-left: 83.33333333%;
}
.col-lg-offset-9 {
margin-left: 75%;
}
.col-lg-offset-8 {
margin-left: 66.66666667%;
}
.col-lg-offset-7 {
margin-left: 58.33333333%;
}
.col-lg-offset-6 {
margin-left: 50%;
}
.col-lg-offset-5 {
margin-left: 41.66666667%;
}
.col-lg-offset-4 {
margin-left: 33.33333333%;
}
.col-lg-offset-3 {
margin-left: 25%;
}
.col-lg-offset-2 {
margin-left: 16.66666667%;
}
.col-lg-offset-1 {
margin-left: 8.33333333%;
}
.col-lg-offset-0 {
margin-left: 0%;
}
}
table {
background-color: transparent;
}
caption {
padding-top: 8px;
padding-bottom: 8px;
color: #bbbbbb;
text-align: left;
}
th {
text-align: left;
}
.table {
width: 100%;
max-width: 100%;
margin-bottom: 23px;
}
.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
padding: 8px;
line-height: 1.846;
vertical-align: top;
border-top: 1px solid #dddddd;
}
.table > thead > tr > th {
vertical-align: bottom;
border-bottom: 2px solid #dddddd;
}
.table > caption + thead > tr:first-child > th,
.table > colgroup + thead > tr:first-child > th,
.table > thead:first-child > tr:first-child > th,
.table > caption + thead > tr:first-child > td,
.table > colgroup + thead > tr:first-child > td,
.table > thead:first-child > tr:first-child > td {
border-top: 0;
}
.table > tbody + tbody {
border-top: 2px solid #dddddd;
}
.table .table {
background-color: #ffffff;
}
.table-condensed > thead > tr > th,
.table-condensed > tbody > tr > th,
.table-condensed > tfoot > tr > th,
.table-condensed > thead > tr > td,
.table-condensed > tbody > tr > td,
.table-condensed > tfoot > tr > td {
padding: 5px;
}
.table-bordered {
border: 1px solid #dddddd;
}
.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > td {
border: 1px solid #dddddd;
}
.table-bordered > thead > tr > th,
.table-bordered > thead > tr > td {
border-bottom-width: 2px;
}
.table-striped > tbody > tr:nth-of-type(odd) {
background-color: #f9f9f9;
}
.table-hover > tbody > tr:hover {
background-color: #f5f5f5;
}
table col[class*="col-"] {
position: static;
float: none;
display: table-column;
}
table td[class*="col-"],
table th[class*="col-"] {
position: static;
float: none;
display: table-cell;
}
.table > thead > tr > td.active,
.table > tbody > tr > td.active,
.table > tfoot > tr > td.active,
.table > thead > tr > th.active,
.table > tbody > tr > th.active,
.table > tfoot > tr > th.active,
.table > thead > tr.active > td,
.table > tbody > tr.active > td,
.table > tfoot > tr.active > td,
.table > thead > tr.active > th,
.table > tbody > tr.active > th,
.table > tfoot > tr.active > th {
background-color: #f5f5f5;
}
.table-hover > tbody > tr > td.active:hover,
.table-hover > tbody > tr > th.active:hover,
.table-hover > tbody > tr.active:hover > td,
.table-hover > tbody > tr:hover > .active,
.table-hover > tbody > tr.active:hover > th {
background-color: #e8e8e8;
}
.table > thead > tr > td.success,
.table > tbody > tr > td.success,
.table > tfoot > tr > td.success,
.table > thead > tr > th.success,
.table > tbody > tr > th.success,
.table > tfoot > tr > th.success,
.table > thead > tr.success > td,
.table > tbody > tr.success > td,
.table > tfoot > tr.success > td,
.table > thead > tr.success > th,
.table > tbody > tr.success > th,
.table > tfoot > tr.success > th {
background-color: #dff0d8;
}
.table-hover > tbody > tr > td.success:hover,
.table-hover > tbody > tr > th.success:hover,
.table-hover > tbody > tr.success:hover > td,
.table-hover > tbody > tr:hover > .success,
.table-hover > tbody > tr.success:hover > th {
background-color: #d0e9c6;
}
.table > thead > tr > td.info,
.table > tbody > tr > td.info,
.table > tfoot > tr > td.info,
.table > thead > tr > th.info,
.table > tbody > tr > th.info,
.table > tfoot > tr > th.info,
.table > thead > tr.info > td,
.table > tbody > tr.info > td,
.table > tfoot > tr.info > td,
.table > thead > tr.info > th,
.table > tbody > tr.info > th,
.table > tfoot > tr.info > th {
background-color: #e1bee7;
}
.table-hover > tbody > tr > td.info:hover,
.table-hover > tbody > tr > th.info:hover,
.table-hover > tbody > tr.info:hover > td,
.table-hover > tbody > tr:hover > .info,
.table-hover > tbody > tr.info:hover > th {
background-color: #d8abe0;
}
.table > thead > tr > td.warning,
.table > tbody > tr > td.warning,
.table > tfoot > tr > td.warning,
.table > thead > tr > th.warning,
.table > tbody > tr > th.warning,
.table > tfoot > tr > th.warning,
.table > thead > tr.warning > td,
.table > tbody > tr.warning > td,
.table > tfoot > tr.warning > td,
.table > thead > tr.warning > th,
.table > tbody > tr.warning > th,
.table > tfoot > tr.warning > th {
background-color: #ffe0b2;
}
.table-hover > tbody > tr > td.warning:hover,
.table-hover > tbody > tr > th.warning:hover,
.table-hover > tbody > tr.warning:hover > td,
.table-hover > tbody > tr:hover > .warning,
.table-hover > tbody > tr.warning:hover > th {
background-color: #ffd699;
}
.table > thead > tr > td.danger,
.table > tbody > tr > td.danger,
.table > tfoot > tr > td.danger,
.table > thead > tr > th.danger,
.table > tbody > tr > th.danger,
.table > tfoot > tr > th.danger,
.table > thead > tr.danger > td,
.table > tbody > tr.danger > td,
.table > tfoot > tr.danger > td,
.table > thead > tr.danger > th,
.table > tbody > tr.danger > th,
.table > tfoot > tr.danger > th {
background-color: #f9bdbb;
}
.table-hover > tbody > tr > td.danger:hover,
.table-hover > tbody > tr > th.danger:hover,
.table-hover > tbody > tr.danger:hover > td,
.table-hover > tbody > tr:hover > .danger,
.table-hover > tbody > tr.danger:hover > th {
background-color: #f7a6a4;
}
.table-responsive {
overflow-x: auto;
min-height: 0.01%;
}
@media screen and (max-width: 767px) {
.table-responsive {
width: 100%;
margin-bottom: 17.25px;
overflow-y: hidden;
-ms-overflow-style: -<API key>;
border: 1px solid #dddddd;
}
.table-responsive > .table {
margin-bottom: 0;
}
.table-responsive > .table > thead > tr > th,
.table-responsive > .table > tbody > tr > th,
.table-responsive > .table > tfoot > tr > th,
.table-responsive > .table > thead > tr > td,
.table-responsive > .table > tbody > tr > td,
.table-responsive > .table > tfoot > tr > td {
white-space: nowrap;
}
.table-responsive > .table-bordered {
border: 0;
}
.table-responsive > .table-bordered > thead > tr > th:first-child,
.table-responsive > .table-bordered > tbody > tr > th:first-child,
.table-responsive > .table-bordered > tfoot > tr > th:first-child,
.table-responsive > .table-bordered > thead > tr > td:first-child,
.table-responsive > .table-bordered > tbody > tr > td:first-child,
.table-responsive > .table-bordered > tfoot > tr > td:first-child {
border-left: 0;
}
.table-responsive > .table-bordered > thead > tr > th:last-child,
.table-responsive > .table-bordered > tbody > tr > th:last-child,
.table-responsive > .table-bordered > tfoot > tr > th:last-child,
.table-responsive > .table-bordered > thead > tr > td:last-child,
.table-responsive > .table-bordered > tbody > tr > td:last-child,
.table-responsive > .table-bordered > tfoot > tr > td:last-child {
border-right: 0;
}
.table-responsive > .table-bordered > tbody > tr:last-child > th,
.table-responsive > .table-bordered > tfoot > tr:last-child > th,
.table-responsive > .table-bordered > tbody > tr:last-child > td,
.table-responsive > .table-bordered > tfoot > tr:last-child > td {
border-bottom: 0;
}
}
fieldset {
padding: 0;
margin: 0;
border: 0;
min-width: 0;
}
legend {
display: block;
width: 100%;
padding: 0;
margin-bottom: 23px;
font-size: 19.5px;
line-height: inherit;
color: #212121;
border: 0;
border-bottom: 1px solid #e5e5e5;
}
label {
display: inline-block;
max-width: 100%;
margin-bottom: 5px;
font-weight: bold;
}
input[type="search"] {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
input[type="radio"],
input[type="checkbox"] {
margin: 4px 0 0;
margin-top: 1px \9;
line-height: normal;
}
input[type="file"] {
display: block;
}
input[type="range"] {
display: block;
width: 100%;
}
select[multiple],
select[size] {
height: auto;
}
input[type="file"]:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus {
outline: thin dotted;
outline: 5px auto -<API key>;
outline-offset: -2px;
}
output {
display: block;
padding-top: 7px;
font-size: 13px;
line-height: 1.846;
color: #666666;
}
.form-control {
display: block;
width: 100%;
height: 37px;
padding: 6px 16px;
font-size: 13px;
line-height: 1.846;
color: #666666;
background-color: transparent;
background-image: none;
border: 1px solid transparent;
border-radius: 3px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
-webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
-o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
.form-control:focus {
border-color: #66afe9;
outline: 0;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
}
.form-control::-moz-placeholder {
color: #bbbbbb;
opacity: 1;
}
.form-control:-<API key> {
color: #bbbbbb;
}
.form-control::-<API key> {
color: #bbbbbb;
}
.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
background-color: transparent;
opacity: 1;
}
.form-control[disabled],
fieldset[disabled] .form-control {
cursor: not-allowed;
}
textarea.form-control {
height: auto;
}
input[type="search"] {
-webkit-appearance: none;
}
@media screen and (-<API key>: 0) {
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"] {
line-height: 37px;
}
input[type="date"].input-sm,
input[type="time"].input-sm,
input[type="datetime-local"].input-sm,
input[type="month"].input-sm,
.input-group-sm input[type="date"],
.input-group-sm input[type="time"],
.input-group-sm input[type="datetime-local"],
.input-group-sm input[type="month"] {
line-height: 30px;
}
input[type="date"].input-lg,
input[type="time"].input-lg,
input[type="datetime-local"].input-lg,
input[type="month"].input-lg,
.input-group-lg input[type="date"],
.input-group-lg input[type="time"],
.input-group-lg input[type="datetime-local"],
.input-group-lg input[type="month"] {
line-height: 45px;
}
}
.form-group {
margin-bottom: 15px;
}
.radio,
.checkbox {
position: relative;
display: block;
margin-top: 10px;
margin-bottom: 10px;
}
.radio label,
.checkbox label {
min-height: 23px;
padding-left: 20px;
margin-bottom: 0;
font-weight: normal;
cursor: pointer;
}
.radio input[type="radio"],
.radio-inline input[type="radio"],
.checkbox input[type="checkbox"],
.checkbox-inline input[type="checkbox"] {
position: absolute;
margin-left: -20px;
margin-top: 4px \9;
}
.radio + .radio,
.checkbox + .checkbox {
margin-top: -5px;
}
.radio-inline,
.checkbox-inline {
position: relative;
display: inline-block;
padding-left: 20px;
margin-bottom: 0;
vertical-align: middle;
font-weight: normal;
cursor: pointer;
}
.radio-inline + .radio-inline,
.checkbox-inline + .checkbox-inline {
margin-top: 0;
margin-left: 10px;
}
input[type="radio"][disabled],
input[type="checkbox"][disabled],
input[type="radio"].disabled,
input[type="checkbox"].disabled,
fieldset[disabled] input[type="radio"],
fieldset[disabled] input[type="checkbox"] {
cursor: not-allowed;
}
.radio-inline.disabled,
.checkbox-inline.disabled,
fieldset[disabled] .radio-inline,
fieldset[disabled] .checkbox-inline {
cursor: not-allowed;
}
.radio.disabled label,
.checkbox.disabled label,
fieldset[disabled] .radio label,
fieldset[disabled] .checkbox label {
cursor: not-allowed;
}
.form-control-static {
padding-top: 7px;
padding-bottom: 7px;
margin-bottom: 0;
min-height: 36px;
}
.form-control-static.input-lg,
.form-control-static.input-sm {
padding-left: 0;
padding-right: 0;
}
.input-sm {
height: 30px;
padding: 5px 10px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
}
select.input-sm {
height: 30px;
line-height: 30px;
}
textarea.input-sm,
select[multiple].input-sm {
height: auto;
}
.form-group-sm .form-control {
height: 30px;
padding: 5px 10px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
}
select.form-group-sm .form-control {
height: 30px;
line-height: 30px;
}
textarea.form-group-sm .form-control,
select[multiple].form-group-sm .form-control {
height: auto;
}
.form-group-sm .form-control-static {
height: 30px;
padding: 5px 10px;
font-size: 12px;
line-height: 1.5;
min-height: 35px;
}
.input-lg {
height: 45px;
padding: 10px 16px;
font-size: 17px;
line-height: 1.3333333;
border-radius: 3px;
}
select.input-lg {
height: 45px;
line-height: 45px;
}
textarea.input-lg,
select[multiple].input-lg {
height: auto;
}
.form-group-lg .form-control {
height: 45px;
padding: 10px 16px;
font-size: 17px;
line-height: 1.3333333;
border-radius: 3px;
}
select.form-group-lg .form-control {
height: 45px;
line-height: 45px;
}
textarea.form-group-lg .form-control,
select[multiple].form-group-lg .form-control {
height: auto;
}
.form-group-lg .form-control-static {
height: 45px;
padding: 10px 16px;
font-size: 17px;
line-height: 1.3333333;
min-height: 40px;
}
.has-feedback {
position: relative;
}
.has-feedback .form-control {
padding-right: 46.25px;
}
.<API key> {
position: absolute;
top: 0;
right: 0;
z-index: 2;
display: block;
width: 37px;
height: 37px;
line-height: 37px;
text-align: center;
pointer-events: none;
}
.input-lg + .<API key> {
width: 45px;
height: 45px;
line-height: 45px;
}
.input-sm + .<API key> {
width: 30px;
height: 30px;
line-height: 30px;
}
.has-success .help-block,
.has-success .control-label,
.has-success .radio,
.has-success .checkbox,
.has-success .radio-inline,
.has-success .checkbox-inline,
.has-success.radio label,
.has-success.checkbox label,
.has-success.radio-inline label,
.has-success.checkbox-inline label {
color: #4caf50;
}
.has-success .form-control {
border-color: #4caf50;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
.has-success .form-control:focus {
border-color: #3d8b40;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #92cf94;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #92cf94;
}
.has-success .input-group-addon {
color: #4caf50;
border-color: #4caf50;
background-color: #dff0d8;
}
.has-success .<API key> {
color: #4caf50;
}
.has-warning .help-block,
.has-warning .control-label,
.has-warning .radio,
.has-warning .checkbox,
.has-warning .radio-inline,
.has-warning .checkbox-inline,
.has-warning.radio label,
.has-warning.checkbox label,
.has-warning.radio-inline label,
.has-warning.checkbox-inline label {
color: #ff9800;
}
.has-warning .form-control {
border-color: #ff9800;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
.has-warning .form-control:focus {
border-color: #cc7a00;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffc166;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffc166;
}
.has-warning .input-group-addon {
color: #ff9800;
border-color: #ff9800;
background-color: #ffe0b2;
}
.has-warning .<API key> {
color: #ff9800;
}
.has-error .help-block,
.has-error .control-label,
.has-error .radio,
.has-error .checkbox,
.has-error .radio-inline,
.has-error .checkbox-inline,
.has-error.radio label,
.has-error.checkbox label,
.has-error.radio-inline label,
.has-error.checkbox-inline label {
color: #e51c23;
}
.has-error .form-control {
border-color: #e51c23;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
.has-error .form-control:focus {
border-color: #b9151b;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ef787c;
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ef787c;
}
.has-error .input-group-addon {
color: #e51c23;
border-color: #e51c23;
background-color: #f9bdbb;
}
.has-error .<API key> {
color: #e51c23;
}
.has-feedback label ~ .<API key> {
top: 28px;
}
.has-feedback label.sr-only ~ .<API key> {
top: 0;
}
.help-block {
display: block;
margin-top: 5px;
margin-bottom: 10px;
color: #a6a6a6;
}
@media (min-width: 768px) {
.form-inline .form-group {
display: inline-block;
margin-bottom: 0;
vertical-align: middle;
}
.form-inline .form-control {
display: inline-block;
width: auto;
vertical-align: middle;
}
.form-inline .form-control-static {
display: inline-block;
}
.form-inline .input-group {
display: inline-table;
vertical-align: middle;
}
.form-inline .input-group .input-group-addon,
.form-inline .input-group .input-group-btn,
.form-inline .input-group .form-control {
width: auto;
}
.form-inline .input-group > .form-control {
width: 100%;
}
.form-inline .control-label {
margin-bottom: 0;
vertical-align: middle;
}
.form-inline .radio,
.form-inline .checkbox {
display: inline-block;
margin-top: 0;
margin-bottom: 0;
vertical-align: middle;
}
.form-inline .radio label,
.form-inline .checkbox label {
padding-left: 0;
}
.form-inline .radio input[type="radio"],
.form-inline .checkbox input[type="checkbox"] {
position: relative;
margin-left: 0;
}
.form-inline .has-feedback .<API key> {
top: 0;
}
}
.form-horizontal .radio,
.form-horizontal .checkbox,
.form-horizontal .radio-inline,
.form-horizontal .checkbox-inline {
margin-top: 0;
margin-bottom: 0;
padding-top: 7px;
}
.form-horizontal .radio,
.form-horizontal .checkbox {
min-height: 30px;
}
.form-horizontal .form-group {
margin-left: -15px;
margin-right: -15px;
}
@media (min-width: 768px) {
.form-horizontal .control-label {
text-align: right;
margin-bottom: 0;
padding-top: 7px;
}
}
.form-horizontal .has-feedback .<API key> {
right: 15px;
}
@media (min-width: 768px) {
.form-horizontal .form-group-lg .control-label {
padding-top: 14.333333px;
}
}
@media (min-width: 768px) {
.form-horizontal .form-group-sm .control-label {
padding-top: 6px;
}
}
.btn {
display: inline-block;
margin-bottom: 0;
font-weight: normal;
text-align: center;
vertical-align: middle;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
background-image: none;
border: 1px solid transparent;
white-space: nowrap;
padding: 6px 16px;
font-size: 13px;
line-height: 1.846;
border-radius: 3px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.btn:focus,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus {
outline: thin dotted;
outline: 5px auto -<API key>;
outline-offset: -2px;
}
.btn:hover,
.btn:focus,
.btn.focus {
color: #666666;
text-decoration: none;
}
.btn:active,
.btn.active {
outline: 0;
background-image: none;
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}
.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn {
cursor: not-allowed;
pointer-events: none;
opacity: 0.65;
filter: alpha(opacity=65);
-webkit-box-shadow: none;
box-shadow: none;
}
.btn-default {
color: #666666;
background-color: #ffffff;
border-color: #eeeeee;
}
.btn-default:hover,
.btn-default:focus,
.btn-default.focus,
.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
color: #666666;
background-color: #e6e6e6;
border-color: #cfcfcf;
}
.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
background-image: none;
}
.btn-default.disabled,
.btn-default[disabled],
fieldset[disabled] .btn-default,
.btn-default.disabled:hover,
.btn-default[disabled]:hover,
fieldset[disabled] .btn-default:hover,
.btn-default.disabled:focus,
.btn-default[disabled]:focus,
fieldset[disabled] .btn-default:focus,
.btn-default.disabled.focus,
.btn-default[disabled].focus,
fieldset[disabled] .btn-default.focus,
.btn-default.disabled:active,
.btn-default[disabled]:active,
fieldset[disabled] .btn-default:active,
.btn-default.disabled.active,
.btn-default[disabled].active,
fieldset[disabled] .btn-default.active {
background-color: #ffffff;
border-color: #eeeeee;
}
.btn-default .badge {
color: #ffffff;
background-color: #666666;
}
.btn-primary {
color: #ffffff;
background-color: #2196f3;
border-color: transparent;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
color: #ffffff;
background-color: #0c7cd5;
border-color: rgba(0, 0, 0, 0);
}
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
background-image: none;
}
.btn-primary.disabled,
.btn-primary[disabled],
fieldset[disabled] .btn-primary,
.btn-primary.disabled:hover,
.btn-primary[disabled]:hover,
fieldset[disabled] .btn-primary:hover,
.btn-primary.disabled:focus,
.btn-primary[disabled]:focus,
fieldset[disabled] .btn-primary:focus,
.btn-primary.disabled.focus,
.btn-primary[disabled].focus,
fieldset[disabled] .btn-primary.focus,
.btn-primary.disabled:active,
.btn-primary[disabled]:active,
fieldset[disabled] .btn-primary:active,
.btn-primary.disabled.active,
.btn-primary[disabled].active,
fieldset[disabled] .btn-primary.active {
background-color: #2196f3;
border-color: transparent;
}
.btn-primary .badge {
color: #2196f3;
background-color: #ffffff;
}
.btn-success {
color: #ffffff;
background-color: #4caf50;
border-color: transparent;
}
.btn-success:hover,
.btn-success:focus,
.btn-success.focus,
.btn-success:active,
.btn-success.active,
.open > .dropdown-toggle.btn-success {
color: #ffffff;
background-color: #3d8b40;
border-color: rgba(0, 0, 0, 0);
}
.btn-success:active,
.btn-success.active,
.open > .dropdown-toggle.btn-success {
background-image: none;
}
.btn-success.disabled,
.btn-success[disabled],
fieldset[disabled] .btn-success,
.btn-success.disabled:hover,
.btn-success[disabled]:hover,
fieldset[disabled] .btn-success:hover,
.btn-success.disabled:focus,
.btn-success[disabled]:focus,
fieldset[disabled] .btn-success:focus,
.btn-success.disabled.focus,
.btn-success[disabled].focus,
fieldset[disabled] .btn-success.focus,
.btn-success.disabled:active,
.btn-success[disabled]:active,
fieldset[disabled] .btn-success:active,
.btn-success.disabled.active,
.btn-success[disabled].active,
fieldset[disabled] .btn-success.active {
background-color: #4caf50;
border-color: transparent;
}
.btn-success .badge {
color: #4caf50;
background-color: #ffffff;
}
.btn-info {
color: #ffffff;
background-color: #9c27b0;
border-color: transparent;
}
.btn-info:hover,
.btn-info:focus,
.btn-info.focus,
.btn-info:active,
.btn-info.active,
.open > .dropdown-toggle.btn-info {
color: #ffffff;
background-color: #771e86;
border-color: rgba(0, 0, 0, 0);
}
.btn-info:active,
.btn-info.active,
.open > .dropdown-toggle.btn-info {
background-image: none;
}
.btn-info.disabled,
.btn-info[disabled],
fieldset[disabled] .btn-info,
.btn-info.disabled:hover,
.btn-info[disabled]:hover,
fieldset[disabled] .btn-info:hover,
.btn-info.disabled:focus,
.btn-info[disabled]:focus,
fieldset[disabled] .btn-info:focus,
.btn-info.disabled.focus,
.btn-info[disabled].focus,
fieldset[disabled] .btn-info.focus,
.btn-info.disabled:active,
.btn-info[disabled]:active,
fieldset[disabled] .btn-info:active,
.btn-info.disabled.active,
.btn-info[disabled].active,
fieldset[disabled] .btn-info.active {
background-color: #9c27b0;
border-color: transparent;
}
.btn-info .badge {
color: #9c27b0;
background-color: #ffffff;
}
.btn-warning {
color: #ffffff;
background-color: #ff9800;
border-color: transparent;
}
.btn-warning:hover,
.btn-warning:focus,
.btn-warning.focus,
.btn-warning:active,
.btn-warning.active,
.open > .dropdown-toggle.btn-warning {
color: #ffffff;
background-color: #cc7a00;
border-color: rgba(0, 0, 0, 0);
}
.btn-warning:active,
.btn-warning.active,
.open > .dropdown-toggle.btn-warning {
background-image: none;
}
.btn-warning.disabled,
.btn-warning[disabled],
fieldset[disabled] .btn-warning,
.btn-warning.disabled:hover,
.btn-warning[disabled]:hover,
fieldset[disabled] .btn-warning:hover,
.btn-warning.disabled:focus,
.btn-warning[disabled]:focus,
fieldset[disabled] .btn-warning:focus,
.btn-warning.disabled.focus,
.btn-warning[disabled].focus,
fieldset[disabled] .btn-warning.focus,
.btn-warning.disabled:active,
.btn-warning[disabled]:active,
fieldset[disabled] .btn-warning:active,
.btn-warning.disabled.active,
.btn-warning[disabled].active,
fieldset[disabled] .btn-warning.active {
background-color: #ff9800;
border-color: transparent;
}
.btn-warning .badge {
color: #ff9800;
background-color: #ffffff;
}
.btn-danger {
color: #ffffff;
background-color: #e51c23;
border-color: transparent;
}
.btn-danger:hover,
.btn-danger:focus,
.btn-danger.focus,
.btn-danger:active,
.btn-danger.active,
.open > .dropdown-toggle.btn-danger {
color: #ffffff;
background-color: #b9151b;
border-color: rgba(0, 0, 0, 0);
}
.btn-danger:active,
.btn-danger.active,
.open > .dropdown-toggle.btn-danger {
background-image: none;
}
.btn-danger.disabled,
.btn-danger[disabled],
fieldset[disabled] .btn-danger,
.btn-danger.disabled:hover,
.btn-danger[disabled]:hover,
fieldset[disabled] .btn-danger:hover,
.btn-danger.disabled:focus,
.btn-danger[disabled]:focus,
fieldset[disabled] .btn-danger:focus,
.btn-danger.disabled.focus,
.btn-danger[disabled].focus,
fieldset[disabled] .btn-danger.focus,
.btn-danger.disabled:active,
.btn-danger[disabled]:active,
fieldset[disabled] .btn-danger:active,
.btn-danger.disabled.active,
.btn-danger[disabled].active,
fieldset[disabled] .btn-danger.active {
background-color: #e51c23;
border-color: transparent;
}
.btn-danger .badge {
color: #e51c23;
background-color: #ffffff;
}
.btn-link {
color: #2196f3;
font-weight: normal;
border-radius: 0;
}
.btn-link,
.btn-link:active,
.btn-link.active,
.btn-link[disabled],
fieldset[disabled] .btn-link {
background-color: transparent;
-webkit-box-shadow: none;
box-shadow: none;
}
.btn-link,
.btn-link:hover,
.btn-link:focus,
.btn-link:active {
border-color: transparent;
}
.btn-link:hover,
.btn-link:focus {
color: #0a6ebd;
text-decoration: underline;
background-color: transparent;
}
.btn-link[disabled]:hover,
fieldset[disabled] .btn-link:hover,
.btn-link[disabled]:focus,
fieldset[disabled] .btn-link:focus {
color: #bbbbbb;
text-decoration: none;
}
.btn-lg,
.btn-group-lg > .btn {
padding: 10px 16px;
font-size: 17px;
line-height: 1.3333333;
border-radius: 3px;
}
.btn-sm,
.btn-group-sm > .btn {
padding: 5px 10px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
}
.btn-xs,
.btn-group-xs > .btn {
padding: 1px 5px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
}
.btn-block {
display: block;
width: 100%;
}
.btn-block + .btn-block {
margin-top: 5px;
}
input[type="submit"].btn-block,
input[type="reset"].btn-block,
input[type="button"].btn-block {
width: 100%;
}
.fade {
opacity: 0;
-webkit-transition: opacity 0.15s linear;
-o-transition: opacity 0.15s linear;
transition: opacity 0.15s linear;
}
.fade.in {
opacity: 1;
}
.collapse {
display: none;
}
.collapse.in {
display: block;
}
tr.collapse.in {
display: table-row;
}
tbody.collapse.in {
display: table-row-group;
}
.collapsing {
position: relative;
height: 0;
overflow: hidden;
-<API key>: height, visibility;
-<API key>: height, visibility;
transition-property: height, visibility;
-<API key>: 0.35s;
-<API key>: 0.35s;
transition-duration: 0.35s;
-<API key>: ease;
-<API key>: ease;
<API key>: ease;
}
.caret {
display: inline-block;
width: 0;
height: 0;
margin-left: 2px;
vertical-align: middle;
border-top: 4px dashed;
border-right: 4px solid transparent;
border-left: 4px solid transparent;
}
.dropup,
.dropdown {
position: relative;
}
.dropdown-toggle:focus {
outline: 0;
}
.dropdown-menu {
position: absolute;
top: 100%;
left: 0;
z-index: 1000;
display: none;
float: left;
min-width: 160px;
padding: 5px 0;
margin: 2px 0 0;
list-style: none;
font-size: 13px;
text-align: left;
background-color: #ffffff;
border: 1px solid #cccccc;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 3px;
-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
-<API key>: padding-box;
background-clip: padding-box;
}
.dropdown-menu.pull-right {
right: 0;
left: auto;
}
.dropdown-menu .divider {
height: 1px;
margin: 10.5px 0;
overflow: hidden;
background-color: #e5e5e5;
}
.dropdown-menu > li > a {
display: block;
padding: 3px 20px;
clear: both;
font-weight: normal;
line-height: 1.846;
color: #666666;
white-space: nowrap;
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
text-decoration: none;
color: #141414;
background-color: #eeeeee;
}
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
color: #ffffff;
text-decoration: none;
outline: 0;
background-color: #2196f3;
}
.dropdown-menu > .disabled > a,
.dropdown-menu > .disabled > a:hover,
.dropdown-menu > .disabled > a:focus {
color: #bbbbbb;
}
.dropdown-menu > .disabled > a:hover,
.dropdown-menu > .disabled > a:focus {
text-decoration: none;
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
cursor: not-allowed;
}
.open > .dropdown-menu {
display: block;
}
.open > a {
outline: 0;
}
.dropdown-menu-right {
left: auto;
right: 0;
}
.dropdown-menu-left {
left: 0;
right: auto;
}
.dropdown-header {
display: block;
padding: 3px 20px;
font-size: 12px;
line-height: 1.846;
color: #bbbbbb;
white-space: nowrap;
}
.dropdown-backdrop {
position: fixed;
left: 0;
right: 0;
bottom: 0;
top: 0;
z-index: 990;
}
.pull-right > .dropdown-menu {
right: 0;
left: auto;
}
.dropup .caret,
.navbar-fixed-bottom .dropdown .caret {
border-top: 0;
border-bottom: 4px solid;
content: "";
}
.dropup .dropdown-menu,
.navbar-fixed-bottom .dropdown .dropdown-menu {
top: auto;
bottom: 100%;
margin-bottom: 2px;
}
@media (min-width: 768px) {
.navbar-right .dropdown-menu {
left: auto;
right: 0;
}
.navbar-right .dropdown-menu-left {
left: 0;
right: auto;
}
}
.btn-group,
.btn-group-vertical {
position: relative;
display: inline-block;
vertical-align: middle;
}
.btn-group > .btn,
.btn-group-vertical > .btn {
position: relative;
float: left;
}
.btn-group > .btn:hover,
.btn-group-vertical > .btn:hover,
.btn-group > .btn:focus,
.btn-group-vertical > .btn:focus,
.btn-group > .btn:active,
.btn-group-vertical > .btn:active,
.btn-group > .btn.active,
.btn-group-vertical > .btn.active {
z-index: 2;
}
.btn-group .btn + .btn,
.btn-group .btn + .btn-group,
.btn-group .btn-group + .btn,
.btn-group .btn-group + .btn-group {
margin-left: -1px;
}
.btn-toolbar {
margin-left: -5px;
}
.btn-toolbar .btn-group,
.btn-toolbar .input-group {
float: left;
}
.btn-toolbar > .btn,
.btn-toolbar > .btn-group,
.btn-toolbar > .input-group {
margin-left: 5px;
}
.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
border-radius: 0;
}
.btn-group > .btn:first-child {
margin-left: 0;
}
.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
<API key>: 0;
<API key>: 0;
}
.btn-group > .btn:last-child:not(:first-child),
.btn-group > .dropdown-toggle:not(:first-child) {
<API key>: 0;
<API key>: 0;
}
.btn-group > .btn-group {
float: left;
}
.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
border-radius: 0;
}
.btn-group > .btn-group:first-child:not(:last-child) > .btn:last-child,
.btn-group > .btn-group:first-child:not(:last-child) > .dropdown-toggle {
<API key>: 0;
<API key>: 0;
}
.btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {
<API key>: 0;
<API key>: 0;
}
.btn-group .dropdown-toggle:active,
.btn-group.open .dropdown-toggle {
outline: 0;
}
.btn-group > .btn + .dropdown-toggle {
padding-left: 8px;
padding-right: 8px;
}
.btn-group > .btn-lg + .dropdown-toggle {
padding-left: 12px;
padding-right: 12px;
}
.btn-group.open .dropdown-toggle {
-webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}
.btn-group.open .dropdown-toggle.btn-link {
-webkit-box-shadow: none;
box-shadow: none;
}
.btn .caret {
margin-left: 0;
}
.btn-lg .caret {
border-width: 5px 5px 0;
border-bottom-width: 0;
}
.dropup .btn-lg .caret {
border-width: 0 5px 5px;
}
.btn-group-vertical > .btn,
.btn-group-vertical > .btn-group,
.btn-group-vertical > .btn-group > .btn {
display: block;
float: none;
width: 100%;
max-width: 100%;
}
.btn-group-vertical > .btn-group > .btn {
float: none;
}
.btn-group-vertical > .btn + .btn,
.btn-group-vertical > .btn + .btn-group,
.btn-group-vertical > .btn-group + .btn,
.btn-group-vertical > .btn-group + .btn-group {
margin-top: -1px;
margin-left: 0;
}
.btn-group-vertical > .btn:not(:first-child):not(:last-child) {
border-radius: 0;
}
.btn-group-vertical > .btn:first-child:not(:last-child) {
<API key>: 3px;
<API key>: 0;
<API key>: 0;
}
.btn-group-vertical > .btn:last-child:not(:first-child) {
<API key>: 3px;
<API key>: 0;
<API key>: 0;
}
.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
border-radius: 0;
}
.btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child,
.btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle {
<API key>: 0;
<API key>: 0;
}
.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {
<API key>: 0;
<API key>: 0;
}
.btn-group-justified {
display: table;
width: 100%;
table-layout: fixed;
border-collapse: separate;
}
.btn-group-justified > .btn,
.btn-group-justified > .btn-group {
float: none;
display: table-cell;
width: 1%;
}
.btn-group-justified > .btn-group .btn {
width: 100%;
}
.btn-group-justified > .btn-group .dropdown-menu {
left: auto;
}
[data-toggle="buttons"] > .btn input[type="radio"],
[data-toggle="buttons"] > .btn-group > .btn input[type="radio"],
[data-toggle="buttons"] > .btn input[type="checkbox"],
[data-toggle="buttons"] > .btn-group > .btn input[type="checkbox"] {
position: absolute;
clip: rect(0, 0, 0, 0);
pointer-events: none;
}
.input-group {
position: relative;
display: table;
border-collapse: separate;
}
.input-group[class*="col-"] {
float: none;
padding-left: 0;
padding-right: 0;
}
.input-group .form-control {
position: relative;
z-index: 2;
float: left;
width: 100%;
margin-bottom: 0;
}
.input-group-lg > .form-control,
.input-group-lg > .input-group-addon,
.input-group-lg > .input-group-btn > .btn {
height: 45px;
padding: 10px 16px;
font-size: 17px;
line-height: 1.3333333;
border-radius: 3px;
}
select.input-group-lg > .form-control,
select.input-group-lg > .input-group-addon,
select.input-group-lg > .input-group-btn > .btn {
height: 45px;
line-height: 45px;
}
textarea.input-group-lg > .form-control,
textarea.input-group-lg > .input-group-addon,
textarea.input-group-lg > .input-group-btn > .btn,
select[multiple].input-group-lg > .form-control,
select[multiple].input-group-lg > .input-group-addon,
select[multiple].input-group-lg > .input-group-btn > .btn {
height: auto;
}
.input-group-sm > .form-control,
.input-group-sm > .input-group-addon,
.input-group-sm > .input-group-btn > .btn {
height: 30px;
padding: 5px 10px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
}
select.input-group-sm > .form-control,
select.input-group-sm > .input-group-addon,
select.input-group-sm > .input-group-btn > .btn {
height: 30px;
line-height: 30px;
}
textarea.input-group-sm > .form-control,
textarea.input-group-sm > .input-group-addon,
textarea.input-group-sm > .input-group-btn > .btn,
select[multiple].input-group-sm > .form-control,
select[multiple].input-group-sm > .input-group-addon,
select[multiple].input-group-sm > .input-group-btn > .btn {
height: auto;
}
.input-group-addon,
.input-group-btn,
.input-group .form-control {
display: table-cell;
}
.input-group-addon:not(:first-child):not(:last-child),
.input-group-btn:not(:first-child):not(:last-child),
.input-group .form-control:not(:first-child):not(:last-child) {
border-radius: 0;
}
.input-group-addon,
.input-group-btn {
width: 1%;
white-space: nowrap;
vertical-align: middle;
}
.input-group-addon {
padding: 6px 16px;
font-size: 13px;
font-weight: normal;
line-height: 1;
color: #666666;
text-align: center;
background-color: transparent;
border: 1px solid transparent;
border-radius: 3px;
}
.input-group-addon.input-sm {
padding: 5px 10px;
font-size: 12px;
border-radius: 3px;
}
.input-group-addon.input-lg {
padding: 10px 16px;
font-size: 17px;
border-radius: 3px;
}
.input-group-addon input[type="radio"],
.input-group-addon input[type="checkbox"] {
margin-top: 0;
}
.input-group .form-control:first-child,
.input-group-addon:first-child,
.input-group-btn:first-child > .btn,
.input-group-btn:first-child > .btn-group > .btn,
.input-group-btn:first-child > .dropdown-toggle,
.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle),
.input-group-btn:last-child > .btn-group:not(:last-child) > .btn {
<API key>: 0;
<API key>: 0;
}
.input-group-addon:first-child {
border-right: 0;
}
.input-group .form-control:last-child,
.input-group-addon:last-child,
.input-group-btn:last-child > .btn,
.input-group-btn:last-child > .btn-group > .btn,
.input-group-btn:last-child > .dropdown-toggle,
.input-group-btn:first-child > .btn:not(:first-child),
.input-group-btn:first-child > .btn-group:not(:first-child) > .btn {
<API key>: 0;
<API key>: 0;
}
.input-group-addon:last-child {
border-left: 0;
}
.input-group-btn {
position: relative;
font-size: 0;
white-space: nowrap;
}
.input-group-btn > .btn {
position: relative;
}
.input-group-btn > .btn + .btn {
margin-left: -1px;
}
.input-group-btn > .btn:hover,
.input-group-btn > .btn:focus,
.input-group-btn > .btn:active {
z-index: 2;
}
.input-group-btn:first-child > .btn,
.input-group-btn:first-child > .btn-group {
margin-right: -1px;
}
.input-group-btn:last-child > .btn,
.input-group-btn:last-child > .btn-group {
margin-left: -1px;
}
.nav {
margin-bottom: 0;
padding-left: 0;
list-style: none;
}
.nav > li {
position: relative;
display: block;
}
.nav > li > a {
position: relative;
display: block;
padding: 10px 15px;
}
.nav > li > a:hover,
.nav > li > a:focus {
text-decoration: none;
background-color: #eeeeee;
}
.nav > li.disabled > a {
color: #bbbbbb;
}
.nav > li.disabled > a:hover,
.nav > li.disabled > a:focus {
color: #bbbbbb;
text-decoration: none;
background-color: transparent;
cursor: not-allowed;
}
.nav .open > a,
.nav .open > a:hover,
.nav .open > a:focus {
background-color: #eeeeee;
border-color: #2196f3;
}
.nav .nav-divider {
height: 1px;
margin: 10.5px 0;
overflow: hidden;
background-color: #e5e5e5;
}
.nav > li > a > img {
max-width: none;
}
.nav-tabs {
border-bottom: 1px solid transparent;
}
.nav-tabs > li {
float: left;
margin-bottom: -1px;
}
.nav-tabs > li > a {
margin-right: 2px;
line-height: 1.846;
border: 1px solid transparent;
border-radius: 3px 3px 0 0;
}
.nav-tabs > li > a:hover {
border-color: #eeeeee #eeeeee transparent;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
color: #666666;
background-color: transparent;
border: 1px solid transparent;
border-bottom-color: transparent;
cursor: default;
}
.nav-tabs.nav-justified {
width: 100%;
border-bottom: 0;
}
.nav-tabs.nav-justified > li {
float: none;
}
.nav-tabs.nav-justified > li > a {
text-align: center;
margin-bottom: 5px;
}
.nav-tabs.nav-justified > .dropdown .dropdown-menu {
top: auto;
left: auto;
}
@media (min-width: 768px) {
.nav-tabs.nav-justified > li {
display: table-cell;
width: 1%;
}
.nav-tabs.nav-justified > li > a {
margin-bottom: 0;
}
}
.nav-tabs.nav-justified > li > a {
margin-right: 0;
border-radius: 3px;
}
.nav-tabs.nav-justified > .active > a,
.nav-tabs.nav-justified > .active > a:hover,
.nav-tabs.nav-justified > .active > a:focus {
border: 1px solid transparent;
}
@media (min-width: 768px) {
.nav-tabs.nav-justified > li > a {
border-bottom: 1px solid transparent;
border-radius: 3px 3px 0 0;
}
.nav-tabs.nav-justified > .active > a,
.nav-tabs.nav-justified > .active > a:hover,
.nav-tabs.nav-justified > .active > a:focus {
border-bottom-color: #ffffff;
}
}
.nav-pills > li {
float: left;
}
.nav-pills > li > a {
border-radius: 3px;
}
.nav-pills > li + li {
margin-left: 2px;
}
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
color: #ffffff;
background-color: #2196f3;
}
.nav-stacked > li {
float: none;
}
.nav-stacked > li + li {
margin-top: 2px;
margin-left: 0;
}
.nav-justified {
width: 100%;
}
.nav-justified > li {
float: none;
}
.nav-justified > li > a {
text-align: center;
margin-bottom: 5px;
}
.nav-justified > .dropdown .dropdown-menu {
top: auto;
left: auto;
}
@media (min-width: 768px) {
.nav-justified > li {
display: table-cell;
width: 1%;
}
.nav-justified > li > a {
margin-bottom: 0;
}
}
.nav-tabs-justified {
border-bottom: 0;
}
.nav-tabs-justified > li > a {
margin-right: 0;
border-radius: 3px;
}
.nav-tabs-justified > .active > a,
.nav-tabs-justified > .active > a:hover,
.nav-tabs-justified > .active > a:focus {
border: 1px solid transparent;
}
@media (min-width: 768px) {
.nav-tabs-justified > li > a {
border-bottom: 1px solid transparent;
border-radius: 3px 3px 0 0;
}
.nav-tabs-justified > .active > a,
.nav-tabs-justified > .active > a:hover,
.nav-tabs-justified > .active > a:focus {
border-bottom-color: #ffffff;
}
}
.tab-content > .tab-pane {
display: none;
}
.tab-content > .active {
display: block;
}
.nav-tabs .dropdown-menu {
margin-top: -1px;
<API key>: 0;
<API key>: 0;
}
.navbar {
position: relative;
min-height: 64px;
margin-bottom: 23px;
border: 1px solid transparent;
}
@media (min-width: 768px) {
.navbar {
border-radius: 3px;
}
}
@media (min-width: 768px) {
.navbar-header {
float: left;
}
}
.navbar-collapse {
overflow-x: visible;
padding-right: 15px;
padding-left: 15px;
border-top: 1px solid transparent;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
-<API key>: touch;
}
.navbar-collapse.in {
overflow-y: auto;
}
@media (min-width: 768px) {
.navbar-collapse {
width: auto;
border-top: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.navbar-collapse.collapse {
display: block !important;
height: auto !important;
padding-bottom: 0;
overflow: visible !important;
}
.navbar-collapse.in {
overflow-y: visible;
}
.navbar-fixed-top .navbar-collapse,
.navbar-static-top .navbar-collapse,
.navbar-fixed-bottom .navbar-collapse {
padding-left: 0;
padding-right: 0;
}
}
.navbar-fixed-top .navbar-collapse,
.navbar-fixed-bottom .navbar-collapse {
max-height: 340px;
}
@media (max-device-width: 480px) and (orientation: landscape) {
.navbar-fixed-top .navbar-collapse,
.navbar-fixed-bottom .navbar-collapse {
max-height: 200px;
}
}
.container > .navbar-header,
.container-fluid > .navbar-header,
.container > .navbar-collapse,
.container-fluid > .navbar-collapse {
margin-right: -15px;
margin-left: -15px;
}
@media (min-width: 768px) {
.container > .navbar-header,
.container-fluid > .navbar-header,
.container > .navbar-collapse,
.container-fluid > .navbar-collapse {
margin-right: 0;
margin-left: 0;
}
}
.navbar-static-top {
z-index: 1000;
border-width: 0 0 1px;
}
@media (min-width: 768px) {
.navbar-static-top {
border-radius: 0;
}
}
.navbar-fixed-top,
.navbar-fixed-bottom {
position: fixed;
right: 0;
left: 0;
z-index: 1030;
}
@media (min-width: 768px) {
.navbar-fixed-top,
.navbar-fixed-bottom {
border-radius: 0;
}
}
.navbar-fixed-top {
top: 0;
border-width: 0 0 1px;
}
.navbar-fixed-bottom {
bottom: 0;
margin-bottom: 0;
border-width: 1px 0 0;
}
.navbar-brand {
float: left;
padding: 20.5px 15px;
font-size: 17px;
line-height: 23px;
height: 64px;
}
.navbar-brand:hover,
.navbar-brand:focus {
text-decoration: none;
}
.navbar-brand > img {
display: block;
}
@media (min-width: 768px) {
.navbar > .container .navbar-brand,
.navbar > .container-fluid .navbar-brand {
margin-left: -15px;
}
}
.navbar-toggle {
position: relative;
float: right;
margin-right: 15px;
padding: 9px 10px;
margin-top: 15px;
margin-bottom: 15px;
background-color: transparent;
background-image: none;
border: 1px solid transparent;
border-radius: 3px;
}
.navbar-toggle:focus {
outline: 0;
}
.navbar-toggle .icon-bar {
display: block;
width: 22px;
height: 2px;
border-radius: 1px;
}
.navbar-toggle .icon-bar + .icon-bar {
margin-top: 4px;
}
@media (min-width: 768px) {
.navbar-toggle {
display: none;
}
}
.navbar-nav {
margin: 10.25px -15px;
}
.navbar-nav > li > a {
padding-top: 10px;
padding-bottom: 10px;
line-height: 23px;
}
@media (max-width: 767px) {
.navbar-nav .open .dropdown-menu {
position: static;
float: none;
width: auto;
margin-top: 0;
background-color: transparent;
border: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.navbar-nav .open .dropdown-menu > li > a,
.navbar-nav .open .dropdown-menu .dropdown-header {
padding: 5px 15px 5px 25px;
}
.navbar-nav .open .dropdown-menu > li > a {
line-height: 23px;
}
.navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-nav .open .dropdown-menu > li > a:focus {
background-image: none;
}
}
@media (min-width: 768px) {
.navbar-nav {
float: left;
margin: 0;
}
.navbar-nav > li {
float: left;
}
.navbar-nav > li > a {
padding-top: 20.5px;
padding-bottom: 20.5px;
}
}
.navbar-form {
margin-left: -15px;
margin-right: -15px;
padding: 10px 15px;
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1);
margin-top: 13.5px;
margin-bottom: 13.5px;
}
@media (min-width: 768px) {
.navbar-form .form-group {
display: inline-block;
margin-bottom: 0;
vertical-align: middle;
}
.navbar-form .form-control {
display: inline-block;
width: auto;
vertical-align: middle;
}
.navbar-form .form-control-static {
display: inline-block;
}
.navbar-form .input-group {
display: inline-table;
vertical-align: middle;
}
.navbar-form .input-group .input-group-addon,
.navbar-form .input-group .input-group-btn,
.navbar-form .input-group .form-control {
width: auto;
}
.navbar-form .input-group > .form-control {
width: 100%;
}
.navbar-form .control-label {
margin-bottom: 0;
vertical-align: middle;
}
.navbar-form .radio,
.navbar-form .checkbox {
display: inline-block;
margin-top: 0;
margin-bottom: 0;
vertical-align: middle;
}
.navbar-form .radio label,
.navbar-form .checkbox label {
padding-left: 0;
}
.navbar-form .radio input[type="radio"],
.navbar-form .checkbox input[type="checkbox"] {
position: relative;
margin-left: 0;
}
.navbar-form .has-feedback .<API key> {
top: 0;
}
}
@media (max-width: 767px) {
.navbar-form .form-group {
margin-bottom: 5px;
}
.navbar-form .form-group:last-child {
margin-bottom: 0;
}
}
@media (min-width: 768px) {
.navbar-form {
width: auto;
border: 0;
margin-left: 0;
margin-right: 0;
padding-top: 0;
padding-bottom: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
}
.navbar-nav > li > .dropdown-menu {
margin-top: 0;
<API key>: 0;
<API key>: 0;
}
.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
margin-bottom: 0;
<API key>: 3px;
<API key>: 3px;
<API key>: 0;
<API key>: 0;
}
.navbar-btn {
margin-top: 13.5px;
margin-bottom: 13.5px;
}
.navbar-btn.btn-sm {
margin-top: 17px;
margin-bottom: 17px;
}
.navbar-btn.btn-xs {
margin-top: 21px;
margin-bottom: 21px;
}
.navbar-text {
margin-top: 20.5px;
margin-bottom: 20.5px;
}
@media (min-width: 768px) {
.navbar-text {
float: left;
margin-left: 15px;
margin-right: 15px;
}
}
@media (min-width: 768px) {
.navbar-left {
float: left !important;
}
.navbar-right {
float: right !important;
margin-right: -15px;
}
.navbar-right ~ .navbar-right {
margin-right: 0;
}
}
.navbar-default {
background-color: #ffffff;
border-color: transparent;
}
.navbar-default .navbar-brand {
color: #666666;
}
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
color: #212121;
background-color: transparent;
}
.navbar-default .navbar-text {
color: #bbbbbb;
}
.navbar-default .navbar-nav > li > a {
color: #666666;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
color: #212121;
background-color: transparent;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
color: #212121;
background-color: #eeeeee;
}
.navbar-default .navbar-nav > .disabled > a,
.navbar-default .navbar-nav > .disabled > a:hover,
.navbar-default .navbar-nav > .disabled > a:focus {
color: #cccccc;
background-color: transparent;
}
.navbar-default .navbar-toggle {
border-color: transparent;
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
background-color: transparent;
}
.navbar-default .navbar-toggle .icon-bar {
background-color: rgba(0, 0, 0, 0.5);
}
.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
border-color: transparent;
}
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
background-color: #eeeeee;
color: #212121;
}
@media (max-width: 767px) {
.navbar-default .navbar-nav .open .dropdown-menu > li > a {
color: #666666;
}
.navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > li > a:focus {
color: #212121;
background-color: transparent;
}
.navbar-default .navbar-nav .open .dropdown-menu > .active > a,
.navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus {
color: #212121;
background-color: #eeeeee;
}
.navbar-default .navbar-nav .open .dropdown-menu > .disabled > a,
.navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover,
.navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus {
color: #cccccc;
background-color: transparent;
}
}
.navbar-default .navbar-link {
color: #666666;
}
.navbar-default .navbar-link:hover {
color: #212121;
}
.navbar-default .btn-link {
color: #666666;
}
.navbar-default .btn-link:hover,
.navbar-default .btn-link:focus {
color: #212121;
}
.navbar-default .btn-link[disabled]:hover,
fieldset[disabled] .navbar-default .btn-link:hover,
.navbar-default .btn-link[disabled]:focus,
fieldset[disabled] .navbar-default .btn-link:focus {
color: #cccccc;
}
.navbar-inverse {
background-color: #2196f3;
border-color: transparent;
}
.navbar-inverse .navbar-brand {
color: #b2dbfb;
}
.navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-brand:focus {
color: #ffffff;
background-color: transparent;
}
.navbar-inverse .navbar-text {
color: #bbbbbb;
}
.navbar-inverse .navbar-nav > li > a {
color: #b2dbfb;
}
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
color: #ffffff;
background-color: transparent;
}
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
color: #ffffff;
background-color: #0c7cd5;
}
.navbar-inverse .navbar-nav > .disabled > a,
.navbar-inverse .navbar-nav > .disabled > a:hover,
.navbar-inverse .navbar-nav > .disabled > a:focus {
color: #444444;
background-color: transparent;
}
.navbar-inverse .navbar-toggle {
border-color: transparent;
}
.navbar-inverse .navbar-toggle:hover,
.navbar-inverse .navbar-toggle:focus {
background-color: transparent;
}
.navbar-inverse .navbar-toggle .icon-bar {
background-color: rgba(0, 0, 0, 0.5);
}
.navbar-inverse .navbar-collapse,
.navbar-inverse .navbar-form {
border-color: #0c84e4;
}
.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus {
background-color: #0c7cd5;
color: #ffffff;
}
@media (max-width: 767px) {
.navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header {
border-color: transparent;
}
.navbar-inverse .navbar-nav .open .dropdown-menu .divider {
background-color: transparent;
}
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a {
color: #b2dbfb;
}
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus {
color: #ffffff;
background-color: transparent;
}
.navbar-inverse .navbar-nav .open .dropdown-menu > .active > a,
.navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover,
.navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus {
color: #ffffff;
background-color: #0c7cd5;
}
.navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a,
.navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover,
.navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus {
color: #444444;
background-color: transparent;
}
}
.navbar-inverse .navbar-link {
color: #b2dbfb;
}
.navbar-inverse .navbar-link:hover {
color: #ffffff;
}
.navbar-inverse .btn-link {
color: #b2dbfb;
}
.navbar-inverse .btn-link:hover,
.navbar-inverse .btn-link:focus {
color: #ffffff;
}
.navbar-inverse .btn-link[disabled]:hover,
fieldset[disabled] .navbar-inverse .btn-link:hover,
.navbar-inverse .btn-link[disabled]:focus,
fieldset[disabled] .navbar-inverse .btn-link:focus {
color: #444444;
}
.breadcrumb {
padding: 8px 15px;
margin-bottom: 23px;
list-style: none;
background-color: #f5f5f5;
border-radius: 3px;
}
.breadcrumb > li {
display: inline-block;
}
.breadcrumb > li + li:before {
content: "/\00a0";
padding: 0 5px;
color: #cccccc;
}
.breadcrumb > .active {
color: #bbbbbb;
}
.pagination {
display: inline-block;
padding-left: 0;
margin: 23px 0;
border-radius: 3px;
}
.pagination > li {
display: inline;
}
.pagination > li > a,
.pagination > li > span {
position: relative;
float: left;
padding: 6px 16px;
line-height: 1.846;
text-decoration: none;
color: #2196f3;
background-color: #ffffff;
border: 1px solid #dddddd;
margin-left: -1px;
}
.pagination > li:first-child > a,
.pagination > li:first-child > span {
margin-left: 0;
<API key>: 3px;
<API key>: 3px;
}
.pagination > li:last-child > a,
.pagination > li:last-child > span {
<API key>: 3px;
<API key>: 3px;
}
.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus,
.pagination > li > span:focus {
color: #0a6ebd;
background-color: #eeeeee;
border-color: #dddddd;
}
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
z-index: 2;
color: #ffffff;
background-color: #2196f3;
border-color: #2196f3;
cursor: default;
}
.pagination > .disabled > span,
.pagination > .disabled > span:hover,
.pagination > .disabled > span:focus,
.pagination > .disabled > a,
.pagination > .disabled > a:hover,
.pagination > .disabled > a:focus {
color: #bbbbbb;
background-color: #ffffff;
border-color: #dddddd;
cursor: not-allowed;
}
.pagination-lg > li > a,
.pagination-lg > li > span {
padding: 10px 16px;
font-size: 17px;
}
.pagination-lg > li:first-child > a,
.pagination-lg > li:first-child > span {
<API key>: 3px;
<API key>: 3px;
}
.pagination-lg > li:last-child > a,
.pagination-lg > li:last-child > span {
<API key>: 3px;
<API key>: 3px;
}
.pagination-sm > li > a,
.pagination-sm > li > span {
padding: 5px 10px;
font-size: 12px;
}
.pagination-sm > li:first-child > a,
.pagination-sm > li:first-child > span {
<API key>: 3px;
<API key>: 3px;
}
.pagination-sm > li:last-child > a,
.pagination-sm > li:last-child > span {
<API key>: 3px;
<API key>: 3px;
}
.pager {
padding-left: 0;
margin: 23px 0;
list-style: none;
text-align: center;
}
.pager li {
display: inline;
}
.pager li > a,
.pager li > span {
display: inline-block;
padding: 5px 14px;
background-color: #ffffff;
border: 1px solid #dddddd;
border-radius: 15px;
}
.pager li > a:hover,
.pager li > a:focus {
text-decoration: none;
background-color: #eeeeee;
}
.pager .next > a,
.pager .next > span {
float: right;
}
.pager .previous > a,
.pager .previous > span {
float: left;
}
.pager .disabled > a,
.pager .disabled > a:hover,
.pager .disabled > a:focus,
.pager .disabled > span {
color: #bbbbbb;
background-color: #ffffff;
cursor: not-allowed;
}
.label {
display: inline;
padding: .2em .6em .3em;
font-size: 75%;
font-weight: bold;
line-height: 1;
color: #ffffff;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: .25em;
}
a.label:hover,
a.label:focus {
color: #ffffff;
text-decoration: none;
cursor: pointer;
}
.label:empty {
display: none;
}
.btn .label {
position: relative;
top: -1px;
}
.label-default {
background-color: #bbbbbb;
}
.label-default[href]:hover,
.label-default[href]:focus {
background-color: #a2a2a2;
}
.label-primary {
background-color: #2196f3;
}
.label-primary[href]:hover,
.label-primary[href]:focus {
background-color: #0c7cd5;
}
.label-success {
background-color: #4caf50;
}
.label-success[href]:hover,
.label-success[href]:focus {
background-color: #3d8b40;
}
.label-info {
background-color: #9c27b0;
}
.label-info[href]:hover,
.label-info[href]:focus {
background-color: #771e86;
}
.label-warning {
background-color: #ff9800;
}
.label-warning[href]:hover,
.label-warning[href]:focus {
background-color: #cc7a00;
}
.label-danger {
background-color: #e51c23;
}
.label-danger[href]:hover,
.label-danger[href]:focus {
background-color: #b9151b;
}
.badge {
display: inline-block;
min-width: 10px;
padding: 3px 7px;
font-size: 12px;
font-weight: normal;
color: #ffffff;
line-height: 1;
vertical-align: baseline;
white-space: nowrap;
text-align: center;
background-color: #bbbbbb;
border-radius: 10px;
}
.badge:empty {
display: none;
}
.btn .badge {
position: relative;
top: -1px;
}
.btn-xs .badge,
.btn-group-xs > .btn .badge {
top: 0;
padding: 1px 5px;
}
a.badge:hover,
a.badge:focus {
color: #ffffff;
text-decoration: none;
cursor: pointer;
}
.list-group-item.active > .badge,
.nav-pills > .active > a > .badge {
color: #2196f3;
background-color: #ffffff;
}
.list-group-item > .badge {
float: right;
}
.list-group-item > .badge + .badge {
margin-right: 5px;
}
.nav-pills > li > a > .badge {
margin-left: 3px;
}
.jumbotron {
padding: 30px 15px;
margin-bottom: 30px;
color: inherit;
background-color: #f9f9f9;
}
.jumbotron h1,
.jumbotron .h1 {
color: #444444;
}
.jumbotron p {
margin-bottom: 15px;
font-size: 20px;
font-weight: 200;
}
.jumbotron > hr {
border-top-color: #e0e0e0;
}
.container .jumbotron,
.container-fluid .jumbotron {
border-radius: 3px;
}
.jumbotron .container {
max-width: 100%;
}
@media screen and (min-width: 768px) {
.jumbotron {
padding: 48px 0;
}
.container .jumbotron,
.container-fluid .jumbotron {
padding-left: 60px;
padding-right: 60px;
}
.jumbotron h1,
.jumbotron .h1 {
font-size: 58.5px;
}
}
.thumbnail {
display: block;
padding: 4px;
margin-bottom: 23px;
line-height: 1.846;
background-color: #ffffff;
border: 1px solid #dddddd;
border-radius: 3px;
-webkit-transition: border 0.2s ease-in-out;
-o-transition: border 0.2s ease-in-out;
transition: border 0.2s ease-in-out;
}
.thumbnail > img,
.thumbnail a > img {
margin-left: auto;
margin-right: auto;
}
a.thumbnail:hover,
a.thumbnail:focus,
a.thumbnail.active {
border-color: #2196f3;
}
.thumbnail .caption {
padding: 9px;
color: #666666;
}
.alert {
padding: 15px;
margin-bottom: 23px;
border: 1px solid transparent;
border-radius: 3px;
}
.alert h4 {
margin-top: 0;
color: inherit;
}
.alert .alert-link {
font-weight: bold;
}
.alert > p,
.alert > ul {
margin-bottom: 0;
}
.alert > p + p {
margin-top: 5px;
}
.alert-dismissable,
.alert-dismissible {
padding-right: 35px;
}
.alert-dismissable .close,
.alert-dismissible .close {
position: relative;
top: -2px;
right: -21px;
color: inherit;
}
.alert-success {
background-color: #dff0d8;
border-color: #d6e9c6;
color: #4caf50;
}
.alert-success hr {
border-top-color: #c9e2b3;
}
.alert-success .alert-link {
color: #3d8b40;
}
.alert-info {
background-color: #e1bee7;
border-color: #cba4dd;
color: #9c27b0;
}
.alert-info hr {
border-top-color: #c191d6;
}
.alert-info .alert-link {
color: #771e86;
}
.alert-warning {
background-color: #ffe0b2;
border-color: #ffc599;
color: #ff9800;
}
.alert-warning hr {
border-top-color: #ffb67f;
}
.alert-warning .alert-link {
color: #cc7a00;
}
.alert-danger {
background-color: #f9bdbb;
border-color: #f7a4af;
color: #e51c23;
}
.alert-danger hr {
border-top-color: #f58c9a;
}
.alert-danger .alert-link {
color: #b9151b;
}
@-webkit-keyframes <API key> {
from {
background-position: 40px 0;
}
to {
background-position: 0 0;
}
}
@-o-keyframes <API key> {
from {
background-position: 40px 0;
}
to {
background-position: 0 0;
}
}
@keyframes <API key> {
from {
background-position: 40px 0;
}
to {
background-position: 0 0;
}
}
.progress {
overflow: hidden;
height: 23px;
margin-bottom: 23px;
background-color: #f5f5f5;
border-radius: 3px;
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
.progress-bar {
float: left;
width: 0%;
height: 100%;
font-size: 12px;
line-height: 23px;
color: #ffffff;
text-align: center;
background-color: #2196f3;
-webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
-webkit-transition: width 0.6s ease;
-o-transition: width 0.6s ease;
transition: width 0.6s ease;
}
.progress-striped .progress-bar,
.<API key> {
background-image: -<API key>(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
-<API key>: 40px 40px;
background-size: 40px 40px;
}
.progress.active .progress-bar,
.progress-bar.active {
-webkit-animation: <API key> 2s linear infinite;
-o-animation: <API key> 2s linear infinite;
animation: <API key> 2s linear infinite;
}
.<API key> {
background-color: #4caf50;
}
.progress-striped .<API key> {
background-image: -<API key>(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
}
.progress-bar-info {
background-color: #9c27b0;
}
.progress-striped .progress-bar-info {
background-image: -<API key>(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
}
.<API key> {
background-color: #ff9800;
}
.progress-striped .<API key> {
background-image: -<API key>(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
}
.progress-bar-danger {
background-color: #e51c23;
}
.progress-striped .progress-bar-danger {
background-image: -<API key>(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
}
.media {
margin-top: 15px;
}
.media:first-child {
margin-top: 0;
}
.media,
.media-body {
zoom: 1;
overflow: hidden;
}
.media-body {
width: 10000px;
}
.media-object {
display: block;
}
.media-right,
.media > .pull-right {
padding-left: 10px;
}
.media-left,
.media > .pull-left {
padding-right: 10px;
}
.media-left,
.media-right,
.media-body {
display: table-cell;
vertical-align: top;
}
.media-middle {
vertical-align: middle;
}
.media-bottom {
vertical-align: bottom;
}
.media-heading {
margin-top: 0;
margin-bottom: 5px;
}
.media-list {
padding-left: 0;
list-style: none;
}
.list-group {
margin-bottom: 20px;
padding-left: 0;
}
.list-group-item {
position: relative;
display: block;
padding: 10px 15px;
margin-bottom: -1px;
background-color: #ffffff;
border: 1px solid #dddddd;
}
.list-group-item:first-child {
<API key>: 3px;
<API key>: 3px;
}
.list-group-item:last-child {
margin-bottom: 0;
<API key>: 3px;
<API key>: 3px;
}
a.list-group-item {
color: #555555;
}
a.list-group-item .<API key> {
color: #333333;
}
a.list-group-item:hover,
a.list-group-item:focus {
text-decoration: none;
color: #555555;
background-color: #f5f5f5;
}
.list-group-item.disabled,
.list-group-item.disabled:hover,
.list-group-item.disabled:focus {
background-color: #eeeeee;
color: #bbbbbb;
cursor: not-allowed;
}
.list-group-item.disabled .<API key>,
.list-group-item.disabled:hover .<API key>,
.list-group-item.disabled:focus .<API key> {
color: inherit;
}
.list-group-item.disabled .<API key>,
.list-group-item.disabled:hover .<API key>,
.list-group-item.disabled:focus .<API key> {
color: #bbbbbb;
}
.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
z-index: 2;
color: #ffffff;
background-color: #2196f3;
border-color: #2196f3;
}
.list-group-item.active .<API key>,
.list-group-item.active:hover .<API key>,
.list-group-item.active:focus .<API key>,
.list-group-item.active .<API key> > small,
.list-group-item.active:hover .<API key> > small,
.list-group-item.active:focus .<API key> > small,
.list-group-item.active .<API key> > .small,
.list-group-item.active:hover .<API key> > .small,
.list-group-item.active:focus .<API key> > .small {
color: inherit;
}
.list-group-item.active .<API key>,
.list-group-item.active:hover .<API key>,
.list-group-item.active:focus .<API key> {
color: #e3f2fd;
}
.<API key> {
color: #4caf50;
background-color: #dff0d8;
}
a.<API key> {
color: #4caf50;
}
a.<API key> .<API key> {
color: inherit;
}
a.<API key>:hover,
a.<API key>:focus {
color: #4caf50;
background-color: #d0e9c6;
}
a.<API key>.active,
a.<API key>.active:hover,
a.<API key>.active:focus {
color: #fff;
background-color: #4caf50;
border-color: #4caf50;
}
.<API key> {
color: #9c27b0;
background-color: #e1bee7;
}
a.<API key> {
color: #9c27b0;
}
a.<API key> .<API key> {
color: inherit;
}
a.<API key>:hover,
a.<API key>:focus {
color: #9c27b0;
background-color: #d8abe0;
}
a.<API key>.active,
a.<API key>.active:hover,
a.<API key>.active:focus {
color: #fff;
background-color: #9c27b0;
border-color: #9c27b0;
}
.<API key> {
color: #ff9800;
background-color: #ffe0b2;
}
a.<API key> {
color: #ff9800;
}
a.<API key> .<API key> {
color: inherit;
}
a.<API key>:hover,
a.<API key>:focus {
color: #ff9800;
background-color: #ffd699;
}
a.<API key>.active,
a.<API key>.active:hover,
a.<API key>.active:focus {
color: #fff;
background-color: #ff9800;
border-color: #ff9800;
}
.<API key> {
color: #e51c23;
background-color: #f9bdbb;
}
a.<API key> {
color: #e51c23;
}
a.<API key> .<API key> {
color: inherit;
}
a.<API key>:hover,
a.<API key>:focus {
color: #e51c23;
background-color: #f7a6a4;
}
a.<API key>.active,
a.<API key>.active:hover,
a.<API key>.active:focus {
color: #fff;
background-color: #e51c23;
border-color: #e51c23;
}
.<API key> {
margin-top: 0;
margin-bottom: 5px;
}
.<API key> {
margin-bottom: 0;
line-height: 1.3;
}
.panel {
margin-bottom: 23px;
background-color: #ffffff;
border: 1px solid transparent;
border-radius: 3px;
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}
.panel-body {
padding: 15px;
}
.panel-heading {
padding: 10px 15px;
border-bottom: 1px solid transparent;
<API key>: 2px;
<API key>: 2px;
}
.panel-heading > .dropdown .dropdown-toggle {
color: inherit;
}
.panel-title {
margin-top: 0;
margin-bottom: 0;
font-size: 15px;
color: inherit;
}
.panel-title > a,
.panel-title > small,
.panel-title > .small,
.panel-title > small > a,
.panel-title > .small > a {
color: inherit;
}
.panel-footer {
padding: 10px 15px;
background-color: #f5f5f5;
border-top: 1px solid #dddddd;
<API key>: 2px;
<API key>: 2px;
}
.panel > .list-group,
.panel > .panel-collapse > .list-group {
margin-bottom: 0;
}
.panel > .list-group .list-group-item,
.panel > .panel-collapse > .list-group .list-group-item {
border-width: 1px 0;
border-radius: 0;
}
.panel > .list-group:first-child .list-group-item:first-child,
.panel > .panel-collapse > .list-group:first-child .list-group-item:first-child {
border-top: 0;
<API key>: 2px;
<API key>: 2px;
}
.panel > .list-group:last-child .list-group-item:last-child,
.panel > .panel-collapse > .list-group:last-child .list-group-item:last-child {
border-bottom: 0;
<API key>: 2px;
<API key>: 2px;
}
.panel-heading + .list-group .list-group-item:first-child {
border-top-width: 0;
}
.list-group + .panel-footer {
border-top-width: 0;
}
.panel > .table,
.panel > .table-responsive > .table,
.panel > .panel-collapse > .table {
margin-bottom: 0;
}
.panel > .table caption,
.panel > .table-responsive > .table caption,
.panel > .panel-collapse > .table caption {
padding-left: 15px;
padding-right: 15px;
}
.panel > .table:first-child,
.panel > .table-responsive:first-child > .table:first-child {
<API key>: 2px;
<API key>: 2px;
}
.panel > .table:first-child > thead:first-child > tr:first-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child,
.panel > .table:first-child > tbody:first-child > tr:first-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child {
<API key>: 2px;
<API key>: 2px;
}
.panel > .table:first-child > thead:first-child > tr:first-child td:first-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child,
.panel > .table:first-child > tbody:first-child > tr:first-child td:first-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child,
.panel > .table:first-child > thead:first-child > tr:first-child th:first-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child,
.panel > .table:first-child > tbody:first-child > tr:first-child th:first-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child {
<API key>: 2px;
}
.panel > .table:first-child > thead:first-child > tr:first-child td:last-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child,
.panel > .table:first-child > tbody:first-child > tr:first-child td:last-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child,
.panel > .table:first-child > thead:first-child > tr:first-child th:last-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child,
.panel > .table:first-child > tbody:first-child > tr:first-child th:last-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child {
<API key>: 2px;
}
.panel > .table:last-child,
.panel > .table-responsive:last-child > .table:last-child {
<API key>: 2px;
<API key>: 2px;
}
.panel > .table:last-child > tbody:last-child > tr:last-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child {
<API key>: 2px;
<API key>: 2px;
}
.panel > .table:last-child > tbody:last-child > tr:last-child td:first-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child,
.panel > .table:last-child > tbody:last-child > tr:last-child th:first-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child {
<API key>: 2px;
}
.panel > .table:last-child > tbody:last-child > tr:last-child td:last-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child,
.panel > .table:last-child > tbody:last-child > tr:last-child th:last-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child {
<API key>: 2px;
}
.panel > .panel-body + .table,
.panel > .panel-body + .table-responsive,
.panel > .table + .panel-body,
.panel > .table-responsive + .panel-body {
border-top: 1px solid #dddddd;
}
.panel > .table > tbody:first-child > tr:first-child th,
.panel > .table > tbody:first-child > tr:first-child td {
border-top: 0;
}
.panel > .table-bordered,
.panel > .table-responsive > .table-bordered {
border: 0;
}
.panel > .table-bordered > thead > tr > th:first-child,
.panel > .table-responsive > .table-bordered > thead > tr > th:first-child,
.panel > .table-bordered > tbody > tr > th:first-child,
.panel > .table-responsive > .table-bordered > tbody > tr > th:first-child,
.panel > .table-bordered > tfoot > tr > th:first-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child,
.panel > .table-bordered > thead > tr > td:first-child,
.panel > .table-responsive > .table-bordered > thead > tr > td:first-child,
.panel > .table-bordered > tbody > tr > td:first-child,
.panel > .table-responsive > .table-bordered > tbody > tr > td:first-child,
.panel > .table-bordered > tfoot > tr > td:first-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child {
border-left: 0;
}
.panel > .table-bordered > thead > tr > th:last-child,
.panel > .table-responsive > .table-bordered > thead > tr > th:last-child,
.panel > .table-bordered > tbody > tr > th:last-child,
.panel > .table-responsive > .table-bordered > tbody > tr > th:last-child,
.panel > .table-bordered > tfoot > tr > th:last-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child,
.panel > .table-bordered > thead > tr > td:last-child,
.panel > .table-responsive > .table-bordered > thead > tr > td:last-child,
.panel > .table-bordered > tbody > tr > td:last-child,
.panel > .table-responsive > .table-bordered > tbody > tr > td:last-child,
.panel > .table-bordered > tfoot > tr > td:last-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child {
border-right: 0;
}
.panel > .table-bordered > thead > tr:first-child > td,
.panel > .table-responsive > .table-bordered > thead > tr:first-child > td,
.panel > .table-bordered > tbody > tr:first-child > td,
.panel > .table-responsive > .table-bordered > tbody > tr:first-child > td,
.panel > .table-bordered > thead > tr:first-child > th,
.panel > .table-responsive > .table-bordered > thead > tr:first-child > th,
.panel > .table-bordered > tbody > tr:first-child > th,
.panel > .table-responsive > .table-bordered > tbody > tr:first-child > th {
border-bottom: 0;
}
.panel > .table-bordered > tbody > tr:last-child > td,
.panel > .table-responsive > .table-bordered > tbody > tr:last-child > td,
.panel > .table-bordered > tfoot > tr:last-child > td,
.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td,
.panel > .table-bordered > tbody > tr:last-child > th,
.panel > .table-responsive > .table-bordered > tbody > tr:last-child > th,
.panel > .table-bordered > tfoot > tr:last-child > th,
.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th {
border-bottom: 0;
}
.panel > .table-responsive {
border: 0;
margin-bottom: 0;
}
.panel-group {
margin-bottom: 23px;
}
.panel-group .panel {
margin-bottom: 0;
border-radius: 3px;
}
.panel-group .panel + .panel {
margin-top: 5px;
}
.panel-group .panel-heading {
border-bottom: 0;
}
.panel-group .panel-heading + .panel-collapse > .panel-body,
.panel-group .panel-heading + .panel-collapse > .list-group {
border-top: 1px solid #dddddd;
}
.panel-group .panel-footer {
border-top: 0;
}
.panel-group .panel-footer + .panel-collapse .panel-body {
border-bottom: 1px solid #dddddd;
}
.panel-default {
border-color: #dddddd;
}
.panel-default > .panel-heading {
color: #212121;
background-color: #f5f5f5;
border-color: #dddddd;
}
.panel-default > .panel-heading + .panel-collapse > .panel-body {
border-top-color: #dddddd;
}
.panel-default > .panel-heading .badge {
color: #f5f5f5;
background-color: #212121;
}
.panel-default > .panel-footer + .panel-collapse > .panel-body {
border-bottom-color: #dddddd;
}
.panel-primary {
border-color: #2196f3;
}
.panel-primary > .panel-heading {
color: #ffffff;
background-color: #2196f3;
border-color: #2196f3;
}
.panel-primary > .panel-heading + .panel-collapse > .panel-body {
border-top-color: #2196f3;
}
.panel-primary > .panel-heading .badge {
color: #2196f3;
background-color: #ffffff;
}
.panel-primary > .panel-footer + .panel-collapse > .panel-body {
border-bottom-color: #2196f3;
}
.panel-success {
border-color: #d6e9c6;
}
.panel-success > .panel-heading {
color: #ffffff;
background-color: #4caf50;
border-color: #d6e9c6;
}
.panel-success > .panel-heading + .panel-collapse > .panel-body {
border-top-color: #d6e9c6;
}
.panel-success > .panel-heading .badge {
color: #4caf50;
background-color: #ffffff;
}
.panel-success > .panel-footer + .panel-collapse > .panel-body {
border-bottom-color: #d6e9c6;
}
.panel-info {
border-color: #cba4dd;
}
.panel-info > .panel-heading {
color: #ffffff;
background-color: #9c27b0;
border-color: #cba4dd;
}
.panel-info > .panel-heading + .panel-collapse > .panel-body {
border-top-color: #cba4dd;
}
.panel-info > .panel-heading .badge {
color: #9c27b0;
background-color: #ffffff;
}
.panel-info > .panel-footer + .panel-collapse > .panel-body {
border-bottom-color: #cba4dd;
}
.panel-warning {
border-color: #ffc599;
}
.panel-warning > .panel-heading {
color: #ffffff;
background-color: #ff9800;
border-color: #ffc599;
}
.panel-warning > .panel-heading + .panel-collapse > .panel-body {
border-top-color: #ffc599;
}
.panel-warning > .panel-heading .badge {
color: #ff9800;
background-color: #ffffff;
}
.panel-warning > .panel-footer + .panel-collapse > .panel-body {
border-bottom-color: #ffc599;
}
.panel-danger {
border-color: #f7a4af;
}
.panel-danger > .panel-heading {
color: #ffffff;
background-color: #e51c23;
border-color: #f7a4af;
}
.panel-danger > .panel-heading + .panel-collapse > .panel-body {
border-top-color: #f7a4af;
}
.panel-danger > .panel-heading .badge {
color: #e51c23;
background-color: #ffffff;
}
.panel-danger > .panel-footer + .panel-collapse > .panel-body {
border-bottom-color: #f7a4af;
}
.embed-responsive {
position: relative;
display: block;
height: 0;
padding: 0;
overflow: hidden;
}
.embed-responsive .<API key>,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
position: absolute;
top: 0;
left: 0;
bottom: 0;
height: 100%;
width: 100%;
border: 0;
}
.<API key> {
padding-bottom: 56.25%;
}
.<API key> {
padding-bottom: 75%;
}
.well {
min-height: 20px;
padding: 19px;
margin-bottom: 20px;
background-color: #f9f9f9;
border: 1px solid transparent;
border-radius: 3px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}
.well blockquote {
border-color: #ddd;
border-color: rgba(0, 0, 0, 0.15);
}
.well-lg {
padding: 24px;
border-radius: 3px;
}
.well-sm {
padding: 9px;
border-radius: 3px;
}
.close {
float: right;
font-size: 19.5px;
font-weight: normal;
line-height: 1;
color: #000000;
text-shadow: none;
opacity: 0.2;
filter: alpha(opacity=20);
}
.close:hover,
.close:focus {
color: #000000;
text-decoration: none;
cursor: pointer;
opacity: 0.5;
filter: alpha(opacity=50);
}
button.close {
padding: 0;
cursor: pointer;
background: transparent;
border: 0;
-webkit-appearance: none;
}
.modal-open {
overflow: hidden;
}
.modal {
display: none;
overflow: hidden;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1050;
-<API key>: touch;
outline: 0;
}
.modal.fade .modal-dialog {
-webkit-transform: translate(0, -25%);
-ms-transform: translate(0, -25%);
-o-transform: translate(0, -25%);
transform: translate(0, -25%);
-webkit-transition: -webkit-transform 0.3s ease-out;
-o-transition: -o-transform 0.3s ease-out;
transition: transform 0.3s ease-out;
}
.modal.in .modal-dialog {
-webkit-transform: translate(0, 0);
-ms-transform: translate(0, 0);
-o-transform: translate(0, 0);
transform: translate(0, 0);
}
.modal-open .modal {
overflow-x: hidden;
overflow-y: auto;
}
.modal-dialog {
position: relative;
width: auto;
margin: 10px;
}
.modal-content {
position: relative;
background-color: #ffffff;
border: 1px solid #999999;
border: 1px solid transparent;
border-radius: 3px;
-webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
-<API key>: padding-box;
background-clip: padding-box;
outline: 0;
}
.modal-backdrop {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1040;
background-color: #000000;
}
.modal-backdrop.fade {
opacity: 0;
filter: alpha(opacity=0);
}
.modal-backdrop.in {
opacity: 0.5;
filter: alpha(opacity=50);
}
.modal-header {
padding: 15px;
border-bottom: 1px solid transparent;
min-height: 16.846px;
}
.modal-header .close {
margin-top: -2px;
}
.modal-title {
margin: 0;
line-height: 1.846;
}
.modal-body {
position: relative;
padding: 15px;
}
.modal-footer {
padding: 15px;
text-align: right;
border-top: 1px solid transparent;
}
.modal-footer .btn + .btn {
margin-left: 5px;
margin-bottom: 0;
}
.modal-footer .btn-group .btn + .btn {
margin-left: -1px;
}
.modal-footer .btn-block + .btn-block {
margin-left: 0;
}
.<API key> {
position: absolute;
top: -9999px;
width: 50px;
height: 50px;
overflow: scroll;
}
@media (min-width: 768px) {
.modal-dialog {
width: 600px;
margin: 30px auto;
}
.modal-content {
-webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}
.modal-sm {
width: 300px;
}
}
@media (min-width: 992px) {
.modal-lg {
width: 900px;
}
}
.tooltip {
position: absolute;
z-index: 1070;
display: block;
font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 12px;
font-weight: normal;
line-height: 1.4;
opacity: 0;
filter: alpha(opacity=0);
}
.tooltip.in {
opacity: 0.9;
filter: alpha(opacity=90);
}
.tooltip.top {
margin-top: -3px;
padding: 5px 0;
}
.tooltip.right {
margin-left: 3px;
padding: 0 5px;
}
.tooltip.bottom {
margin-top: 3px;
padding: 5px 0;
}
.tooltip.left {
margin-left: -3px;
padding: 0 5px;
}
.tooltip-inner {
max-width: 200px;
padding: 3px 8px;
color: #ffffff;
text-align: center;
text-decoration: none;
background-color: #727272;
border-radius: 3px;
}
.tooltip-arrow {
position: absolute;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
}
.tooltip.top .tooltip-arrow {
bottom: 0;
left: 50%;
margin-left: -5px;
border-width: 5px 5px 0;
border-top-color: #727272;
}
.tooltip.top-left .tooltip-arrow {
bottom: 0;
right: 5px;
margin-bottom: -5px;
border-width: 5px 5px 0;
border-top-color: #727272;
}
.tooltip.top-right .tooltip-arrow {
bottom: 0;
left: 5px;
margin-bottom: -5px;
border-width: 5px 5px 0;
border-top-color: #727272;
}
.tooltip.right .tooltip-arrow {
top: 50%;
left: 0;
margin-top: -5px;
border-width: 5px 5px 5px 0;
border-right-color: #727272;
}
.tooltip.left .tooltip-arrow {
top: 50%;
right: 0;
margin-top: -5px;
border-width: 5px 0 5px 5px;
border-left-color: #727272;
}
.tooltip.bottom .tooltip-arrow {
top: 0;
left: 50%;
margin-left: -5px;
border-width: 0 5px 5px;
border-bottom-color: #727272;
}
.tooltip.bottom-left .tooltip-arrow {
top: 0;
right: 5px;
margin-top: -5px;
border-width: 0 5px 5px;
border-bottom-color: #727272;
}
.tooltip.bottom-right .tooltip-arrow {
top: 0;
left: 5px;
margin-top: -5px;
border-width: 0 5px 5px;
border-bottom-color: #727272;
}
.popover {
position: absolute;
top: 0;
left: 0;
z-index: 1060;
display: none;
max-width: 276px;
padding: 1px;
font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 13px;
font-weight: normal;
line-height: 1.846;
text-align: left;
background-color: #ffffff;
-<API key>: padding-box;
background-clip: padding-box;
border: 1px solid transparent;
border-radius: 3px;
-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
white-space: normal;
}
.popover.top {
margin-top: -10px;
}
.popover.right {
margin-left: 10px;
}
.popover.bottom {
margin-top: 10px;
}
.popover.left {
margin-left: -10px;
}
.popover-title {
margin: 0;
padding: 8px 14px;
font-size: 13px;
background-color: #f7f7f7;
border-bottom: 1px solid #ebebeb;
border-radius: 2px 2px 0 0;
}
.popover-content {
padding: 9px 14px;
}
.popover > .arrow,
.popover > .arrow:after {
position: absolute;
display: block;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
}
.popover > .arrow {
border-width: 11px;
}
.popover > .arrow:after {
border-width: 10px;
content: "";
}
.popover.top > .arrow {
left: 50%;
margin-left: -11px;
border-bottom-width: 0;
border-top-color: rgba(0, 0, 0, 0);
border-top-color: rgba(0, 0, 0, 0.075);
bottom: -11px;
}
.popover.top > .arrow:after {
content: " ";
bottom: 1px;
margin-left: -10px;
border-bottom-width: 0;
border-top-color: #ffffff;
}
.popover.right > .arrow {
top: 50%;
left: -11px;
margin-top: -11px;
border-left-width: 0;
border-right-color: rgba(0, 0, 0, 0);
border-right-color: rgba(0, 0, 0, 0.075);
}
.popover.right > .arrow:after {
content: " ";
left: 1px;
bottom: -10px;
border-left-width: 0;
border-right-color: #ffffff;
}
.popover.bottom > .arrow {
left: 50%;
margin-left: -11px;
border-top-width: 0;
border-bottom-color: rgba(0, 0, 0, 0);
border-bottom-color: rgba(0, 0, 0, 0.075);
top: -11px;
}
.popover.bottom > .arrow:after {
content: " ";
top: 1px;
margin-left: -10px;
border-top-width: 0;
border-bottom-color: #ffffff;
}
.popover.left > .arrow {
top: 50%;
right: -11px;
margin-top: -11px;
border-right-width: 0;
border-left-color: rgba(0, 0, 0, 0);
border-left-color: rgba(0, 0, 0, 0.075);
}
.popover.left > .arrow:after {
content: " ";
right: 1px;
border-right-width: 0;
border-left-color: #ffffff;
bottom: -10px;
}
.carousel {
position: relative;
}
.carousel-inner {
position: relative;
overflow: hidden;
width: 100%;
}
.carousel-inner > .item {
display: none;
position: relative;
-webkit-transition: 0.6s ease-in-out left;
-o-transition: 0.6s ease-in-out left;
transition: 0.6s ease-in-out left;
}
.carousel-inner > .item > img,
.carousel-inner > .item > a > img {
line-height: 1;
}
@media all and (transform-3d), (-webkit-transform-3d) {
.carousel-inner > .item {
-webkit-transition: -webkit-transform 0.6s ease-in-out;
-o-transition: -o-transform 0.6s ease-in-out;
transition: transform 0.6s ease-in-out;
-<API key>: hidden;
backface-visibility: hidden;
-webkit-perspective: 1000;
perspective: 1000;
}
.carousel-inner > .item.next,
.carousel-inner > .item.active.right {
-webkit-transform: translate3d(100%, 0, 0);
transform: translate3d(100%, 0, 0);
left: 0;
}
.carousel-inner > .item.prev,
.carousel-inner > .item.active.left {
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
left: 0;
}
.carousel-inner > .item.next.left,
.carousel-inner > .item.prev.right,
.carousel-inner > .item.active {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
left: 0;
}
}
.carousel-inner > .active,
.carousel-inner > .next,
.carousel-inner > .prev {
display: block;
}
.carousel-inner > .active {
left: 0;
}
.carousel-inner > .next,
.carousel-inner > .prev {
position: absolute;
top: 0;
width: 100%;
}
.carousel-inner > .next {
left: 100%;
}
.carousel-inner > .prev {
left: -100%;
}
.carousel-inner > .next.left,
.carousel-inner > .prev.right {
left: 0;
}
.carousel-inner > .active.left {
left: -100%;
}
.carousel-inner > .active.right {
left: 100%;
}
.carousel-control {
position: absolute;
top: 0;
left: 0;
bottom: 0;
width: 15%;
opacity: 0.5;
filter: alpha(opacity=50);
font-size: 20px;
color: #ffffff;
text-align: center;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.carousel-control.left {
background-image: -<API key>(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);
background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);
background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.5)), to(rgba(0, 0, 0, 0.0001)));
background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);
}
.carousel-control.right {
left: auto;
right: 0;
background-image: -<API key>(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);
background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);
background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.0001)), to(rgba(0, 0, 0, 0.5)));
background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);
}
.carousel-control:hover,
.carousel-control:focus {
outline: 0;
color: #ffffff;
text-decoration: none;
opacity: 0.9;
filter: alpha(opacity=90);
}
.carousel-control .icon-prev,
.carousel-control .icon-next,
.carousel-control .<API key>,
.carousel-control .<API key> {
position: absolute;
top: 50%;
z-index: 5;
display: inline-block;
}
.carousel-control .icon-prev,
.carousel-control .<API key> {
left: 50%;
margin-left: -10px;
}
.carousel-control .icon-next,
.carousel-control .<API key> {
right: 50%;
margin-right: -10px;
}
.carousel-control .icon-prev,
.carousel-control .icon-next {
width: 20px;
height: 20px;
margin-top: -10px;
line-height: 1;
font-family: serif;
}
.carousel-control .icon-prev:before {
content: '\2039';
}
.carousel-control .icon-next:before {
content: '\203a';
}
.carousel-indicators {
position: absolute;
bottom: 10px;
left: 50%;
z-index: 15;
width: 60%;
margin-left: -30%;
padding-left: 0;
list-style: none;
text-align: center;
}
.carousel-indicators li {
display: inline-block;
width: 10px;
height: 10px;
margin: 1px;
text-indent: -999px;
border: 1px solid #ffffff;
border-radius: 10px;
cursor: pointer;
background-color: #000 \9;
background-color: rgba(0, 0, 0, 0);
}
.carousel-indicators .active {
margin: 0;
width: 12px;
height: 12px;
background-color: #ffffff;
}
.carousel-caption {
position: absolute;
left: 15%;
right: 15%;
bottom: 20px;
z-index: 10;
padding-top: 20px;
padding-bottom: 20px;
color: #ffffff;
text-align: center;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.carousel-caption .btn {
text-shadow: none;
}
@media screen and (min-width: 768px) {
.carousel-control .<API key>,
.carousel-control .<API key>,
.carousel-control .icon-prev,
.carousel-control .icon-next {
width: 30px;
height: 30px;
margin-top: -15px;
font-size: 30px;
}
.carousel-control .<API key>,
.carousel-control .icon-prev {
margin-left: -15px;
}
.carousel-control .<API key>,
.carousel-control .icon-next {
margin-right: -15px;
}
.carousel-caption {
left: 20%;
right: 20%;
padding-bottom: 30px;
}
.carousel-indicators {
bottom: 20px;
}
}
.clearfix:before,
.clearfix:after,
.dl-horizontal dd:before,
.dl-horizontal dd:after,
.container:before,
.container:after,
.container-fluid:before,
.container-fluid:after,
.row:before,
.row:after,
.form-horizontal .form-group:before,
.form-horizontal .form-group:after,
.btn-toolbar:before,
.btn-toolbar:after,
.btn-group-vertical > .btn-group:before,
.btn-group-vertical > .btn-group:after,
.nav:before,
.nav:after,
.navbar:before,
.navbar:after,
.navbar-header:before,
.navbar-header:after,
.navbar-collapse:before,
.navbar-collapse:after,
.pager:before,
.pager:after,
.panel-body:before,
.panel-body:after,
.modal-footer:before,
.modal-footer:after {
content: " ";
display: table;
}
.clearfix:after,
.dl-horizontal dd:after,
.container:after,
.container-fluid:after,
.row:after,
.form-horizontal .form-group:after,
.btn-toolbar:after,
.btn-group-vertical > .btn-group:after,
.nav:after,
.navbar:after,
.navbar-header:after,
.navbar-collapse:after,
.pager:after,
.panel-body:after,
.modal-footer:after {
clear: both;
}
.center-block {
display: block;
margin-left: auto;
margin-right: auto;
}
.pull-right {
float: right !important;
}
.pull-left {
float: left !important;
}
.hide {
display: none !important;
}
.show {
display: block !important;
}
.invisible {
visibility: hidden;
}
.text-hide {
font: 0/0 a;
color: transparent;
text-shadow: none;
background-color: transparent;
border: 0;
}
.hidden {
display: none !important;
}
.affix {
position: fixed;
}
@-ms-viewport {
width: device-width;
}
.visible-xs,
.visible-sm,
.visible-md,
.visible-lg {
display: none !important;
}
.visible-xs-block,
.visible-xs-inline,
.<API key>,
.visible-sm-block,
.visible-sm-inline,
.<API key>,
.visible-md-block,
.visible-md-inline,
.<API key>,
.visible-lg-block,
.visible-lg-inline,
.<API key> {
display: none !important;
}
@media (max-width: 767px) {
.visible-xs {
display: block !important;
}
table.visible-xs {
display: table;
}
tr.visible-xs {
display: table-row !important;
}
th.visible-xs,
td.visible-xs {
display: table-cell !important;
}
}
@media (max-width: 767px) {
.visible-xs-block {
display: block !important;
}
}
@media (max-width: 767px) {
.visible-xs-inline {
display: inline !important;
}
}
@media (max-width: 767px) {
.<API key> {
display: inline-block !important;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.visible-sm {
display: block !important;
}
table.visible-sm {
display: table;
}
tr.visible-sm {
display: table-row !important;
}
th.visible-sm,
td.visible-sm {
display: table-cell !important;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.visible-sm-block {
display: block !important;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.visible-sm-inline {
display: inline !important;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.<API key> {
display: inline-block !important;
}
}
@media (min-width: 992px) and (max-width: 1199px) {
.visible-md {
display: block !important;
}
table.visible-md {
display: table;
}
tr.visible-md {
display: table-row !important;
}
th.visible-md,
td.visible-md {
display: table-cell !important;
}
}
@media (min-width: 992px) and (max-width: 1199px) {
.visible-md-block {
display: block !important;
}
}
@media (min-width: 992px) and (max-width: 1199px) {
.visible-md-inline {
display: inline !important;
}
}
@media (min-width: 992px) and (max-width: 1199px) {
.<API key> {
display: inline-block !important;
}
}
@media (min-width: 1200px) {
.visible-lg {
display: block !important;
}
table.visible-lg {
display: table;
}
tr.visible-lg {
display: table-row !important;
}
th.visible-lg,
td.visible-lg {
display: table-cell !important;
}
}
@media (min-width: 1200px) {
.visible-lg-block {
display: block !important;
}
}
@media (min-width: 1200px) {
.visible-lg-inline {
display: inline !important;
}
}
@media (min-width: 1200px) {
.<API key> {
display: inline-block !important;
}
}
@media (max-width: 767px) {
.hidden-xs {
display: none !important;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.hidden-sm {
display: none !important;
}
}
@media (min-width: 992px) and (max-width: 1199px) {
.hidden-md {
display: none !important;
}
}
@media (min-width: 1200px) {
.hidden-lg {
display: none !important;
}
}
.visible-print {
display: none !important;
}
@media print {
.visible-print {
display: block !important;
}
table.visible-print {
display: table;
}
tr.visible-print {
display: table-row !important;
}
th.visible-print,
td.visible-print {
display: table-cell !important;
}
}
.visible-print-block {
display: none !important;
}
@media print {
.visible-print-block {
display: block !important;
}
}
.<API key> {
display: none !important;
}
@media print {
.<API key> {
display: inline !important;
}
}
.<API key> {
display: none !important;
}
@media print {
.<API key> {
display: inline-block !important;
}
}
@media print {
.hidden-print {
display: none !important;
}
}
.navbar {
border: none;
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.navbar-brand {
font-size: 24px;
}
.navbar-inverse .form-control {
color: #fff;
}
.navbar-inverse .form-control::-moz-placeholder {
color: #b2dbfb;
opacity: 1;
}
.navbar-inverse .form-control:-<API key> {
color: #b2dbfb;
}
.navbar-inverse .form-control::-<API key> {
color: #b2dbfb;
}
.navbar-inverse .form-control[type=text] {
-webkit-box-shadow: inset 0 -1px 0 #b2dbfb;
box-shadow: inset 0 -1px 0 #b2dbfb;
}
.navbar-inverse .form-control[type=text]:focus {
-webkit-box-shadow: inset 0 -2px 0 #ffffff;
box-shadow: inset 0 -2px 0 #ffffff;
}
.navbar-nav > li > .dropdown-menu {
margin-top: 2px;
}
.btn-default {
-<API key>: 200% 200%;
background-size: 200%;
background-position: 50%;
}
.btn-default:hover,
.btn-default:active:hover,
.btn-default:focus {
background-color: #f0f0f0;
}
.btn-default:active {
background-color: #f0f0f0;
background-image: -<API key>(circle, #f0f0f0 10%, #ffffff 11%);
background-image: -o-radial-gradient(circle, #f0f0f0 10%, #ffffff 11%);
background-image: radial-gradient(circle, #f0f0f0 10%, #ffffff 11%);
background-repeat: no-repeat;
-<API key>: 1000% 1000%;
background-size: 1000%;
-webkit-box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
}
.btn-primary {
-<API key>: 200% 200%;
background-size: 200%;
background-position: 50%;
}
.btn-primary:hover,
.btn-primary:active:hover,
.btn-primary:focus {
background-color: #0d87e9;
}
.btn-primary:active {
background-color: #0d87e9;
background-image: -<API key>(circle, #0d87e9 10%, #2196f3 11%);
background-image: -o-radial-gradient(circle, #0d87e9 10%, #2196f3 11%);
background-image: radial-gradient(circle, #0d87e9 10%, #2196f3 11%);
background-repeat: no-repeat;
-<API key>: 1000% 1000%;
background-size: 1000%;
-webkit-box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
}
.btn-success {
-<API key>: 200% 200%;
background-size: 200%;
background-position: 50%;
}
.btn-success:hover,
.btn-success:active:hover,
.btn-success:focus {
background-color: #439a46;
}
.btn-success:active {
background-color: #439a46;
background-image: -<API key>(circle, #439a46 10%, #4caf50 11%);
background-image: -o-radial-gradient(circle, #439a46 10%, #4caf50 11%);
background-image: radial-gradient(circle, #439a46 10%, #4caf50 11%);
background-repeat: no-repeat;
-<API key>: 1000% 1000%;
background-size: 1000%;
-webkit-box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
}
.btn-info {
-<API key>: 200% 200%;
background-size: 200%;
background-position: 50%;
}
.btn-info:hover,
.btn-info:active:hover,
.btn-info:focus {
background-color: #862197;
}
.btn-info:active {
background-color: #862197;
background-image: -<API key>(circle, #862197 10%, #9c27b0 11%);
background-image: -o-radial-gradient(circle, #862197 10%, #9c27b0 11%);
background-image: radial-gradient(circle, #862197 10%, #9c27b0 11%);
background-repeat: no-repeat;
-<API key>: 1000% 1000%;
background-size: 1000%;
-webkit-box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
}
.btn-warning {
-<API key>: 200% 200%;
background-size: 200%;
background-position: 50%;
}
.btn-warning:hover,
.btn-warning:active:hover,
.btn-warning:focus {
background-color: #e08600;
}
.btn-warning:active {
background-color: #e08600;
background-image: -<API key>(circle, #e08600 10%, #ff9800 11%);
background-image: -o-radial-gradient(circle, #e08600 10%, #ff9800 11%);
background-image: radial-gradient(circle, #e08600 10%, #ff9800 11%);
background-repeat: no-repeat;
-<API key>: 1000% 1000%;
background-size: 1000%;
-webkit-box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
}
.btn-danger {
-<API key>: 200% 200%;
background-size: 200%;
background-position: 50%;
}
.btn-danger:hover,
.btn-danger:active:hover,
.btn-danger:focus {
background-color: #cb171e;
}
.btn-danger:active {
background-color: #cb171e;
background-image: -<API key>(circle, #cb171e 10%, #e51c23 11%);
background-image: -o-radial-gradient(circle, #cb171e 10%, #e51c23 11%);
background-image: radial-gradient(circle, #cb171e 10%, #e51c23 11%);
background-repeat: no-repeat;
-<API key>: 1000% 1000%;
background-size: 1000%;
-webkit-box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3);
}
.btn {
text-transform: uppercase;
border-right: none;
border-bottom: none;
-webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
-webkit-transition: all 0.2s;
-o-transition: all 0.2s;
transition: all 0.2s;
}
.btn-link {
-webkit-box-shadow: none;
box-shadow: none;
}
.btn-link:hover,
.btn-link:focus {
color: #2196f3;
text-decoration: none;
}
.btn-default.disabled {
border: 1px solid #eeeeee;
}
.btn-group .btn + .btn,
.btn-group .btn + .btn-group,
.btn-group .btn-group + .btn,
.btn-group .btn-group + .btn-group {
margin-left: 0;
}
.btn-group-vertical > .btn + .btn,
.btn-group-vertical > .btn + .btn-group,
.btn-group-vertical > .btn-group + .btn,
.btn-group-vertical > .btn-group + .btn-group {
margin-top: 0;
}
body {
-<API key>: antialiased;
letter-spacing: .1px;
text-rendering: optimizeLegibility;
}
p {
margin: 0 0 1em;
}
input,
button {
-<API key>: antialiased;
letter-spacing: .1px;
text-rendering: optimizeLegibility;
}
a {
-webkit-transition: all 0.2s;
-o-transition: all 0.2s;
transition: all 0.2s;
}
label {
font-weight: normal;
}
textarea,
textarea.form-control,
input.form-control,
input[type=text],
input[type=password],
input[type=email],
input[type=number],
[type=text].form-control,
[type=password].form-control,
[type=email].form-control,
[type=tel].form-control,
[contenteditable].form-control {
padding: 0;
border: none;
border-radius: 0;
-webkit-appearance: none;
-webkit-box-shadow: inset 0 -1px 0 #dddddd;
box-shadow: inset 0 -1px 0 #dddddd;
font-size: 16px;
}
textarea:focus,
textarea.form-control:focus,
input.form-control:focus,
input[type=text]:focus,
input[type=password]:focus,
input[type=email]:focus,
input[type=number]:focus,
[type=text].form-control:focus,
[type=password].form-control:focus,
[type=email].form-control:focus,
[type=tel].form-control:focus,
[contenteditable].form-control:focus {
-webkit-box-shadow: inset 0 -2px 0 #2196f3;
box-shadow: inset 0 -2px 0 #2196f3;
}
textarea[disabled],
textarea.form-control[disabled],
input.form-control[disabled],
input[type=text][disabled],
input[type=password][disabled],
input[type=email][disabled],
input[type=number][disabled],
[type=text].form-control[disabled],
[type=password].form-control[disabled],
[type=email].form-control[disabled],
[type=tel].form-control[disabled],
[contenteditable].form-control[disabled],
textarea[readonly],
textarea.form-control[readonly],
input.form-control[readonly],
input[type=text][readonly],
input[type=password][readonly],
input[type=email][readonly],
input[type=number][readonly],
[type=text].form-control[readonly],
[type=password].form-control[readonly],
[type=email].form-control[readonly],
[type=tel].form-control[readonly],
[contenteditable].form-control[readonly] {
-webkit-box-shadow: none;
box-shadow: none;
border-bottom: 1px dotted #ddd;
}
textarea.input-sm,
textarea.form-control.input-sm,
input.form-control.input-sm,
input[type=text].input-sm,
input[type=password].input-sm,
input[type=email].input-sm,
input[type=number].input-sm,
[type=text].form-control.input-sm,
[type=password].form-control.input-sm,
[type=email].form-control.input-sm,
[type=tel].form-control.input-sm,
[contenteditable].form-control.input-sm {
font-size: 12px;
}
textarea.input-lg,
textarea.form-control.input-lg,
input.form-control.input-lg,
input[type=text].input-lg,
input[type=password].input-lg,
input[type=email].input-lg,
input[type=number].input-lg,
[type=text].form-control.input-lg,
[type=password].form-control.input-lg,
[type=email].form-control.input-lg,
[type=tel].form-control.input-lg,
[contenteditable].form-control.input-lg {
font-size: 17px;
}
select,
select.form-control {
border: 0;
border-radius: 0;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
padding-left: 0;
padding-right: 0\9;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAMAAACelLz8AAAAJ1BMVEVmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmaP/QSjAAAADHRSTlMAAgMJC0uWpKa6wMxMdjkoAAAANUlEQVR4AeXJyQEAERAAsNl7Hf3X6xt0QL6JpZWq30pdvdadme+<API key>=);
-<API key>: 13px 13px;
background-size: 13px;
background-repeat: no-repeat;
background-position: right center;
-webkit-box-shadow: inset 0 -1px 0 #dddddd;
box-shadow: inset 0 -1px 0 #dddddd;
font-size: 16px;
line-height: 1.5;
}
select::-ms-expand,
select.form-control::-ms-expand {
display: none;
}
select.input-sm,
select.form-control.input-sm {
font-size: 12px;
}
select.input-lg,
select.form-control.input-lg {
font-size: 17px;
}
select:focus,
select.form-control:focus {
-webkit-box-shadow: inset 0 -2px 0 #2196f3;
box-shadow: inset 0 -2px 0 #2196f3;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAMAAACelLz8AAAAJ1BMVEUhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISF8S9ewAAAADHRSTlMAAgMJC0uWpKa6wMxMdjkoAAAANUlEQVR4AeXJyQEAERAAsNl7Hf3X6xt0QL6JpZWq30pdvdadme+<API key>=);
}
select[multiple],
select.form-control[multiple] {
background: none;
}
.radio label,
.radio-inline label,
.checkbox label,
.checkbox-inline label {
padding-left: 25px;
}
.radio input[type="radio"],
.radio-inline input[type="radio"],
.checkbox input[type="radio"],
.checkbox-inline input[type="radio"],
.radio input[type="checkbox"],
.radio-inline input[type="checkbox"],
.checkbox input[type="checkbox"],
.checkbox-inline input[type="checkbox"] {
margin-left: -25px;
}
input[type="radio"],
.radio input[type="radio"],
.radio-inline input[type="radio"] {
position: relative;
margin-top: 5px;
margin-right: 4px;
vertical-align: -4px;
border: none;
background-color: transparent;
-webkit-appearance: none;
appearance: none;
cursor: pointer;
}
input[type="radio"]:focus,
.radio input[type="radio"]:focus,
.radio-inline input[type="radio"]:focus {
outline: none;
}
input[type="radio"]:before,
.radio input[type="radio"]:before,
.radio-inline input[type="radio"]:before,
input[type="radio"]:after,
.radio input[type="radio"]:after,
.radio-inline input[type="radio"]:after {
content: "";
display: block;
width: 18px;
height: 18px;
margin-top: -3px;
border-radius: 50%;
-webkit-transition: 240ms;
-o-transition: 240ms;
transition: 240ms;
}
input[type="radio"]:before,
.radio input[type="radio"]:before,
.radio-inline input[type="radio"]:before {
position: absolute;
left: 0;
top: 0;
background-color: #2196f3;
-webkit-transform: scale(0);
-ms-transform: scale(0);
-o-transform: scale(0);
transform: scale(0);
}
input[type="radio"]:after,
.radio input[type="radio"]:after,
.radio-inline input[type="radio"]:after {
border: 2px solid #666666;
}
input[type="radio"]:checked:before,
.radio input[type="radio"]:checked:before,
.radio-inline input[type="radio"]:checked:before {
-webkit-transform: scale(0.5);
-ms-transform: scale(0.5);
-o-transform: scale(0.5);
transform: scale(0.5);
}
input[type="radio"]:disabled:checked:before,
.radio input[type="radio"]:disabled:checked:before,
.radio-inline input[type="radio"]:disabled:checked:before {
background-color: #bbbbbb;
}
input[type="radio"]:checked:after,
.radio input[type="radio"]:checked:after,
.radio-inline input[type="radio"]:checked:after {
border-color: #2196f3;
}
input[type="radio"]:disabled:after,
.radio input[type="radio"]:disabled:after,
.radio-inline input[type="radio"]:disabled:after,
input[type="radio"]:disabled:checked:after,
.radio input[type="radio"]:disabled:checked:after,
.radio-inline input[type="radio"]:disabled:checked:after {
border-color: #bbbbbb;
}
input[type="checkbox"],
.checkbox input[type="checkbox"],
.checkbox-inline input[type="checkbox"] {
position: relative;
vertical-align: -4px;
border: none;
-webkit-appearance: none;
appearance: none;
cursor: pointer;
}
input[type="checkbox"]:focus,
.checkbox input[type="checkbox"]:focus,
.checkbox-inline input[type="checkbox"]:focus {
outline: none;
}
input[type="checkbox"]:after,
.checkbox input[type="checkbox"]:after,
.checkbox-inline input[type="checkbox"]:after {
content: "";
display: block;
width: 18px;
height: 18px;
margin-top: -2px;
margin-right: 5px;
border: 2px solid #666666;
border-radius: 2px;
-webkit-transition: 240ms;
-o-transition: 240ms;
transition: 240ms;
}
input[type="checkbox"]:checked:before,
.checkbox input[type="checkbox"]:checked:before,
.checkbox-inline input[type="checkbox"]:checked:before {
content: "";
position: absolute;
top: 0;
left: 6px;
display: table;
width: 6px;
height: 12px;
border: 2px solid #fff;
border-top-width: 0;
border-left-width: 0;
-webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
}
input[type="checkbox"]:checked:after,
.checkbox input[type="checkbox"]:checked:after,
.checkbox-inline input[type="checkbox"]:checked:after {
background-color: #2196f3;
border-color: #2196f3;
}
input[type="checkbox"]:disabled:after,
.checkbox input[type="checkbox"]:disabled:after,
.checkbox-inline input[type="checkbox"]:disabled:after {
border-color: #bbbbbb;
}
input[type="checkbox"]:disabled:checked:after,
.checkbox input[type="checkbox"]:disabled:checked:after,
.checkbox-inline input[type="checkbox"]:disabled:checked:after {
background-color: #bbbbbb;
border-color: transparent;
}
.has-warning input:not([type=checkbox]),
.has-warning .form-control,
.has-warning input:not([type=checkbox]):focus,
.has-warning .form-control:focus {
-webkit-box-shadow: inset 0 -2px 0 #ff9800;
box-shadow: inset 0 -2px 0 #ff9800;
}
.has-error input:not([type=checkbox]),
.has-error .form-control,
.has-error input:not([type=checkbox]):focus,
.has-error .form-control:focus {
-webkit-box-shadow: inset 0 -2px 0 #e51c23;
box-shadow: inset 0 -2px 0 #e51c23;
}
.has-success input:not([type=checkbox]),
.has-success .form-control,
.has-success input:not([type=checkbox]):focus,
.has-success .form-control:focus {
-webkit-box-shadow: inset 0 -2px 0 #4caf50;
box-shadow: inset 0 -2px 0 #4caf50;
}
.nav-tabs > li > a,
.nav-tabs > li > a:focus {
margin-right: 0;
background-color: transparent;
border: none;
color: #666666;
-webkit-box-shadow: inset 0 -1px 0 #dddddd;
box-shadow: inset 0 -1px 0 #dddddd;
-webkit-transition: all 0.2s;
-o-transition: all 0.2s;
transition: all 0.2s;
}
.nav-tabs > li > a:hover,
.nav-tabs > li > a:focus:hover {
background-color: transparent;
-webkit-box-shadow: inset 0 -2px 0 #2196f3;
box-shadow: inset 0 -2px 0 #2196f3;
color: #2196f3;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus {
border: none;
-webkit-box-shadow: inset 0 -2px 0 #2196f3;
box-shadow: inset 0 -2px 0 #2196f3;
color: #2196f3;
}
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus:hover {
border: none;
color: #2196f3;
}
.nav-tabs > li.disabled > a {
-webkit-box-shadow: inset 0 -1px 0 #dddddd;
box-shadow: inset 0 -1px 0 #dddddd;
}
.nav-tabs.nav-justified > li > a,
.nav-tabs.nav-justified > li > a:hover,
.nav-tabs.nav-justified > .active > a,
.nav-tabs.nav-justified > .active > a:hover {
border: none;
}
.nav-tabs .dropdown-menu {
margin-top: 0;
}
.dropdown-menu {
border: none;
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.alert {
border: none;
color: #fff;
}
.alert-success {
background-color: #4caf50;
}
.alert-info {
background-color: #9c27b0;
}
.alert-warning {
background-color: #ff9800;
}
.alert-danger {
background-color: #e51c23;
}
.alert a:not(.close),
.alert .alert-link {
color: #fff;
font-weight: bold;
}
.alert .close {
color: #fff;
}
.badge {
padding: 3px 6px 5px;
}
.progress {
position: relative;
z-index: 1;
height: 6px;
border-radius: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.progress-bar {
-webkit-box-shadow: none;
box-shadow: none;
}
.progress-bar:last-child {
border-radius: 0 3px 3px 0;
}
.progress-bar:last-child:before {
display: block;
content: "";
position: absolute;
width: 100%;
height: 100%;
left: 0;
right: 0;
z-index: -1;
background-color: #cae6fc;
}
.<API key>:last-child.progress-bar:before {
background-color: #c7e7c8;
}
.progress-bar-info:last-child.progress-bar:before {
background-color: #edc9f3;
}
.<API key>:last-child.progress-bar:before {
background-color: #ffe0b3;
}
.progress-bar-danger:last-child.progress-bar:before {
background-color: #f28e92;
}
.close {
font-size: 34px;
font-weight: 300;
line-height: 24px;
opacity: 0.6;
}
.close:hover {
opacity: 1;
}
.list-group-item {
padding: 15px;
}
.<API key> {
color: #bbbbbb;
}
.well {
border-radius: 0;
-webkit-box-shadow: none;
box-shadow: none;
}
.panel {
border: none;
border-radius: 2px;
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.panel-heading {
border-bottom: none;
}
.panel-footer {
border-top: none;
}
.popover {
border: none;
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.carousel-caption h1,
.carousel-caption h2,
.carousel-caption h3,
.carousel-caption h4,
.carousel-caption h5,
.carousel-caption h6 {
color: inherit;
}
|
package p;
import java.util.Arrays;
import java.util.List;
public class A {
void m() {
List<Integer> ls = Arrays.asList();
for (Integer integer : ls) {
try {
int a = 5 / integer;
System.out.println(Integer.toString(a));
} catch (<API key> iae) {
} catch (<API key> npe) {
}
}
}
}
|
package org.eclipse.packagedrone.utils.validation;
import java.util.ArrayList;
import java.util.List;
import javax.validation.<API key>;
import javax.validation.spi.ValidationProvider;
import org.osgi.framework.BundleContext;
import org.osgi.framework.FrameworkUtil;
import org.osgi.util.tracker.ServiceTracker;
public class <API key> implements <API key>
{
@SuppressWarnings ( "rawtypes" )
private final ServiceTracker<ValidationProvider, ValidationProvider<?>> tracker;
public <API key> ()
{
final BundleContext context = FrameworkUtil.getBundle ( <API key>.class ).getBundleContext ();
this.tracker = new ServiceTracker<> ( context, ValidationProvider.class, null );
}
public void open ()
{
this.tracker.open ();
}
public void close ()
{
this.tracker.close ();
}
public int getTrackingCount ()
{
return this.tracker.getTrackingCount ();
}
@Override
public List<ValidationProvider<?>> <API key> ()
{
return new ArrayList<> ( this.tracker.getTracked ().values () );
}
}
|
package org.eclipse.che.plugin.svn.shared;
import java.util.List;
import javax.validation.constraints.NotNull;
import org.eclipse.che.commons.annotation.Nullable;
import org.eclipse.che.dto.shared.DTO;
/** @author Vladyslav Zhukovskyi */
@DTO
public interface MoveRequest {
/** @return the project path the request is associated with. */
String getProjectPath();
/** @param projectPath the project path to set */
void setProjectPath(@NotNull final String projectPath);
/** @param projectPath the project path to use */
MoveRequest withProjectPath(@NotNull final String projectPath);
/**
* Source file or folder path that should be moved.
*
* @return source file or folder path to be moved
*/
List<String> getSource();
/** @param source file or folder path to be moved */
void setSource(@NotNull final List<String> source);
/** @param source file or folder path to be moved */
MoveRequest withSource(@NotNull final List<String> source);
/**
* Destination file or folder path.
*
* @return destination file or folder path
*/
String getDestination();
/** @param destination file or folder path */
void setDestination(@NotNull final String destination);
/** @param destination file or folder path */
MoveRequest withDestination(@NotNull final String destination);
/**
* Operation comment.
*
* @return commentary
*/
String getComment();
/** @param comment commentary */
void setComment(String comment);
/** @param comment commentary */
MoveRequest withComment(String comment);
/** @return user name for authentication */
String getUsername();
/** Set user name for authentication. */
void setUsername(@Nullable final String username);
/** @return {@link CheckoutRequest} with specified user name for authentication */
MoveRequest withUsername(@Nullable final String username);
/** @return password for authentication */
String getPassword();
/** Set password for authentication. */
void setPassword(@Nullable final String password);
/** @return {@link CheckoutRequest} with specified password for authentication */
MoveRequest withPassword(@Nullable final String password);
}
|
package org.bndtools.templating.jgit;
import java.net.URI;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import org.osgi.util.promise.Promise;
import aQute.lib.json.JSONCodec;
import aQute.lib.promise.PromiseExecutor;
public class GitHub {
private static final String URL_PREFIX = "https://api.github.com/repos/";
private final Cache cache;
private final PromiseExecutor executor;
public GitHub(Cache cache, ExecutorService executor) {
this.cache = cache;
this.executor = new PromiseExecutor(executor);
}
// TODO: use the async download service when available.
public Promise<<API key>> loadRepoDetails(final String repository) throws Exception {
return executor.submit(new Callable<<API key>>() {
@Override
public <API key> call() throws Exception {
byte[] detailsDtoData = cache.download(URI.create(URL_PREFIX + repository));
return new JSONCodec().dec().from(detailsDtoData).get(<API key>.class);
}
});
}
}
|
package com.maddyhome.idea.vim.action.motion.visual;
import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.editor.Editor;
import com.maddyhome.idea.vim.VimPlugin;
import com.maddyhome.idea.vim.action.VimCommandAction;
import com.maddyhome.idea.vim.command.Command;
import com.maddyhome.idea.vim.command.MappingMode;
import com.maddyhome.idea.vim.handler.<API key>;
import org.jetbrains.annotations.NotNull;
import javax.swing.*;
import java.util.List;
import java.util.Set;
/**
* @author vlan
*/
public class <API key> extends VimCommandAction {
public <API key>() {
super(new <API key>() {
protected boolean execute(@NotNull Editor editor, @NotNull DataContext context, @NotNull Command cmd) {
return VimPlugin.getMotion().<API key>(editor);
}
});
}
@NotNull
@Override
public Set<MappingMode> getMappingModes() {
return MappingMode.N;
}
@NotNull
@Override
public Set<List<KeyStroke>> getKeyStrokesSet() {
return parseKeysSet("gv");
}
@NotNull
@Override
public Command.Type getType() {
return Command.Type.OTHER_READONLY;
}
}
|
#ifndef <API key>
#define <API key>
/* needed for KDE_EXPORT and KDE_IMPORT macros */
#include <kdemacros.h>
#ifndef AMAROKSHARED_EXPORT
# ifdef <API key>
/* We are building this library */
# define AMAROKSHARED_EXPORT KDE_EXPORT
# else
/* We are using this library */
# define AMAROKSHARED_EXPORT KDE_IMPORT
# endif
#endif // AMAROKSHARED_EXPORT
#endif // <API key>
|
#include <asm/segment.h>
#include "fpu_system.h"
#include "exception.h"
#include "reg_constant.h"
#include "fpu_emu.h"
#include "control_w.h"
#include "status_w.h"
#define EXTENDED_Ebias 0x3fff
#define EXTENDED_Emin (-0x3ffe) /* smallest valid exponent */
#define DOUBLE_Emax 1023 /* largest valid exponent */
#define DOUBLE_Ebias 1023
#define DOUBLE_Emin (-1022) /* smallest valid exponent */
#define SINGLE_Emax 127 /* largest valid exponent */
#define SINGLE_Ebias 127
#define SINGLE_Emin (-126) /* smallest valid exponent */
static void write_to_extended(FPU_REG *rp, char *d);
/* Get a long double from user memory */
int reg_load_extended(long double *s, FPU_REG *loaded_data)
{
unsigned long sigl, sigh, exp;
<API key>;
FPU_verify_area(VERIFY_READ, s, 10);
sigl = get_fs_long((unsigned long *) s);
sigh = get_fs_long(1 + (unsigned long *) s);
exp = get_fs_word(4 + (unsigned short *) s);
RE_ENTRANT_CHECK_ON;
loaded_data->tag = TW_Valid; /* Default */
loaded_data->sigl = sigl;
loaded_data->sigh = sigh;
if (exp & 0x8000)
loaded_data->sign = SIGN_NEG;
else
loaded_data->sign = SIGN_POS;
exp &= 0x7fff;
loaded_data->exp = exp - EXTENDED_Ebias + EXP_BIAS;
if ( exp == 0 )
{
if ( !(sigh | sigl) )
{
loaded_data->tag = TW_Zero;
return 0;
}
/* The number is a de-normal or pseudodenormal. */
if (sigh & 0x80000000)
{
/* Is a pseudodenormal. */
/* Convert it for internal use. */
/* This is non-80486 behaviour because the number
loses its 'denormal' identity. */
loaded_data->exp++;
return 1;
}
else
{
/* Is a denormal. */
/* Convert it for internal use. */
loaded_data->exp++;
normalize_nuo(loaded_data);
return 0;
}
}
else if ( exp == 0x7fff )
{
if ( !((sigh ^ 0x80000000) | sigl) )
{
/* Matches the bit pattern for Infinity. */
loaded_data->exp = EXP_Infinity;
loaded_data->tag = TW_Infinity;
return 0;
}
loaded_data->exp = EXP_NaN;
loaded_data->tag = TW_NaN;
if ( !(sigh & 0x80000000) )
{
/* NaNs have the ms bit set to 1. */
/* This is therefore an Unsupported NaN data type. */
/* This is non 80486 behaviour */
/* This should generate an Invalid Operand exception
later, so we convert it to a SNaN */
loaded_data->sigh = 0x80000000;
loaded_data->sigl = 0x00000001;
loaded_data->sign = SIGN_NEG;
return 1;
}
return 0;
}
if ( !(sigh & 0x80000000) )
{
/* Unsupported data type. */
/* Valid numbers have the ms bit set to 1. */
/* Unnormal. */
/* Convert it for internal use. */
/* This is non-80486 behaviour */
/* This should generate an Invalid Operand exception
later, so we convert it to a SNaN */
loaded_data->sigh = 0x80000000;
loaded_data->sigl = 0x00000001;
loaded_data->sign = SIGN_NEG;
loaded_data->exp = EXP_NaN;
loaded_data->tag = TW_NaN;
return 1;
}
return 0;
}
/* Get a double from user memory */
int reg_load_double(double *dfloat, FPU_REG *loaded_data)
{
int exp;
unsigned m64, l64;
<API key>;
FPU_verify_area(VERIFY_READ, dfloat, 8);
m64 = get_fs_long(1 + (unsigned long *) dfloat);
l64 = get_fs_long((unsigned long *) dfloat);
RE_ENTRANT_CHECK_ON;
if (m64 & 0x80000000)
loaded_data->sign = SIGN_NEG;
else
loaded_data->sign = SIGN_POS;
exp = ((m64 & 0x7ff00000) >> 20) - DOUBLE_Ebias;
m64 &= 0xfffff;
if (exp > DOUBLE_Emax)
{
/* Infinity or NaN */
if ((m64 == 0) && (l64 == 0))
{
/* +- infinity */
loaded_data->sigh = 0x80000000;
loaded_data->sigl = 0x00000000;
loaded_data->exp = EXP_Infinity;
loaded_data->tag = TW_Infinity;
return 0;
}
else
{
/* Must be a signaling or quiet NaN */
loaded_data->exp = EXP_NaN;
loaded_data->tag = TW_NaN;
loaded_data->sigh = (m64 << 11) | 0x80000000;
loaded_data->sigh |= l64 >> 21;
loaded_data->sigl = l64 << 11;
return 0; /* The calling function must look for NaNs */
}
}
else if ( exp < DOUBLE_Emin )
{
/* Zero or de-normal */
if ((m64 == 0) && (l64 == 0))
{
/* Zero */
int c = loaded_data->sign;
reg_move(&CONST_Z, loaded_data);
loaded_data->sign = c;
return 0;
}
else
{
/* De-normal */
loaded_data->exp = DOUBLE_Emin + EXP_BIAS;
loaded_data->tag = TW_Valid;
loaded_data->sigh = m64 << 11;
loaded_data->sigh |= l64 >> 21;
loaded_data->sigl = l64 << 11;
normalize_nuo(loaded_data);
return denormal_operand();
}
}
else
{
loaded_data->exp = exp + EXP_BIAS;
loaded_data->tag = TW_Valid;
loaded_data->sigh = (m64 << 11) | 0x80000000;
loaded_data->sigh |= l64 >> 21;
loaded_data->sigl = l64 << 11;
return 0;
}
}
/* Get a float from user memory */
int reg_load_single(float *single, FPU_REG *loaded_data)
{
unsigned m32;
int exp;
<API key>;
FPU_verify_area(VERIFY_READ, single, 4);
m32 = get_fs_long((unsigned long *) single);
RE_ENTRANT_CHECK_ON;
if (m32 & 0x80000000)
loaded_data->sign = SIGN_NEG;
else
loaded_data->sign = SIGN_POS;
if (!(m32 & 0x7fffffff))
{
/* Zero */
int c = loaded_data->sign;
reg_move(&CONST_Z, loaded_data);
loaded_data->sign = c;
return 0;
}
exp = ((m32 & 0x7f800000) >> 23) - SINGLE_Ebias;
m32 = (m32 & 0x7fffff) << 8;
if ( exp < SINGLE_Emin )
{
/* De-normals */
loaded_data->exp = SINGLE_Emin + EXP_BIAS;
loaded_data->tag = TW_Valid;
loaded_data->sigh = m32;
loaded_data->sigl = 0;
normalize_nuo(loaded_data);
return denormal_operand();
}
else if ( exp > SINGLE_Emax )
{
/* Infinity or NaN */
if ( m32 == 0 )
{
/* +- infinity */
loaded_data->sigh = 0x80000000;
loaded_data->sigl = 0x00000000;
loaded_data->exp = EXP_Infinity;
loaded_data->tag = TW_Infinity;
return 0;
}
else
{
/* Must be a signaling or quiet NaN */
loaded_data->exp = EXP_NaN;
loaded_data->tag = TW_NaN;
loaded_data->sigh = m32 | 0x80000000;
loaded_data->sigl = 0;
return 0; /* The calling function must look for NaNs */
}
}
else
{
loaded_data->exp = exp + EXP_BIAS;
loaded_data->sigh = m32 | 0x80000000;
loaded_data->sigl = 0;
loaded_data->tag = TW_Valid;
return 0;
}
}
/* Get a long long from user memory */
void reg_load_int64(long long *_s, FPU_REG *loaded_data)
{
int e;
long long s;
<API key>;
FPU_verify_area(VERIFY_READ, _s, 8);
((unsigned long *)&s)[0] = get_fs_long((unsigned long *) _s);
((unsigned long *)&s)[1] = get_fs_long(1 + (unsigned long *) _s);
RE_ENTRANT_CHECK_ON;
if (s == 0)
{ reg_move(&CONST_Z, loaded_data); return; }
if (s > 0)
loaded_data->sign = SIGN_POS;
else
{
s = -s;
loaded_data->sign = SIGN_NEG;
}
e = EXP_BIAS + 63;
significand(loaded_data) = s;
loaded_data->exp = e;
loaded_data->tag = TW_Valid;
normalize_nuo(loaded_data);
}
/* Get a long from user memory */
void reg_load_int32(long *_s, FPU_REG *loaded_data)
{
long s;
int e;
<API key>;
FPU_verify_area(VERIFY_READ, _s, 4);
s = (long)get_fs_long((unsigned long *) _s);
RE_ENTRANT_CHECK_ON;
if (s == 0)
{ reg_move(&CONST_Z, loaded_data); return; }
if (s > 0)
loaded_data->sign = SIGN_POS;
else
{
s = -s;
loaded_data->sign = SIGN_NEG;
}
e = EXP_BIAS + 31;
loaded_data->sigh = s;
loaded_data->sigl = 0;
loaded_data->exp = e;
loaded_data->tag = TW_Valid;
normalize_nuo(loaded_data);
}
/* Get a short from user memory */
void reg_load_int16(short *_s, FPU_REG *loaded_data)
{
int s, e;
<API key>;
FPU_verify_area(VERIFY_READ, _s, 2);
/* Cast as short to get the sign extended. */
s = (short)get_fs_word((unsigned short *) _s);
RE_ENTRANT_CHECK_ON;
if (s == 0)
{ reg_move(&CONST_Z, loaded_data); return; }
if (s > 0)
loaded_data->sign = SIGN_POS;
else
{
s = -s;
loaded_data->sign = SIGN_NEG;
}
e = EXP_BIAS + 15;
loaded_data->sigh = s << 16;
loaded_data->sigl = 0;
loaded_data->exp = e;
loaded_data->tag = TW_Valid;
normalize_nuo(loaded_data);
}
/* Get a packed bcd array from user memory */
void reg_load_bcd(char *s, FPU_REG *loaded_data)
{
int pos;
unsigned char bcd;
long long l=0;
<API key>;
FPU_verify_area(VERIFY_READ, s, 10);
RE_ENTRANT_CHECK_ON;
for ( pos = 8; pos >= 0; pos
{
l *= 10;
<API key>;
bcd = (unsigned char)get_fs_byte((unsigned char *) s+pos);
RE_ENTRANT_CHECK_ON;
l += bcd >> 4;
l *= 10;
l += bcd & 0x0f;
}
<API key>;
loaded_data->sign =
((unsigned char)get_fs_byte((unsigned char *) s+9)) & 0x80 ?
SIGN_NEG : SIGN_POS;
RE_ENTRANT_CHECK_ON;
if (l == 0)
{
char sign = loaded_data->sign;
reg_move(&CONST_Z, loaded_data);
loaded_data->sign = sign;
}
else
{
significand(loaded_data) = l;
loaded_data->exp = EXP_BIAS + 63;
loaded_data->tag = TW_Valid;
normalize_nuo(loaded_data);
}
}
/* Put a long double into user memory */
int reg_store_extended(long double *d, FPU_REG *st0_ptr)
{
/*
The only exception raised by an attempt to store to an
extended format is the Invalid Stack exception, i.e.
attempting to store from an empty register.
*/
if ( st0_ptr->tag != TW_Empty )
{
<API key>;
FPU_verify_area(VERIFY_WRITE, d, 10);
RE_ENTRANT_CHECK_ON;
write_to_extended(st0_ptr, (char *) d);
return 1;
}
/* Empty register (stack underflow) */
EXCEPTION(EX_StackUnder);
if ( control_word & CW_Invalid )
{
/* The masked response */
/* Put out the QNaN indefinite */
<API key>;
FPU_verify_area(VERIFY_WRITE,d,10);
put_fs_long(0, (unsigned long *) d);
put_fs_long(0xc0000000, 1 + (unsigned long *) d);
put_fs_word(0xffff, 4 + (short *) d);
RE_ENTRANT_CHECK_ON;
return 1;
}
else
return 0;
}
/* Put a double into user memory */
int reg_store_double(double *dfloat, FPU_REG *st0_ptr)
{
unsigned long l[2];
unsigned long increment = 0; /* avoid gcc warnings */
char st0_tag = st0_ptr->tag;
if (st0_tag == TW_Valid)
{
int precision_loss;
int exp;
FPU_REG tmp;
reg_move(st0_ptr, &tmp);
exp = tmp.exp - EXP_BIAS;
if ( exp < DOUBLE_Emin ) /* It may be a denormal */
{
/* A denormal will always underflow. */
#ifndef PECULIAR_486
/* An 80486 is supposed to be able to generate
a denormal exception here, but... */
if ( st0_ptr->exp <= EXP_UNDER )
{
/* Underflow has priority. */
if ( control_word & CW_Underflow )
denormal_operand();
}
#endif PECULIAR_486
tmp.exp += -DOUBLE_Emin + 52; /* largest exp to be 51 */
if ( (precision_loss = round_to_int(&tmp)) )
{
#ifdef PECULIAR_486
/* Did it round to a non-denormal ? */
/* This behaviour might be regarded as peculiar, it appears
that the 80486 rounds to the dest precision, then
converts to decide underflow. */
if ( !((tmp.sigh == 0x00100000) && (tmp.sigl == 0) &&
(st0_ptr->sigl & 0x000007ff)) )
#endif PECULIAR_486
{
EXCEPTION(EX_Underflow);
/* This is a special case: see sec 16.2.5.1 of
the 80486 book */
if ( !(control_word & CW_Underflow) )
return 0;
}
EXCEPTION(precision_loss);
if ( !(control_word & CW_Precision) )
return 0;
}
l[0] = tmp.sigl;
l[1] = tmp.sigh;
}
else
{
if ( tmp.sigl & 0x000007ff )
{
precision_loss = 1;
switch (control_word & CW_RC)
{
case RC_RND:
/* Rounding can get a little messy.. */
increment = ((tmp.sigl & 0x7ff) > 0x400) | /* nearest */
((tmp.sigl & 0xc00) == 0xc00); /* odd -> even */
break;
case RC_DOWN: /* towards -infinity */
increment = (tmp.sign == SIGN_POS) ? 0 : tmp.sigl & 0x7ff;
break;
case RC_UP: /* towards +infinity */
increment = (tmp.sign == SIGN_POS) ? tmp.sigl & 0x7ff : 0;
break;
case RC_CHOP:
increment = 0;
break;
}
/* Truncate the mantissa */
tmp.sigl &= 0xfffff800;
if ( increment )
{
if ( tmp.sigl >= 0xfffff800 )
{
/* the sigl part overflows */
if ( tmp.sigh == 0xffffffff )
{
/* The sigh part overflows */
tmp.sigh = 0x80000000;
exp++;
if (exp >= EXP_OVER)
goto overflow;
}
else
{
tmp.sigh ++;
}
tmp.sigl = 0x00000000;
}
else
{
/* We only need to increment sigl */
tmp.sigl += 0x00000800;
}
}
}
else
precision_loss = 0;
l[0] = (tmp.sigl >> 11) | (tmp.sigh << 21);
l[1] = ((tmp.sigh >> 11) & 0xfffff);
if ( exp > DOUBLE_Emax )
{
overflow:
EXCEPTION(EX_Overflow);
if ( !(control_word & CW_Overflow) )
return 0;
<API key>();
if ( !(control_word & CW_Precision) )
return 0;
/* This is a special case: see sec 16.2.5.1 of the 80486 book */
/* Overflow to infinity */
l[0] = 0x00000000; /* Set to */
l[1] = 0x7ff00000; /* + INF */
}
else
{
if ( precision_loss )
{
if ( increment )
<API key>();
else
<API key>();
}
/* Add the exponent */
l[1] |= (((exp+DOUBLE_Ebias) & 0x7ff) << 20);
}
}
}
else if (st0_tag == TW_Zero)
{
/* Number is zero */
l[0] = 0;
l[1] = 0;
}
else if (st0_tag == TW_Infinity)
{
l[0] = 0;
l[1] = 0x7ff00000;
}
else if (st0_tag == TW_NaN)
{
/* See if we can get a valid NaN from the FPU_REG */
l[0] = (st0_ptr->sigl >> 11) | (st0_ptr->sigh << 21);
l[1] = ((st0_ptr->sigh >> 11) & 0xfffff);
if ( !(st0_ptr->sigh & 0x40000000) )
{
/* It is a signalling NaN */
EXCEPTION(EX_Invalid);
if ( !(control_word & CW_Invalid) )
return 0;
l[1] |= (0x40000000 >> 11);
}
l[1] |= 0x7ff00000;
}
else if ( st0_tag == TW_Empty )
{
/* Empty register (stack underflow) */
EXCEPTION(EX_StackUnder);
if ( control_word & CW_Invalid )
{
/* The masked response */
/* Put out the QNaN indefinite */
<API key>;
FPU_verify_area(VERIFY_WRITE,(void *)dfloat,8);
put_fs_long(0, (unsigned long *) dfloat);
put_fs_long(0xfff80000, 1 + (unsigned long *) dfloat);
RE_ENTRANT_CHECK_ON;
return 1;
}
else
return 0;
}
if ( st0_ptr->sign )
l[1] |= 0x80000000;
<API key>;
FPU_verify_area(VERIFY_WRITE,(void *)dfloat,8);
put_fs_long(l[0], (unsigned long *)dfloat);
put_fs_long(l[1], 1 + (unsigned long *)dfloat);
RE_ENTRANT_CHECK_ON;
return 1;
}
/* Put a float into user memory */
int reg_store_single(float *single, FPU_REG *st0_ptr)
{
long templ;
unsigned long increment = 0; /* avoid gcc warnings */
char st0_tag = st0_ptr->tag;
if (st0_tag == TW_Valid)
{
int precision_loss;
int exp;
FPU_REG tmp;
reg_move(st0_ptr, &tmp);
exp = tmp.exp - EXP_BIAS;
if ( exp < SINGLE_Emin )
{
/* A denormal will always underflow. */
#ifndef PECULIAR_486
/* An 80486 is supposed to be able to generate
a denormal exception here, but... */
if ( st0_ptr->exp <= EXP_UNDER )
{
/* Underflow has priority. */
if ( control_word & CW_Underflow )
denormal_operand();
}
#endif PECULIAR_486
tmp.exp += -SINGLE_Emin + 23; /* largest exp to be 22 */
if ( (precision_loss = round_to_int(&tmp)) )
{
#ifdef PECULIAR_486
/* Did it round to a non-denormal ? */
/* This behaviour might be regarded as peculiar, it appears
that the 80486 rounds to the dest precision, then
converts to decide underflow. */
if ( !((tmp.sigl == 0x00800000) &&
((st0_ptr->sigh & 0x000000ff) || st0_ptr->sigl)) )
#endif PECULIAR_486
{
EXCEPTION(EX_Underflow);
/* This is a special case: see sec 16.2.5.1 of
the 80486 book */
if ( !(control_word & EX_Underflow) )
return 0;
}
EXCEPTION(precision_loss);
if ( !(control_word & EX_Precision) )
return 0;
}
templ = tmp.sigl;
}
else
{
if ( tmp.sigl | (tmp.sigh & 0x000000ff) )
{
unsigned long sigh = tmp.sigh;
unsigned long sigl = tmp.sigl;
precision_loss = 1;
switch (control_word & CW_RC)
{
case RC_RND:
increment = ((sigh & 0xff) > 0x80) /* more than half */
|| (((sigh & 0xff) == 0x80) && sigl) /* more than half */
|| ((sigh & 0x180) == 0x180); /* round to even */
break;
case RC_DOWN: /* towards -infinity */
increment = (tmp.sign == SIGN_POS)
? 0 : (sigl | (sigh & 0xff));
break;
case RC_UP: /* towards +infinity */
increment = (tmp.sign == SIGN_POS)
? (sigl | (sigh & 0xff)) : 0;
break;
case RC_CHOP:
increment = 0;
break;
}
/* Truncate part of the mantissa */
tmp.sigl = 0;
if (increment)
{
if ( sigh >= 0xffffff00 )
{
/* The sigh part overflows */
tmp.sigh = 0x80000000;
exp++;
if ( exp >= EXP_OVER )
goto overflow;
}
else
{
tmp.sigh &= 0xffffff00;
tmp.sigh += 0x100;
}
}
else
{
tmp.sigh &= 0xffffff00; /* Finish the truncation */
}
}
else
precision_loss = 0;
templ = (tmp.sigh >> 8) & 0x007fffff;
if ( exp > SINGLE_Emax )
{
overflow:
EXCEPTION(EX_Overflow);
if ( !(control_word & CW_Overflow) )
return 0;
<API key>();
if ( !(control_word & CW_Precision) )
return 0;
/* This is a special case: see sec 16.2.5.1 of the 80486 book. */
/* Masked response is overflow to infinity. */
templ = 0x7f800000;
}
else
{
if ( precision_loss )
{
if ( increment )
<API key>();
else
<API key>();
}
/* Add the exponent */
templ |= ((exp+SINGLE_Ebias) & 0xff) << 23;
}
}
}
else if (st0_tag == TW_Zero)
{
templ = 0;
}
else if (st0_tag == TW_Infinity)
{
templ = 0x7f800000;
}
else if (st0_tag == TW_NaN)
{
/* See if we can get a valid NaN from the FPU_REG */
templ = st0_ptr->sigh >> 8;
if ( !(st0_ptr->sigh & 0x40000000) )
{
/* It is a signalling NaN */
EXCEPTION(EX_Invalid);
if ( !(control_word & CW_Invalid) )
return 0;
templ |= (0x40000000 >> 8);
}
templ |= 0x7f800000;
}
else if ( st0_tag == TW_Empty )
{
/* Empty register (stack underflow) */
EXCEPTION(EX_StackUnder);
if ( control_word & EX_Invalid )
{
/* The masked response */
/* Put out the QNaN indefinite */
<API key>;
FPU_verify_area(VERIFY_WRITE,(void *)single,4);
put_fs_long(0xffc00000, (unsigned long *) single);
RE_ENTRANT_CHECK_ON;
return 1;
}
else
return 0;
}
#ifdef PARANOID
else
{
EXCEPTION(EX_INTERNAL|0x163);
return 0;
}
#endif
if (st0_ptr->sign)
templ |= 0x80000000;
<API key>;
FPU_verify_area(VERIFY_WRITE,(void *)single,4);
put_fs_long(templ,(unsigned long *) single);
RE_ENTRANT_CHECK_ON;
return 1;
}
/* Put a long long into user memory */
int reg_store_int64(long long *d, FPU_REG *st0_ptr)
{
FPU_REG t;
long long tll;
int precision_loss;
char st0_tag = st0_ptr->tag;
if ( st0_tag == TW_Empty )
{
/* Empty register (stack underflow) */
EXCEPTION(EX_StackUnder);
goto invalid_operand;
}
else if ( (st0_tag == TW_Infinity) ||
(st0_tag == TW_NaN) )
{
EXCEPTION(EX_Invalid);
goto invalid_operand;
}
reg_move(st0_ptr, &t);
precision_loss = round_to_int(&t);
((long *)&tll)[0] = t.sigl;
((long *)&tll)[1] = t.sigh;
if ( (precision_loss == 1) ||
((t.sigh & 0x80000000) &&
!((t.sigh == 0x80000000) && (t.sigl == 0) &&
(t.sign == SIGN_NEG))) )
{
EXCEPTION(EX_Invalid);
/* This is a special case: see sec 16.2.5.1 of the 80486 book */
invalid_operand:
if ( control_word & EX_Invalid )
{
/* Produce something like QNaN "indefinite" */
tll = <API key>;
}
else
return 0;
}
else
{
if ( precision_loss )
set_precision_flag(precision_loss);
if ( t.sign )
tll = - tll;
}
<API key>;
FPU_verify_area(VERIFY_WRITE,(void *)d,8);
put_fs_long(((long *)&tll)[0],(unsigned long *) d);
put_fs_long(((long *)&tll)[1],1 + (unsigned long *) d);
RE_ENTRANT_CHECK_ON;
return 1;
}
/* Put a long into user memory */
int reg_store_int32(long *d, FPU_REG *st0_ptr)
{
FPU_REG t;
int precision_loss;
char st0_tag = st0_ptr->tag;
if ( st0_tag == TW_Empty )
{
/* Empty register (stack underflow) */
EXCEPTION(EX_StackUnder);
goto invalid_operand;
}
else if ( (st0_tag == TW_Infinity) ||
(st0_tag == TW_NaN) )
{
EXCEPTION(EX_Invalid);
goto invalid_operand;
}
reg_move(st0_ptr, &t);
precision_loss = round_to_int(&t);
if (t.sigh ||
((t.sigl & 0x80000000) &&
!((t.sigl == 0x80000000) && (t.sign == SIGN_NEG))) )
{
EXCEPTION(EX_Invalid);
/* This is a special case: see sec 16.2.5.1 of the 80486 book */
invalid_operand:
if ( control_word & EX_Invalid )
{
/* Produce something like QNaN "indefinite" */
t.sigl = 0x80000000;
}
else
return 0;
}
else
{
if ( precision_loss )
set_precision_flag(precision_loss);
if ( t.sign )
t.sigl = -(long)t.sigl;
}
<API key>;
FPU_verify_area(VERIFY_WRITE,d,4);
put_fs_long(t.sigl, (unsigned long *) d);
RE_ENTRANT_CHECK_ON;
return 1;
}
/* Put a short into user memory */
int reg_store_int16(short *d, FPU_REG *st0_ptr)
{
FPU_REG t;
int precision_loss;
char st0_tag = st0_ptr->tag;
if ( st0_tag == TW_Empty )
{
/* Empty register (stack underflow) */
EXCEPTION(EX_StackUnder);
goto invalid_operand;
}
else if ( (st0_tag == TW_Infinity) ||
(st0_tag == TW_NaN) )
{
EXCEPTION(EX_Invalid);
goto invalid_operand;
}
reg_move(st0_ptr, &t);
precision_loss = round_to_int(&t);
if (t.sigh ||
((t.sigl & 0xffff8000) &&
!((t.sigl == 0x8000) && (t.sign == SIGN_NEG))) )
{
EXCEPTION(EX_Invalid);
/* This is a special case: see sec 16.2.5.1 of the 80486 book */
invalid_operand:
if ( control_word & EX_Invalid )
{
/* Produce something like QNaN "indefinite" */
t.sigl = 0x8000;
}
else
return 0;
}
else
{
if ( precision_loss )
set_precision_flag(precision_loss);
if ( t.sign )
t.sigl = -t.sigl;
}
<API key>;
FPU_verify_area(VERIFY_WRITE,d,2);
put_fs_word((short)t.sigl,(short *) d);
RE_ENTRANT_CHECK_ON;
return 1;
}
/* Put a packed bcd array into user memory */
int reg_store_bcd(char *d, FPU_REG *st0_ptr)
{
FPU_REG t;
unsigned long long ll;
unsigned char b;
int i, precision_loss;
unsigned char sign = (st0_ptr->sign == SIGN_NEG) ? 0x80 : 0;
char st0_tag = st0_ptr->tag;
if ( st0_tag == TW_Empty )
{
/* Empty register (stack underflow) */
EXCEPTION(EX_StackUnder);
goto invalid_operand;
}
reg_move(st0_ptr, &t);
precision_loss = round_to_int(&t);
ll = significand(&t);
/* Check for overflow, by comparing with 999999999999999999 decimal. */
if ( (t.sigh > 0x0de0b6b3) ||
((t.sigh == 0x0de0b6b3) && (t.sigl > 0xa763ffff)) )
{
EXCEPTION(EX_Invalid);
/* This is a special case: see sec 16.2.5.1 of the 80486 book */
invalid_operand:
if ( control_word & CW_Invalid )
{
/* Produce the QNaN "indefinite" */
<API key>;
FPU_verify_area(VERIFY_WRITE,d,10);
for ( i = 0; i < 7; i++)
put_fs_byte(0, (unsigned char *) d+i); /* These bytes "undefined" */
put_fs_byte(0xc0, (unsigned char *) d+7); /* This byte "undefined" */
put_fs_byte(0xff, (unsigned char *) d+8);
put_fs_byte(0xff, (unsigned char *) d+9);
RE_ENTRANT_CHECK_ON;
return 1;
}
else
return 0;
}
else if ( precision_loss )
{
/* Precision loss doesn't stop the data transfer */
set_precision_flag(precision_loss);
}
<API key>;
FPU_verify_area(VERIFY_WRITE,d,10);
RE_ENTRANT_CHECK_ON;
for ( i = 0; i < 9; i++)
{
b = div_small(&ll, 10);
b |= (div_small(&ll, 10)) << 4;
<API key>;
put_fs_byte(b,(unsigned char *) d+i);
RE_ENTRANT_CHECK_ON;
}
<API key>;
put_fs_byte(sign,(unsigned char *) d+9);
RE_ENTRANT_CHECK_ON;
return 1;
}
/* r gets mangled such that sig is int, sign:
it is NOT normalized */
/* The return value (in eax) is zero if the result is exact,
if bits are changed due to rounding, truncation, etc, then
a non-zero value is returned */
/* Overflow is signalled by a non-zero return value (in eax).
In the case of overflow, the returned significand always has the
largest possible value */
int round_to_int(FPU_REG *r)
{
char very_big;
unsigned eax;
if (r->tag == TW_Zero)
{
/* Make sure that zero is returned */
significand(r) = 0;
return 0;
}
if (r->exp > EXP_BIAS + 63)
{
r->sigl = r->sigh = ~0; /* The largest representable number */
return 1; /* overflow */
}
eax = shrxs(&r->sigl, EXP_BIAS + 63 - r->exp);
very_big = !(~(r->sigh) | ~(r->sigl)); /* test for 0xfff...fff */
#define half_or_more (eax & 0x80000000)
#define frac_part (eax)
#define more_than_half ((eax & 0x80000001) == 0x80000001)
switch (control_word & CW_RC)
{
case RC_RND:
if ( more_than_half /* nearest */
|| (half_or_more && (r->sigl & 1)) ) /* odd -> even */
{
if ( very_big ) return 1; /* overflow */
significand(r) ++;
return PRECISION_LOST_UP;
}
break;
case RC_DOWN:
if (frac_part && r->sign)
{
if ( very_big ) return 1; /* overflow */
significand(r) ++;
return PRECISION_LOST_UP;
}
break;
case RC_UP:
if (frac_part && !r->sign)
{
if ( very_big ) return 1; /* overflow */
significand(r) ++;
return PRECISION_LOST_UP;
}
break;
case RC_CHOP:
break;
}
return eax ? PRECISION_LOST_DOWN : 0;
}
char *fldenv(fpu_addr_modes addr_modes, char *s)
{
unsigned short tag_word = 0;
unsigned char tag;
int i;
if ( (addr_modes.default_mode == VM86) ||
((addr_modes.default_mode == PM16)
^ (addr_modes.override.operand_size == OP_SIZE_PREFIX)) )
{
<API key>;
FPU_verify_area(VERIFY_READ, s, 0x0e);
control_word = get_fs_word((unsigned short *) s);
partial_status = get_fs_word((unsigned short *) (s+2));
tag_word = get_fs_word((unsigned short *) (s+4));
instruction_address.offset = get_fs_word((unsigned short *) (s+6));
instruction_address.selector = get_fs_word((unsigned short *) (s+8));
operand_address.offset = get_fs_word((unsigned short *) (s+0x0a));
operand_address.selector = get_fs_word((unsigned short *) (s+0x0c));
RE_ENTRANT_CHECK_ON;
s += 0x0e;
if ( addr_modes.default_mode == VM86 )
{
instruction_address.offset
+= (instruction_address.selector & 0xf000) << 4;
operand_address.offset += (operand_address.selector & 0xf000) << 4;
}
}
else
{
<API key>;
FPU_verify_area(VERIFY_READ, s, 0x1c);
control_word = get_fs_word((unsigned short *) s);
partial_status = get_fs_word((unsigned short *) (s+4));
tag_word = get_fs_word((unsigned short *) (s+8));
instruction_address.offset = get_fs_long((unsigned long *) (s+0x0c));
instruction_address.selector = get_fs_word((unsigned short *) (s+0x10));
instruction_address.opcode = get_fs_word((unsigned short *) (s+0x12));
operand_address.offset = get_fs_long((unsigned long *) (s+0x14));
operand_address.selector = get_fs_long((unsigned long *) (s+0x18));
RE_ENTRANT_CHECK_ON;
s += 0x1c;
}
#ifdef PECULIAR_486
control_word &= ~0xe080;
#endif PECULIAR_486
top = (partial_status >> SW_Top_Shift) & 7;
if ( partial_status & ~control_word & CW_Exceptions )
partial_status |= (SW_Summary | SW_Backward);
else
partial_status &= ~(SW_Summary | SW_Backward);
for ( i = 0; i < 8; i++ )
{
tag = tag_word & 3;
tag_word >>= 2;
if ( tag == 3 )
/* New tag is empty. Accept it */
regs[i].tag = TW_Empty;
else if ( regs[i].tag == TW_Empty )
{
/* Old tag is empty and new tag is not empty. New tag is determined
by old reg contents */
if ( regs[i].exp == EXP_BIAS - EXTENDED_Ebias )
{
if ( !(regs[i].sigl | regs[i].sigh) )
regs[i].tag = TW_Zero;
else
regs[i].tag = TW_Valid;
}
else if ( regs[i].exp == 0x7fff + EXP_BIAS - EXTENDED_Ebias )
{
if ( !((regs[i].sigh & ~0x80000000) | regs[i].sigl) )
regs[i].tag = TW_Infinity;
else
regs[i].tag = TW_NaN;
}
else
regs[i].tag = TW_Valid;
}
/* Else old tag is not empty and new tag is not empty. Old tag
remains correct */
}
return s;
}
void frstor(fpu_addr_modes addr_modes, char *data_address)
{
int i, stnr;
unsigned char tag;
char *s = fldenv(addr_modes, data_address);
for ( i = 0; i < 8; i++ )
{
/* Load each register. */
stnr = (i+top) & 7;
tag = regs[stnr].tag; /* Derived from the fldenv() loaded tag word. */
reg_load_extended((long double *)(s+i*10), ®s[stnr]);
if ( tag == TW_Empty ) /* The loaded data over-rides all other cases. */
regs[stnr].tag = tag;
}
}
unsigned short tag_word(void)
{
unsigned short word = 0;
unsigned char tag;
int i;
for ( i = 7; i >= 0; i
{
switch ( tag = regs[i].tag )
{
case TW_Valid:
if ( regs[i].exp <= (EXP_BIAS - EXTENDED_Ebias) )
tag = 2;
break;
case TW_Infinity:
case TW_NaN:
tag = 2;
break;
case TW_Empty:
tag = 3;
break;
/* TW_Zero already has the correct value */
}
word <<= 2;
word |= tag;
}
return word;
}
char *fstenv(fpu_addr_modes addr_modes, char *d)
{
if ( (addr_modes.default_mode == VM86) ||
((addr_modes.default_mode == PM16)
^ (addr_modes.override.operand_size == OP_SIZE_PREFIX)) )
{
<API key>;
FPU_verify_area(VERIFY_WRITE,d,14);
#ifdef PECULIAR_486
put_fs_long(control_word & ~0xe080, (unsigned short *) d);
#else
put_fs_word(control_word, (unsigned short *) d);
#endif PECULIAR_486
put_fs_word(status_word(), (unsigned short *) (d+2));
put_fs_word(tag_word(), (unsigned short *) (d+4));
put_fs_word(instruction_address.offset, (unsigned short *) (d+6));
put_fs_word(operand_address.offset, (unsigned short *) (d+0x0a));
if ( addr_modes.default_mode == VM86 )
{
put_fs_word((instruction_address.offset & 0xf0000) >> 4,
(unsigned short *) (d+8));
put_fs_word((operand_address.offset & 0xf0000) >> 4,
(unsigned short *) (d+0x0c));
}
else
{
put_fs_word(instruction_address.selector, (unsigned short *) (d+8));
put_fs_word(operand_address.selector, (unsigned short *) (d+0x0c));
}
RE_ENTRANT_CHECK_ON;
d += 0x0e;
}
else
{
<API key>;
FPU_verify_area(VERIFY_WRITE,d,28);
#ifdef PECULIAR_486
/* An 80486 sets all the reserved bits to 1. */
put_fs_long(0xffff0040 | (control_word & ~0xe080), (unsigned long *) d);
put_fs_long(0xffff0000 | status_word(), (unsigned long *) (d+4));
put_fs_long(0xffff0000 | tag_word(), (unsigned long *) (d+8));
#else
put_fs_word(control_word, (unsigned short *) d);
put_fs_word(status_word(), (unsigned short *) (d+4));
put_fs_word(tag_word(), (unsigned short *) (d+8));
#endif PECULIAR_486
put_fs_long(instruction_address.offset, (unsigned long *) (d+0x0c));
put_fs_word(instruction_address.selector, (unsigned short *) (d+0x10));
put_fs_word(instruction_address.opcode, (unsigned short *) (d+0x12));
put_fs_long(operand_address.offset, (unsigned long *) (d+0x14));
#ifdef PECULIAR_486
/* An 80486 sets all the reserved bits to 1. */
put_fs_word(operand_address.selector, (unsigned short *) (d+0x18));
put_fs_word(0xffff, (unsigned short *) (d+0x1a));
#else
put_fs_long(operand_address.selector, (unsigned long *) (d+0x18));
#endif PECULIAR_486
RE_ENTRANT_CHECK_ON;
d += 0x1c;
}
control_word |= CW_Exceptions;
partial_status &= ~(SW_Summary | SW_Backward);
return d;
}
void fsave(fpu_addr_modes addr_modes, char *data_address)
{
char *d;
int i;
d = fstenv(addr_modes, data_address);
<API key>;
FPU_verify_area(VERIFY_WRITE,d,80);
RE_ENTRANT_CHECK_ON;
for ( i = 0; i < 8; i++ )
write_to_extended(®s[(top + i) & 7], d + 10 * i);
finit();
}
/*
A call to this function must be preceded by a call to
FPU_verify_area() to verify access to the 10 bytes at d
*/
static void write_to_extended(FPU_REG *rp, char *d)
{
long e;
FPU_REG tmp;
e = rp->exp - EXP_BIAS + EXTENDED_Ebias;
#ifdef PARANOID
switch ( rp->tag )
{
case TW_Zero:
if ( rp->sigh | rp->sigl | e )
EXCEPTION(EX_INTERNAL | 0x160);
break;
case TW_Infinity:
case TW_NaN:
if ( (e ^ 0x7fff) | !(rp->sigh & 0x80000000) )
EXCEPTION(EX_INTERNAL | 0x161);
break;
default:
if (e > 0x7fff || e < -63)
EXCEPTION(EX_INTERNAL | 0x162);
}
#endif PARANOID
/*
All numbers except denormals are stored internally in a
format which is compatible with the extended real number
format.
*/
if ( e > 0 )
{
/* just copy the reg */
<API key>;
put_fs_long(rp->sigl, (unsigned long *) d);
put_fs_long(rp->sigh, (unsigned long *) (d + 4));
RE_ENTRANT_CHECK_ON;
}
else
{
/*
The number is a de-normal stored as a normal using our
extra exponent range, or is Zero.
Convert it back to a de-normal, or leave it as Zero.
*/
reg_move(rp, &tmp);
tmp.exp += -EXTENDED_Emin + 63; /* largest exp to be 63 */
round_to_int(&tmp);
e = 0;
<API key>;
put_fs_long(tmp.sigl, (unsigned long *) d);
put_fs_long(tmp.sigh, (unsigned long *) (d + 4));
RE_ENTRANT_CHECK_ON;
}
e |= rp->sign == SIGN_POS ? 0 : 0x8000;
<API key>;
put_fs_word(e, (unsigned short *) (d + 8));
RE_ENTRANT_CHECK_ON;
}
|
#!/bin/bash -e
if [ $(whoami) != "root" ]
then
echo "Please be root."
exit 1
fi
set -x
cd .. && berks vendor ./chef/vendored-cookbooks && cd -
chef-solo --no-fork -c ./solo.rb --environment production -j ./node.json
|
// Variuos helper functions to render stuff on the screen
#define <API key>
#include <stdio.h>
#include <iostream>
#include <assert.h>
#include <algorithm>
#include <sinsp.h>
#include "chisel.h"
#include "sysdig.h"
#define <API key> 16
#define CONSOLE_LINE_LEN 79
#define PRINTF_WRAP_CPROC(x)
#define PRINTF_WRAP(x) PRINTF_WRAP_CPROC(x)
void list_fields(bool verbose)
{
uint32_t j, l, m;
int32_t k;
vector<const filter_check_info*> fc_plugins;
sinsp::<API key>(&fc_plugins);
for(j = 0; j < fc_plugins.size(); j++)
{
const filter_check_info* fci = fc_plugins[j];
if(fci->m_flags & filter_check_info::FL_HIDDEN)
{
continue;
}
printf("\n
printf("Field Class: %s\n\n", fci->m_name.c_str());
for(k = 0; k < fci->m_nfields; k++)
{
const <API key>* fld = &fci->m_fields[k];
printf("%s", fld->m_name);
uint32_t namelen = (uint32_t)strlen(fld->m_name);
if(namelen >= <API key>)
{
printf("\n");
namelen = 0;
}
for(l = 0; l < <API key> - namelen; l++)
{
printf(" ");
}
string desc(fld->m_description);
if(fld->m_flags & EPF_FILTER_ONLY)
{
desc = "(FILTER ONLY) " + desc;
}
if(verbose)
{
desc += string(" Type:") + <API key>(fld->m_type) + ".";
}
size_t desclen = desc.size();
for(l = 0; l < desclen; l++)
{
if(l % (CONSOLE_LINE_LEN - <API key>) == 0 && l != 0)
{
printf("\n");
for(m = 0; m < <API key>; m++)
{
printf(" ");
}
}
printf("%c", desc[l]);
}
printf("\n");
}
}
}
const char* <API key>(ppm_param_type pt)
{
switch(pt)
{
case PT_NONE:
return "NONE";
break;
case PT_INT8:
return "INT8";
break;
case PT_INT16:
return "INT16";
break;
case PT_INT32:
return "INT32";
break;
case PT_INT64:
return "INT64";
break;
case PT_UINT8:
return "UINT8";
break;
case PT_UINT16:
return "UINT16";
break;
case PT_UINT32:
return "UINT32";
break;
case PT_UINT64:
return "UINT64";
break;
case PT_CHARBUF:
return "CHARBUF";
break;
case PT_BYTEBUF:
return "BYTEBUF";
break;
case PT_ERRNO:
return "ERRNO";
break;
case PT_SOCKADDR:
return "SOCKADDR";
break;
case PT_SOCKTUPLE:
return "SOCKTUPLE";
break;
case PT_FD:
return "FD";
break;
case PT_PID:
return "PID";
break;
case PT_FDLIST:
return "FDLIST";
break;
case PT_FSPATH:
return "FSPATH";
break;
case PT_SYSCALLID:
return "SYSCALLID";
break;
case PT_SIGTYPE:
return "SIGTYPE";
break;
case PT_RELTIME:
return "RELTIME";
break;
case PT_ABSTIME:
return "ABSTIME";
break;
case PT_PORT:
return "PORT";
break;
case PT_L4PROTO:
return "L4PROTO";
break;
case PT_SOCKFAMILY:
return "SOCKFAMILY";
break;
case PT_BOOL:
return "BOOL";
break;
case PT_IPV4ADDR:
return "IPV4ADDR";
break;
case PT_DYN:
return "DYNAMIC";
break;
case PT_FLAGS8:
return "FLAGS8";
break;
case PT_FLAGS16:
return "FLAGS16";
break;
case PT_FLAGS32:
return "FLAGS32";
break;
case PT_UID:
return "UID";
break;
case PT_GID:
return "GID";
break;
default:
ASSERT(false);
return "<NA>";
}
}
void list_events(sinsp* inspector)
{
uint32_t j, k;
string tstr;
sinsp_evttables* einfo = inspector-><API key>();
const struct ppm_event_info* etable = einfo->m_event_info;
for(j = 0; j < PPM_EVENT_MAX; j++)
{
const struct ppm_event_info ei = etable[j];
char dir = (PPME_IS_ENTER(j))? '>' : '<';
if((ei.flags & EF_UNUSED) || (ei.flags & EF_OLD_VERSION) || (ei.category & EC_INTERNAL))
{
continue;
}
printf("%c %s(", dir, ei.name);
for(k = 0; k < ei.nparams; k++)
{
if(k != 0)
{
printf(", ");
}
printf("%s %s", <API key>(ei.params[k].type),
ei.params[k].name);
}
printf(")\n");
}
}
#ifdef HAS_CHISELS
struct <API key>
{
bool operator() (const chisel_desc& first, const chisel_desc& second) const
{
return (first.m_category == second.m_category)
? first.m_name < second.m_name
: first.m_category < second.m_category;
}
};
void print_chisel_info(chisel_desc* cd)
{
// First we create a single list composed of
// just this chisel and then run the short_description
// over it in order to get those fields for free.
std::vector<chisel_desc> chlist;
chlist.push_back(cd[0]);
list_chisels(&chlist, false);
// Now we have to do the real work
printf("\n");
uint32_t l;
string astr;
string desc = cd->m_description;
size_t desclen = desc.size();
for(l = 0; l < desclen; l++)
{
if(l % CONSOLE_LINE_LEN == 0 && l != 0)
{
printf("\n");
}
printf("%c", desc[l]);
}
printf("\n");
astr += "Args:\n";
if(cd->m_args.size() != 0)
{
for(l = 0; l < cd->m_args.size(); l++)
{
astr += "[" + cd->m_args[l].m_type + "] " + cd->m_args[l].m_name + " - ";
astr += cd->m_args[l].m_description + "\n";
}
}
else
{
astr += "(None)";
}
size_t astrlen = astr.size();
int linepos = 0;
for(l = 0; l < astrlen; l++, linepos++)
{
if(astr[l] == '\n')
linepos = -1;
else if(linepos % (CONSOLE_LINE_LEN - <API key>) == 0 && linepos != 0)
{
printf("\n%" PRINTF_WRAP(<API key>) "s", "");
}
printf("%c", astr[l]);
}
// just for good meaure
printf("\n");
}
void list_chisels(vector<chisel_desc>* chlist, bool verbose)
{
uint32_t j, l;
// Sort the list by name
sort(chlist->begin(), chlist->end(), <API key>());
string last_category;
// Print the list to the screen
for(j = 0; j < chlist->size(); j++)
{
chisel_desc* cd = &(chlist->at(j));
if(cd->m_viewinfo.m_valid)
{
continue;
}
string category = cd->m_category;
if(category != last_category)
{
string fullcatstr = "Category: " + category;
printf("\n%s\n", fullcatstr.c_str());
for(l = 0; l < fullcatstr.size(); l++)
{
putchar('-');
}
printf("\n");
last_category = category;
}
printf("%s", cd->m_name.c_str());
uint32_t namelen = (uint32_t)cd->m_name.size();
if(namelen >= <API key>)
{
printf("\n");
namelen = 0;
}
for(l = 0; l < (<API key> - namelen); l++)
{
printf(" ");
}
string desc = cd->m_shortdesc;
size_t desclen = desc.size();
for(l = 0; l < desclen; l++)
{
if(l % (CONSOLE_LINE_LEN - <API key>) == 0 && l != 0)
{
printf("\n%" PRINTF_WRAP(<API key>) "s", "");
}
printf("%c", desc[l]);
}
printf("\n");
}
if(verbose)
{
printf("\nUse the -i flag to get detailed information about a specific chisel\n");
}
}
#endif // HAS_CHISELS
|
# -*- coding: utf-8 -*-
## This file is part of Harvesting Kit.
## Harvesting Kit is free software; you can redistribute it and/or
## published by the Free Software Foundation; either version 2 of the
## Harvesting Kit is distributed in the hope that it will be useful, but
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
## along with Harvesting Kit; if not, write to the Free Software Foundation, Inc.,
## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
from __future__ import print_function
import sys
import os
import time
from ftplib import FTP, error_perm
from os.path import join
from os import remove, getcwd
from urlparse import urlparse
from netrc import netrc
from datetime import datetime
class FtpHandler(object):
""" This class provides an interface to easily connect to an FTP server,
list its contents and download files/folders.
:param server: the URL to access the FTP server.
:type server: string
:param username: the user-name used to connect to the server.
:type username: string
:param passwd: the password used to connect to the server.
:type passwd: string
:param netrc_file: path to a netrc file that can be used
for authentication with the server.
:type netrc_file: string
"""
def __init__(self, server, username='', passwd='', netrc_file=''):
server = urlparse(server)
if server.netloc:
server = server.netloc
elif server.path:
server = server.path
self._ftp = FTP(server)
self._username = username
self._passwd = passwd
if netrc_file:
logininfo = netrc(netrc_file).authenticators(server)
self._username, _, self._passwd = logininfo
self.connect()
self._home = self._ftp.pwd()
def connect(self):
""" Connects and logins to the server. """
self._ftp.connect()
self._ftp.login(user=self._username, passwd=self._passwd)
def close(self):
""" Closes the connection to the server. """
self._ftp.close()
def download_folder(self, folder='', target_folder=''):
""" Downloads a whole folder from the server.
FtpHandler.download_folder() will download all the files
from the server in the working directory.
:param folder: the absolute path for the folder on the server.
:type folder: string
:param target_folder: absolute or relative path for the
destination folder default is the
working directory.
:type target_folder: string
"""
files, folders = self.ls(folder)
for fl in files:
self.download(join(folder, fl), target_folder)
for fld in folders:
self.download_folder(join(folder, fld), target_folder)
def download(self, source_file, target_folder=''):
""" Downloads a file from the FTP server to target folder
:param source_file: the absolute path for the file on the server
it can be the one of the files coming from
FtpHandler.dir().
:type source_file: string
:param target_folder: relative or absolute path of the
destination folder default is the
working directory.
:type target_folder: string
"""
current_folder = self._ftp.pwd()
if not target_folder.startswith('/'): # relative path
target_folder = join(getcwd(), target_folder)
folder = os.path.dirname(source_file)
self.cd(folder)
if folder.startswith("/"):
folder = folder[1:]
destination_folder = join(target_folder, folder)
if not os.path.exists(destination_folder):
print("Creating folder", destination_folder)
os.makedirs(destination_folder)
source_file = os.path.basename(source_file)
destination = join(destination_folder, source_file)
try:
with open(destination, 'wb') as result:
self._ftp.retrbinary('RETR %s' % (source_file,),
result.write)
except error_perm as e: # source_file is a folder
print(e)
remove(join(target_folder, source_file))
raise
self._ftp.cwd(current_folder)
def cd(self, folder):
""" Changes the working directory on the server.
:param folder: the desired directory.
:type folder: string
"""
if folder.startswith('/'):
self._ftp.cwd(folder)
else:
for subfolder in folder.split('/'):
if subfolder:
self._ftp.cwd(subfolder)
def ls(self, folder=''):
""" Lists the files and folders of a specific directory
default is the current working directory.
:param folder: the folder to be listed.
:type folder: string
:returns: a tuple with the list of files in the folder
and the list of subfolders in the folder.
"""
current_folder = self._ftp.pwd()
self.cd(folder)
contents = []
self._ftp.retrlines('LIST', lambda a: contents.append(a))
files = filter(lambda a: a.split()[0].startswith('-'), contents)
folders = filter(lambda a: a.split()[0].startswith('d'), contents)
files = map(lambda a: ' '.join(a.split()[8:]), files)
folders = map(lambda a: ' '.join(a.split()[8:]), folders)
self._ftp.cwd(current_folder)
return files, folders
def dir(self, folder='', prefix=''):
""" Lists all the files on the folder given as parameter.
FtpHandler.dir() lists all the files on the server.
:para folder: the folder to be listed.
:type folder: string
:param prefix: it does not belong to the interface,
it is used to recursively list the subfolders.
:returns: a list with all the files in the server.
"""
files, folders = self.ls(folder)
result = files
inner = []
for fld in folders:
try:
inner += self.dir(folder + '/' + fld, prefix + fld + '/')
except:
pass
result += inner
if prefix:
result = map(lambda a: prefix + a, result)
return result
def mkdir(self, folder):
""" Creates a folder in the server
:param folder: the folder to be created.
:type folder: string
"""
current_folder = self._ftp.pwd()
#creates the necessary folders on
#the server if they don't exist
folders = folder.split('/')
for fld in folders:
try:
self.cd(fld)
except error_perm: # folder does not exist
self._ftp.mkd(fld)
self.cd(fld)
self.cd(current_folder)
def rm(self, filename):
""" Delete a file from the server.
:param filename: the file to be deleted.
:type filename: string
"""
try:
self._ftp.delete(filename)
except error_perm: # target is either a directory
# either it does not exist
try:
current_folder = self._ftp.pwd()
self.cd(filename)
except error_perm:
print('550 Delete operation failed %s '
'does not exist!' % (filename,))
else:
self.cd(current_folder)
print('550 Delete operation failed %s '
'is a folder. Use rmdir function '
'to delete it.' % (filename,))
def rmdir(self, foldername):
""" Delete a folder from the server.
:param foldername: the folder to be deleted.
:type foldername: string
"""
current_folder = self._ftp.pwd()
try:
self.cd(foldername)
except error_perm:
print('550 Delete operation failed folder %s '
'does not exist!' % (foldername,))
else:
self.cd(current_folder)
try:
self._ftp.rmd(foldername)
except error_perm: # folder not empty
self.cd(foldername)
contents = self.ls()
#delete the files
map(self._ftp.delete, contents[0])
#delete the subfolders
map(self.rmdir, contents[1])
self.cd(current_folder)
self._ftp.rmd(foldername)
def get_filesize(self, filename):
""" Returns the filesize of a file
:param filename: the full path to the file on the server.
:type filename: string
:returns: string representation of the filesize.
"""
result = []
def dir_callback(val):
result.append(val.split()[4])
self._ftp.dir(filename, dir_callback)
return result[0]
def get_datestamp(self, filename):
datestamp = self._ftp.sendcmd('MDTM ' + filename)
datestamp = datetime.strptime(datestamp[4:],
"%Y%m%d%H%M%S").strftime("%Y-%M-%d")
return datestamp
def <API key>(self, filelist, logger,
timeout=120, sleep_time=10):
""" Checks if files are not being uploaded to server.
:param filelist - a list of filenames to check.
:type filelist: list
:param timeout - time after which the script will register an error.
:type timeout: int
"""
ref_1 = []
ref_2 = []
i = 1
print("\nChecking packages integrity.")
for filename in filelist:
ref_1.append(self.get_filesize(filename))
print("\nGoing to sleep for %i sec." % (sleep_time,))
time.sleep(sleep_time)
while sleep_time * i < timeout:
for filename in filelist:
ref_2.append(self.get_filesize(filename))
if ref_1 == ref_2:
print(sys.stdout, "\nIntegrity OK:)")
logger.info("Packages integrity OK.")
break
else:
print("\nWaiting %d time for integrity..." % (i,))
logger.info("\nWaiting %d time for integrity..." % (i,))
i += 1
ref_1, ref_2 = ref_2, []
time.sleep(sleep_time)
else:
not_finished_files = []
for count, val1 in enumerate(ref_1):
if val1 != ref_2[count]:
not_finished_files.append(filelist[count])
print("\nOMG, OMG something wrong with integrity.")
logger.error("Integrity check failed for files %s"
% (not_finished_files,))
def upload(self, filename, location=''):
""" Uploads a file on the server to the desired location
:param filename: the name of the file to be uploaded.
:type filename: string
:param location: the directory in which the file will
be stored.
:type location: string
"""
current_folder = self._ftp.pwd()
self.mkdir(location)
self.cd(location)
fl = open(filename, 'rb')
filename = filename.split('/')[-1]
self._ftp.storbinary('STOR %s' % filename, fl)
fl.close()
self.cd(current_folder)
|
<?php
include_once 'memberlist.php';
include 'placeinfo.php';
?>
|
/**
* <p>EndPointType class.</p>
*
* @author ranger
* @version $Id: $
*/
package org.opennms.netmgt.provision.adapters.link.endpoint;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlRootElement;
import org.opennms.core.utils.LogUtils;
import org.opennms.netmgt.provision.adapters.link.EndPoint;
import org.opennms.netmgt.provision.adapters.link.<API key>;
import org.opennms.netmgt.provision.adapters.link.<API key>;
@XmlRootElement(name="endpoint-type")
@XmlAccessorType(value=XmlAccessType.FIELD)
public class EndPointType {
@XmlAttribute(name="name")
private String m_name;
@XmlElement(name="sysoid-mask")
private String m_sysOid;
@XmlElementRef
private <API key> m_validator;
/**
* <p>Constructor for EndPointType.</p>
*/
public EndPointType() {
}
/**
* <p>Constructor for EndPointType.</p>
*
* @param sysOid a {@link java.lang.String} object.
* @param validator a {@link org.opennms.netmgt.provision.adapters.link.endpoint.<API key>} object.
*/
public EndPointType(String sysOid, <API key> validator) {
setSysOid(sysOid);
setValidator(validator);
}
/**
* <p>getName</p>
*
* @return a {@link java.lang.String} object.
*/
public String getName() {
return m_name;
}
/**
* <p>setName</p>
*
* @param name a {@link java.lang.String} object.
*/
public void setName(String name) {
m_name = name;
}
/**
* <p>getValidator</p>
*
* @return a {@link org.opennms.netmgt.provision.adapters.link.<API key>} object.
*/
public <API key> getValidator() {
return m_validator;
}
/**
* <p>setValidator</p>
*
* @param validator a {@link org.opennms.netmgt.provision.adapters.link.endpoint.<API key>} object.
*/
public void setValidator(<API key> validator) {
m_validator = validator;
}
/**
* <p>getSysOid</p>
*
* @return a {@link java.lang.String} object.
*/
public String getSysOid() {
return m_sysOid;
}
/**
* <p>setSysOid</p>
*
* @param sysOid a {@link java.lang.String} object.
*/
public void setSysOid(String sysOid) {
m_sysOid = sysOid;
}
/**
* <p>matches</p>
*
* @param ep a {@link org.opennms.netmgt.provision.adapters.link.EndPoint} object.
* @return a boolean.
*/
public boolean matches(EndPoint ep) {
if (ep == null) {
LogUtils.debugf(this, "EndPoint is null!");
return false;
}
if (ep.getSysOid() == null) {
LogUtils.debugf(this, "sysObjectId for endpoint %s is null", ep);
return false;
}
if (ep.getSysOid().startsWith(getSysOid())) {
return true;
}
return false;
}
/**
* <p>validate</p>
*
* @param ep a {@link org.opennms.netmgt.provision.adapters.link.EndPoint} object.
* @throws org.opennms.netmgt.provision.adapters.link.<API key> if any.
*/
public void validate(EndPoint ep) throws <API key> {
m_validator.validate(ep);
}
}
|
<?php
$IP = getenv( 'MW_INSTALL_PATH' );
if ( $IP === false ) {
$IP = dirname( __FILE__ ) . '/../../..';
}
require_once( "$IP/maintenance/Maintenance.php" );
class RepopulateCodePaths extends Maintenance {
public function __construct() {
parent::__construct();
$this->mDescription = "Rebuilds all code paths to support more efficient searching";
$this->addArg( 'repo', 'The name of the repo. Cannot be all.' );
$this->addArg( 'revisions', "The revisions to set status for. Format: start:end" );
}
public function execute() {
$repoName = $this->getArg( 0 );
if ( $repoName == "all" ) {
$this->error( "Cannot use the 'all' repo", true );
}
$repo = CodeRepository::newFromName( $repoName );
if ( !$repo ) {
$this->error( "Repo '{$repoName}' is not a valid Repository", true );
}
$revisions = $this->getArg( 1 );
if ( strpos( $revisions, ':' ) !== false ) {
$revisionVals = explode( ':', $revisions, 2 );
} else {
$this->error( "Invalid revision range", true );
}
$start = intval( $revisionVals[0] );
$end = intval( $revisionVals[1] );
$revisions = range( $start, $end );
$dbr = wfGetDB( DB_SLAVE );
$res = $dbr->select( 'code_paths', '*', array( 'cp_rev_id' => $revisions, 'cp_repo_id' => $repo->getId() ),
__METHOD__ );
$dbw = wfGetDB( DB_MASTER );
$dbw->begin();
foreach ( $res as $row ) {
$fragments = CodeRevision::getPathFragments(
array( array( 'path' => $row->cp_path, 'action' => $row->cp_action ) )
);
CodeRevision::insertPaths( $dbw, $fragments, $repo->getId(), $row->cp_rev_id );
$this->output( "r{$row->cp_rev_id}, path: " . $row->cp_path . " Fragments: " .
count( $fragments ) . "\n" );
}
$dbw->commit();
$this->output( "Done!\n" );
}
}
$maintClass = "RepopulateCodePaths";
require_once( DO_MAINTENANCE );
|
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <unistd.h>
#include "posixtest.h"
void handler(int signo)
{
raise(SIGKILL);
exit(0);
}
int main()
{
if (fork() == 0) {
/* child */
/*
* NOTE: This block of code will return 0 for error
* and anything else for success.
*/
struct sigaction act;
act.sa_handler = handler;
act.sa_flags = 0;
sigemptyset(&act.sa_mask);
sigaddset(&act.sa_mask, SIGKILL);
if (sigaction(SIGPOLL, &act, 0) == -1) {
perror("Unexpected error while attempting to "
"setup test pre-conditions");
return PTS_PASS;
}
if (raise(SIGPOLL) == -1) {
perror("Unexpected error while attempting to "
"setup test pre-conditions");
}
return PTS_PASS;
} else {
int s;
/* parent */
if (wait(&s) == -1) {
perror("Unexpected error while setting up test "
"pre-conditions");
return PTS_UNRESOLVED;
}
if (!WIFEXITED(s)) {
printf("Test PASSED\n");
return PTS_PASS;
}
}
printf("Test FAILED\n");
return PTS_FAIL;
}
|
#ifndef __ASMARM_SMP_TWD_H
#define __ASMARM_SMP_TWD_H
#define TWD_TIMER_LOAD 0x00
#define TWD_TIMER_COUNTER 0x04
#define TWD_TIMER_CONTROL 0x08
#define TWD_TIMER_INTSTAT 0x0C
#define TWD_WDOG_LOAD 0x20
#define TWD_WDOG_COUNTER 0x24
#define TWD_WDOG_CONTROL 0x28
#define TWD_WDOG_INTSTAT 0x2C
#define TWD_WDOG_RESETSTAT 0x30
#define TWD_WDOG_DISABLE 0x34
#define <API key> (1 << 0)
#define <API key> (0 << 1)
#define <API key> (1 << 1)
#define <API key> (1 << 2)
struct clock_event_device;
extern void __iomem *twd_base;
int twd_timer_ack(void);
void twd_timer_setup(struct clock_event_device *);
int <API key>(unsigned long evt);
inline unsigned long <API key>(void);
#endif
|
#ifndef lint
static const char rcsid[] =
"@(#) $Header: /cvs/sw/new-wave/user/tcpdump/print-krb.c,v 1.1 2000/08/03 05:59:19 gerg Exp $";
#endif
#include <sys/param.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/ip_var.h>
#include <netinet/udp.h>
#include <netinet/udp_var.h>
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include "interface.h"
#include "addrtoname.h"
const u_char *c_print(register const u_char *, register const u_char *);
const u_char *krb4_print_hdr(const u_char *);
void krb4_print(const u_char *);
void krb_print(const u_char *, u_int);
#define <API key> 1<<1
#define AUTH_MSG_KDC_REPLY 2<<1
#define <API key> 3<<1
#define <API key> 4<<1
#define AUTH_MSG_ERR_REPLY 5<<1
#define AUTH_MSG_PRIVATE 6<<1
#define AUTH_MSG_SAFE 7<<1
#define AUTH_MSG_APPL_ERR 8<<1
#define AUTH_MSG_DIE 63<<1
#define KERB_ERR_OK 0
#define KERB_ERR_NAME_EXP 1
#define <API key> 2
#define KERB_ERR_AUTH_EXP 3
#define KERB_ERR_PKT_VER 4
#define <API key> 5
#define <API key> 6
#define KERB_ERR_BYTE_ORDER 7
#define <API key> 8
#define <API key> 9
#define KERB_ERR_NULL_KEY 10
struct krb {
u_char pvno; /* Protocol Version */
u_char type; /* Type+B */
};
static char tstr[] = " [|kerberos]";
static struct tok type2str[] = {
{ <API key>, "KDC_REQUEST" },
{ AUTH_MSG_KDC_REPLY, "KDC_REPLY" },
{ <API key>, "APPL_REQUEST" },
{ <API key>, "APPL_REQUEST_MUTUAL" },
{ AUTH_MSG_ERR_REPLY, "ERR_REPLY" },
{ AUTH_MSG_PRIVATE, "PRIVATE" },
{ AUTH_MSG_SAFE, "SAFE" },
{ AUTH_MSG_APPL_ERR, "APPL_ERR" },
{ AUTH_MSG_DIE, "DIE" },
{ 0, NULL }
};
static struct tok kerr2str[] = {
{ KERB_ERR_OK, "OK" },
{ KERB_ERR_NAME_EXP, "NAME_EXP" },
{ <API key>, "SERVICE_EXP" },
{ KERB_ERR_AUTH_EXP, "AUTH_EXP" },
{ KERB_ERR_PKT_VER, "PKT_VER" },
{ <API key>, "NAME_MAST_KEY_VER" },
{ <API key>, "SERV_MAST_KEY_VER" },
{ KERB_ERR_BYTE_ORDER, "BYTE_ORDER" },
{ <API key>, "PRINCIPAL_UNKNOWN" },
{ <API key>,"<API key>" },
{ KERB_ERR_NULL_KEY, "NULL_KEY"},
{ 0, NULL}
};
/* little endian (unaligned) to host byte order */
/* XXX need to look at this... */
#define vtohlp(x) ((( ((char *)(x))[0] ) ) | \
(( ((char *)(x))[1] ) << 8) | \
(( ((char *)(x))[2] ) << 16) | \
(( ((char *)(x))[3] ) << 24))
#define vtohsp(x) ((( ((char *)(x))[0] ) ) | \
(( ((char *)(x))[1] ) << 8))
/* network (big endian) (unaligned) to host byte order */
#define ntohlp(x) ((( ((char *)(x))[3] ) ) | \
(( ((char *)(x))[2] ) << 8) | \
(( ((char *)(x))[1] ) << 16) | \
(( ((char *)(x))[0] ) << 24))
#define ntohsp(x) ((( ((char *)(x))[1] ) ) | \
(( ((char *)(x))[0] ) << 8))
const u_char *
c_print(register const u_char *s, register const u_char *ep)
{
register u_char c;
register int flag;
flag = 1;
while (s < ep) {
c = *s++;
if (c == '\0') {
flag = 0;
break;
}
if (!isascii(c)) {
c = toascii(c);
putchar('M');
putchar('-');
}
if (!isprint(c)) {
c ^= 0x40; /* DEL to ?, others to alpha */
putchar('^');
}
putchar(c);
}
if (flag)
return NULL;
return (s);
}
const u_char *
krb4_print_hdr(const u_char *cp)
{
cp += 2;
#define PRINT if ((cp = c_print(cp, snapend)) == NULL) goto trunc
PRINT;
putchar('.');
PRINT;
putchar('@');
PRINT;
return (cp);
trunc:
fputs(tstr, stdout);
return (NULL);
#undef PRINT
}
void
krb4_print(const u_char *cp)
{
register const struct krb *kp;
u_char type;
u_short len;
#define PRINT if ((cp = c_print(cp, snapend)) == NULL) goto trunc
/* True if struct krb is little endian */
#define IS_LENDIAN(kp) (((kp)->type & 0x01) != 0)
#define KTOHSP(kp, cp) (IS_LENDIAN(kp) ? vtohsp(cp) : ntohsp(cp))
kp = (struct krb *)cp;
if ((&kp->type) >= snapend) {
fputs(tstr, stdout);
return;
}
type = kp->type & (0xFF << 1);
printf(" %s %s: ",
IS_LENDIAN(kp) ? "le" : "be", tok2str(type2str, NULL, type));
switch (type) {
case <API key>:
if ((cp = krb4_print_hdr(cp)) == NULL)
return;
cp += 4; /* ctime */
TCHECK(*cp);
printf(" %dmin ", *cp++ * 5);
PRINT;
putchar('.');
PRINT;
break;
case <API key>:
cp += 2;
TCHECK(*cp);
printf("v%d ", *cp++);
PRINT;
TCHECK(*cp);
printf(" (%d)", *cp++);
TCHECK(*cp);
printf(" (%d)", *cp);
break;
case AUTH_MSG_KDC_REPLY:
if ((cp = krb4_print_hdr(cp)) == NULL)
return;
cp += 10; /* timestamp + n + exp + kvno */
TCHECK2(*cp, sizeof(short));
len = KTOHSP(kp, cp);
printf(" (%d)", len);
break;
case AUTH_MSG_ERR_REPLY:
if ((cp = krb4_print_hdr(cp)) == NULL)
return;
cp += 4; /* timestamp */
TCHECK2(*cp, sizeof(short));
printf(" %s ", tok2str(kerr2str, NULL, KTOHSP(kp, cp)));
cp += 4;
PRINT;
break;
default:
fputs("(unknown)", stdout);
break;
}
return;
trunc:
fputs(tstr, stdout);
}
void
krb_print(const u_char *dat, u_int length)
{
register const struct krb *kp;
kp = (struct krb *)dat;
if (dat >= snapend) {
fputs(tstr, stdout);
return;
}
switch (kp->pvno) {
case 1:
case 2:
case 3:
printf(" v%d", kp->pvno);
break;
case 4:
printf(" v%d", kp->pvno);
krb4_print((const u_char *)kp);
break;
case 106:
case 107:
fputs(" v5", stdout);
/* Decode ASN.1 here "someday" */
break;
}
return;
}
|
/** @file
* VBox OpenGL DRI driver functions
*/
#include "packer.h"
#include "cr_error.h"
#include "cr_string.h"
void PACK_APIENTRY <API key>(GLuint program, GLuint index, const char *name)
{
<API key>(pc);
unsigned char *data_ptr;
int cbName = crStrlen(name)+1;
int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(program)+sizeof(index) + cbName*sizeof(*name);
<API key>(pc, packet_length);
WRITE_DATA_AI(int, packet_length);
WRITE_DATA_AI(GLenum, <API key>);
WRITE_DATA_AI(GLuint, program);
WRITE_DATA_AI(GLuint, index);
crMemcpy(data_ptr, name, cbName*sizeof(*name));
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY crPackShaderSource(GLuint shader, GLsizei count, const char **string, const GLint *length)
{
<API key>(pc);
unsigned char *data_ptr;
GLint *pLocalLength;
int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(shader)+sizeof(count)+sizeof(GLint)+count*sizeof(*pLocalLength);
GLsizei i;
if ((0==count) || (!string)) return;
pLocalLength = crAlloc(count*sizeof(*length));
if (!pLocalLength) return;
for (i=0; i<count; ++i)
{
pLocalLength[i] = (length && (length[i]>=0)) ? length[i] : crStrlen(string[i])+1;
packet_length += pLocalLength[i];
}
if (length)
{
packet_length += count*sizeof(*length);
}
<API key>(pc, packet_length);
WRITE_DATA_AI(int, packet_length);
WRITE_DATA_AI(GLenum, <API key>);
WRITE_DATA_AI(GLuint, shader);
WRITE_DATA_AI(GLsizei, count);
WRITE_DATA_AI(GLint, (GLint)(length ? 1:0));
crMemcpy(data_ptr, pLocalLength, count*sizeof(*pLocalLength));
data_ptr += count*sizeof(*pLocalLength);
if (length)
{
crMemcpy(data_ptr, length, count*sizeof(*length));
data_ptr += count*sizeof(*length);
}
for (i=0; i<count; ++i)
{
if (string[i])
{
crMemcpy(data_ptr, string[i], pLocalLength[i]);
}
else
{
CRASSERT(pLocalLength[i]==1);
*data_ptr = 0;
}
data_ptr += pLocalLength[i];
}
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
crFree(pLocalLength);
}
void PACK_APIENTRY crPackUniform1fv(GLint location, GLsizei count, const GLfloat *value)
{
<API key>(pc);
unsigned char *data_ptr;
int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count) + count*sizeof(*value);
<API key>(pc, packet_length);
WRITE_DATA_AI(int, packet_length);
WRITE_DATA_AI(GLenum, <API key>);
WRITE_DATA_AI(GLint, location);
WRITE_DATA_AI(GLsizei, count);
crMemcpy(data_ptr, value, count*sizeof(*value));
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY crPackUniform1iv(GLint location, GLsizei count, const GLint *value)
{
<API key>(pc);
unsigned char *data_ptr;
int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count) + count*sizeof(*value);
<API key>(pc, packet_length);
WRITE_DATA_AI(int, packet_length);
WRITE_DATA_AI(GLenum, <API key>);
WRITE_DATA_AI(GLint, location);
WRITE_DATA_AI(GLsizei, count);
crMemcpy(data_ptr, value, count*sizeof(*value));
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY crPackUniform2fv(GLint location, GLsizei count, const GLfloat *value)
{
<API key>(pc);
unsigned char *data_ptr;
int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count) + 2*count*sizeof(*value);
<API key>(pc, packet_length);
WRITE_DATA_AI(int, packet_length);
WRITE_DATA_AI(GLenum, <API key>);
WRITE_DATA_AI(GLint, location);
WRITE_DATA_AI(GLsizei, count);
crMemcpy(data_ptr, value, 2*count*sizeof(*value));
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY crPackUniform2iv(GLint location, GLsizei count, const GLint *value)
{
<API key>(pc);
unsigned char *data_ptr;
int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count) + 2*count*sizeof(*value);
<API key>(pc, packet_length);
WRITE_DATA_AI(int, packet_length);
WRITE_DATA_AI(GLenum, <API key>);
WRITE_DATA_AI(GLint, location);
WRITE_DATA_AI(GLsizei, count);
crMemcpy(data_ptr, value, 2*count*sizeof(*value));
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY crPackUniform3fv(GLint location, GLsizei count, const GLfloat *value)
{
<API key>(pc);
unsigned char *data_ptr;
int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count) + 3*count*sizeof(*value);
<API key>(pc, packet_length);
WRITE_DATA_AI(int, packet_length);
WRITE_DATA_AI(GLenum, <API key>);
WRITE_DATA_AI(GLint, location);
WRITE_DATA_AI(GLsizei, count);
crMemcpy(data_ptr, value, 3*count*sizeof(*value));
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY crPackUniform3iv(GLint location, GLsizei count, const GLint *value)
{
<API key>(pc);
unsigned char *data_ptr;
int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count) + 3*count*sizeof(*value);
<API key>(pc, packet_length);
WRITE_DATA_AI(int, packet_length);
WRITE_DATA_AI(GLenum, <API key>);
WRITE_DATA_AI(GLint, location);
WRITE_DATA_AI(GLsizei, count);
crMemcpy(data_ptr, value, 3*count*sizeof(*value));
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY crPackUniform4fv(GLint location, GLsizei count, const GLfloat *value)
{
<API key>(pc);
unsigned char *data_ptr;
int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count) + 4*count*sizeof(*value);
<API key>(pc, packet_length);
WRITE_DATA_AI(int, packet_length);
WRITE_DATA_AI(GLenum, <API key>);
WRITE_DATA_AI(GLint, location);
WRITE_DATA_AI(GLsizei, count);
crMemcpy(data_ptr, value, 4*count*sizeof(*value));
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY crPackUniform4iv(GLint location, GLsizei count, const GLint *value)
{
<API key>(pc);
unsigned char *data_ptr;
int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count) + 4*count*sizeof(*value);
<API key>(pc, packet_length);
WRITE_DATA_AI(int, packet_length);
WRITE_DATA_AI(GLenum, <API key>);
WRITE_DATA_AI(GLint, location);
WRITE_DATA_AI(GLsizei, count);
crMemcpy(data_ptr, value, 4*count*sizeof(*value));
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY <API key>(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
{
<API key>(pc);
unsigned char *data_ptr;
int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count)+sizeof(transpose) + 2*2*count*sizeof(*value);
<API key>(pc, packet_length);
WRITE_DATA_AI(int, packet_length);
WRITE_DATA_AI(GLenum, <API key>);
WRITE_DATA_AI(GLint, location);
WRITE_DATA_AI(GLsizei, count);
WRITE_DATA_AI(GLboolean, transpose);
crMemcpy(data_ptr, value, 2*2*count*sizeof(*value));
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY <API key>(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
{
<API key>(pc);
unsigned char *data_ptr;
int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count)+sizeof(transpose) + 3*3*count*sizeof(*value);
<API key>(pc, packet_length);
WRITE_DATA_AI(int, packet_length);
WRITE_DATA_AI(GLenum, <API key>);
WRITE_DATA_AI(GLint, location);
WRITE_DATA_AI(GLsizei, count);
WRITE_DATA_AI(GLboolean, transpose);
crMemcpy(data_ptr, value, 3*3*count*sizeof(*value));
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY <API key>(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
{
<API key>(pc);
unsigned char *data_ptr;
int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count)+sizeof(transpose) + 4*4*count*sizeof(*value);
<API key>(pc, packet_length);
WRITE_DATA_AI(int, packet_length);
WRITE_DATA_AI(GLenum, <API key>);
WRITE_DATA_AI(GLint, location);
WRITE_DATA_AI(GLsizei, count);
WRITE_DATA_AI(GLboolean, transpose);
crMemcpy(data_ptr, value, 4*4*count*sizeof(*value));
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY <API key>(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
{
<API key>(pc);
unsigned char *data_ptr;
int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count)+sizeof(transpose)
+ 2*3*count*sizeof(*value);
<API key>(pc, packet_length);
WRITE_DATA_AI(int, packet_length);
WRITE_DATA_AI(GLenum, <API key>);
WRITE_DATA_AI(GLint, location);
WRITE_DATA_AI(GLsizei, count);
WRITE_DATA_AI(GLboolean, transpose);
crMemcpy(data_ptr, value, 2*3*count*sizeof(*value));
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY <API key>(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
{
<API key>(pc);
unsigned char *data_ptr;
int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count)+sizeof(transpose)
+ 3*2*count*sizeof(*value);
<API key>(pc, packet_length);
WRITE_DATA_AI(int, packet_length);
WRITE_DATA_AI(GLenum, <API key>);
WRITE_DATA_AI(GLint, location);
WRITE_DATA_AI(GLsizei, count);
WRITE_DATA_AI(GLboolean, transpose);
crMemcpy(data_ptr, value, 3*2*count*sizeof(*value));
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY <API key>(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
{
<API key>(pc);
unsigned char *data_ptr;
int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count)+sizeof(transpose)
+ 2*4*count*sizeof(*value);
<API key>(pc, packet_length);
WRITE_DATA_AI(int, packet_length);
WRITE_DATA_AI(GLenum, <API key>);
WRITE_DATA_AI(GLint, location);
WRITE_DATA_AI(GLsizei, count);
WRITE_DATA_AI(GLboolean, transpose);
crMemcpy(data_ptr, value, 2*4*count*sizeof(*value));
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY <API key>(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
{
<API key>(pc);
unsigned char *data_ptr;
int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count)+sizeof(transpose)
+ 4*2*count*sizeof(*value);
<API key>(pc, packet_length);
WRITE_DATA_AI(int, packet_length);
WRITE_DATA_AI(GLenum, <API key>);
WRITE_DATA_AI(GLint, location);
WRITE_DATA_AI(GLsizei, count);
WRITE_DATA_AI(GLboolean, transpose);
crMemcpy(data_ptr, value, 4*2*count*sizeof(*value));
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY <API key>(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
{
<API key>(pc);
unsigned char *data_ptr;
int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count)+sizeof(transpose)
+ 3*4*count*sizeof(*value);
<API key>(pc, packet_length);
WRITE_DATA_AI(int, packet_length);
WRITE_DATA_AI(GLenum, <API key>);
WRITE_DATA_AI(GLint, location);
WRITE_DATA_AI(GLsizei, count);
WRITE_DATA_AI(GLboolean, transpose);
crMemcpy(data_ptr, value, 3*4*count*sizeof(*value));
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY <API key>(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
{
<API key>(pc);
unsigned char *data_ptr;
int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(location)+sizeof(count)+sizeof(transpose)
+ 4*3*count*sizeof(*value);
<API key>(pc, packet_length);
WRITE_DATA_AI(int, packet_length);
WRITE_DATA_AI(GLenum, <API key>);
WRITE_DATA_AI(GLint, location);
WRITE_DATA_AI(GLsizei, count);
WRITE_DATA_AI(GLboolean, transpose);
crMemcpy(data_ptr, value, 4*3*count*sizeof(*value));
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY crPackDrawBuffers(GLsizei n, const GLenum *bufs)
{
<API key>(pc);
unsigned char *data_ptr;
int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(n) + n*sizeof(*bufs);
<API key>(pc, packet_length);
WRITE_DATA_AI(int, packet_length);
WRITE_DATA_AI(GLenum, <API key>);
WRITE_DATA_AI(GLsizei, n);
crMemcpy(data_ptr, bufs, n*sizeof(*bufs));
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
/*@todo next 8 functions are bit hacky,
* we expect packspu to pass a single structure with all output parameters via first output pointer.
* it'd be better to add <API key> one day.
*/
void PACK_APIENTRY <API key>(GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLint * size, GLenum * type, char * name, int * writeback)
{
<API key>(pc);
unsigned char *data_ptr;
(void) pc;
(void) size;
(void) type;
(void) name;
<API key>(pc, 36);
WRITE_DATA(0, GLint, 36);
WRITE_DATA(4, GLenum, <API key>);
WRITE_DATA(8, GLuint, program);
WRITE_DATA(12, GLuint, index);
WRITE_DATA(16, GLsizei, bufSize);
<API key>(20, (void *) length);
<API key>(28, (void *) writeback);
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY <API key>(GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLint * size, GLenum * type, char * name, int * writeback)
{
<API key>(pc);
unsigned char *data_ptr;
(void) pc;
(void) size;
(void) type;
(void) name;
<API key>(pc, 36);
WRITE_DATA(0, GLint, 36);
WRITE_DATA(4, GLenum, <API key>);
WRITE_DATA(8, GLuint, program);
WRITE_DATA(12, GLuint, index);
WRITE_DATA(16, GLsizei, bufSize);
<API key>(20, (void *) length);
<API key>(28, (void *) writeback);
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY <API key>(GLuint program, GLsizei maxCount, GLsizei * count, GLuint * shaders, int * writeback)
{
<API key>(pc);
unsigned char *data_ptr;
(void) pc;
(void) shaders;
<API key>(pc, 32);
WRITE_DATA(0, GLint, 32);
WRITE_DATA(4, GLenum, <API key>);
WRITE_DATA(8, GLuint, program);
WRITE_DATA(12, GLsizei, maxCount);
<API key>(16, (void *) count);
<API key>(24, (void *) writeback);
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY <API key>(GLhandleARB containerObj, GLsizei maxCount, GLsizei * count, GLhandleARB * obj, int * writeback)
{
<API key>(pc);
unsigned char *data_ptr;
(void) pc;
<API key>(pc, 32);
WRITE_DATA(0, GLint, 32);
WRITE_DATA(4, GLenum, <API key>);
WRITE_DATA(8, GLhandleARB, containerObj);
WRITE_DATA(12, GLsizei, maxCount);
<API key>(16, (void *) count);
<API key>(24, (void *) writeback);
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY crPackGetInfoLogARB(GLhandleARB obj, GLsizei maxLength, GLsizei * length, GLcharARB * infoLog, int * writeback)
{
<API key>(pc);
unsigned char *data_ptr;
(void) pc;
<API key>(pc, 32);
WRITE_DATA(0, GLint, 32);
WRITE_DATA(4, GLenum, <API key>);
WRITE_DATA(8, GLhandleARB, obj);
WRITE_DATA(12, GLsizei, maxLength);
<API key>(16, (void *) length);
<API key>(24, (void *) writeback);
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY <API key>(GLuint program, GLsizei bufSize, GLsizei * length, char * infoLog, int * writeback)
{
<API key>(pc);
unsigned char *data_ptr;
(void) pc;
(void) infoLog;
<API key>(pc, 32);
WRITE_DATA(0, GLint, 32);
WRITE_DATA(4, GLenum, <API key>);
WRITE_DATA(8, GLuint, program);
WRITE_DATA(12, GLsizei, bufSize);
<API key>(16, (void *) length);
<API key>(24, (void *) writeback);
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY <API key>(GLuint shader, GLsizei bufSize, GLsizei * length, char * infoLog, int * writeback)
{
<API key>(pc);
unsigned char *data_ptr;
(void) pc;
(void) infoLog;
<API key>(pc, 32);
WRITE_DATA(0, GLint, 32);
WRITE_DATA(4, GLenum, <API key>);
WRITE_DATA(8, GLuint, shader);
WRITE_DATA(12, GLsizei, bufSize);
<API key>(16, (void *) length);
<API key>(24, (void *) writeback);
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY <API key>(GLuint shader, GLsizei bufSize, GLsizei * length, char * source, int * writeback)
{
<API key>(pc);
unsigned char *data_ptr;
(void) pc;
(void) source;
<API key>(pc, 32);
WRITE_DATA(0, GLint, 32);
WRITE_DATA(4, GLenum, <API key>);
WRITE_DATA(8, GLuint, shader);
WRITE_DATA(12, GLsizei, bufSize);
<API key>(16, (void *) length);
<API key>(24, (void *) writeback);
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY <API key>(GLuint program, GLsizei maxcbData, GLsizei * cbData, GLvoid * pData, int * writeback)
{
<API key>(pc);
unsigned char *data_ptr;
(void) pData;
<API key>(pc, 32);
WRITE_DATA(0, GLint, 32);
WRITE_DATA(4, GLenum, <API key>);
WRITE_DATA(8, GLuint, program);
WRITE_DATA(12, GLsizei, maxcbData);
<API key>(16, (void *) cbData);
<API key>(24, (void *) writeback);
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY <API key>(GLuint program, const char * name, GLint * return_value, int * writeback)
{
<API key>(pc);
unsigned char *data_ptr;
int cbName = crStrlen(name)+1;
int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(program)+cbName*sizeof(*name)+16;
<API key>(pc, packet_length);
WRITE_DATA_AI(int, packet_length);
WRITE_DATA_AI(GLenum, <API key>);
WRITE_DATA_AI(GLuint, program);
crMemcpy(data_ptr, name, cbName*sizeof(*name));
data_ptr += cbName*sizeof(*name);
<API key>(0, (void *) return_value);
<API key>(8, (void *) writeback);
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY <API key>(GLuint program, const char * name, GLint * return_value, int * writeback)
{
<API key>(pc);
unsigned char *data_ptr;
int cbName = crStrlen(name)+1;
int packet_length = sizeof(int)+sizeof(GLenum)+sizeof(program)+cbName*sizeof(*name)+16;
<API key>(pc, packet_length);
WRITE_DATA_AI(int, packet_length);
WRITE_DATA_AI(GLenum, <API key>);
WRITE_DATA_AI(GLuint, program);
crMemcpy(data_ptr, name, cbName*sizeof(*name));
data_ptr += cbName*sizeof(*name);
<API key>(0, (void *) return_value);
<API key>(8, (void *) writeback);
WRITE_OPCODE(pc, CR_EXTEND_OPCODE);
<API key>(pc);
}
void PACK_APIENTRY <API key>(GLuint program, GLuint index, const char *name)
{
<API key>(pc);
(void)program;
(void)index;
(void)name;
(void)pc;
crError ("No swap version");
}
void PACK_APIENTRY <API key>(GLuint shader, GLsizei count, const char **string, const GLint *length)
{
<API key>(pc);
(void)shader;
(void)count;
(void)string;
(void)length;
(void)pc;
crError ("No swap version");
}
void PACK_APIENTRY <API key>(GLint location, GLsizei count, const GLfloat *value)
{
<API key>(pc);
(void)location;
(void)count;
(void)value;
(void)pc;
crError ("No swap version");
}
void PACK_APIENTRY <API key>(GLint location, GLsizei count, const GLint *value)
{
<API key>(pc);
(void)location;
(void)count;
(void)value;
(void)pc;
crError ("No swap version");
}
void PACK_APIENTRY <API key>(GLint location, GLsizei count, const GLfloat *value)
{
<API key>(pc);
(void)location;
(void)count;
(void)value;
(void)pc;
crError ("No swap version");
}
void PACK_APIENTRY <API key>(GLint location, GLsizei count, const GLint * value)
{
<API key>(pc);
(void)location;
(void)count;
(void)value;
(void)pc;
crError ("No swap version");
}
void PACK_APIENTRY <API key>(GLint location, GLsizei count, const GLfloat *value)
{
<API key>(pc);
(void)location;
(void)count;
(void)value;
(void)pc;
crError ("No swap version");
}
void PACK_APIENTRY <API key>(GLint location, GLsizei count, const GLint *value)
{
<API key>(pc);
(void)location;
(void)count;
(void)value;
(void)pc;
crError ("No swap version");
}
void PACK_APIENTRY <API key>(GLint location, GLsizei count, const GLfloat *value)
{
<API key>(pc);
(void)location;
(void)count;
(void)value;
(void)pc;
crError ("No swap version");
}
void PACK_APIENTRY <API key>(GLint location, GLsizei count, const GLint *value)
{
<API key>(pc);
(void)location;
(void)count;
(void)value;
(void)pc;
crError ("No swap version");
}
void PACK_APIENTRY <API key>(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
{
<API key>(pc);
(void)location;
(void)count;
(void)transpose;
(void)value;
(void)pc;
crError ("No swap version");
}
void PACK_APIENTRY <API key>(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
{
<API key>(pc);
(void)location;
(void)count;
(void)transpose;
(void)value;
(void)pc;
crError ("No swap version");
}
void PACK_APIENTRY <API key>(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
{
<API key>(pc);
(void)location;
(void)count;
(void)transpose;
(void)value;
(void)pc;
crError ("No swap version");
}
void PACK_APIENTRY <API key>(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
{
<API key>(pc);
(void)location;
(void)count;
(void)transpose;
(void)value;
(void)pc;
crError ("No swap version");
}
void PACK_APIENTRY <API key>(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
{
<API key>(pc);
(void)location;
(void)count;
(void)transpose;
(void)value;
(void)pc;
crError ("No swap version");
}
void PACK_APIENTRY <API key>(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
{
<API key>(pc);
(void)location;
(void)count;
(void)transpose;
(void)value;
(void)pc;
crError ("No swap version");
}
void PACK_APIENTRY <API key>(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
{
<API key>(pc);
(void)location;
(void)count;
(void)transpose;
(void)value;
(void)pc;
crError ("No swap version");
}
void PACK_APIENTRY <API key>(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
{
<API key>(pc);
(void)location;
(void)count;
(void)transpose;
(void)value;
(void)pc;
crError ("No swap version");
}
void PACK_APIENTRY <API key>(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
{
<API key>(pc);
(void)location;
(void)count;
(void)transpose;
(void)value;
(void)pc;
crError ("No swap version");
}
void PACK_APIENTRY <API key>(GLsizei n, const GLenum *bufs)
{
<API key>(pc);
(void)n;
(void)bufs;
(void)pc;
crError ("No swap version");
}
void PACK_APIENTRY <API key>(GLuint program, const char * name, GLint * return_value, int * writeback)
{
<API key>(pc);
(void)program;
(void)name;
(void)return_value;
(void)writeback;
(void)pc;
crError ("No swap version");
}
void PACK_APIENTRY <API key>(GLuint program, const char * name, GLint * return_value, int * writeback)
{
<API key>(pc);
(void)program;
(void)name;
(void)return_value;
(void)writeback;
(void)pc;
crError ("No swap version");
}
|
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include <rte_common.h>
#include <rte_string_fns.h>
#include <cmdline_parse.h>
#include <<API key>.h>
#include "test_cmdline.h"
/* structures needed to run tests */
struct string_elt_str {
const char * str; /* parsed string */
const char * result; /* expected string */
int idx; /* position at which result is expected to be */
};
struct string_elt_str string_elt_strs[] = {
{"one#two#three", "three", 2},
{"one#two with spaces#three", "three", 2},
{"one#two\twith\ttabs#three", "three", 2},
{"one#two\rwith\rreturns#three", "three", 2},
{"one#two\nwith\nnewlines#three", "three", 2},
{"one#two#three", "one", 0},
{"one#two#three", "two", 1},
{"one#two\0three", "two", 1},
{"one#two with spaces#three", "two with spaces", 1},
{"one#two\twith\ttabs#three", "two\twith\ttabs", 1},
{"one#two\rwith\rreturns#three", "two\rwith\rreturns", 1},
{"one#two\nwith\nnewlines#three", "two\nwith\nnewlines", 1},
};
#if (<API key> < STR_TOKEN_SIZE) \
|| (<API key> < <API key>)
#undef <API key>
#define <API key> RTE_MAX(STR_TOKEN_SIZE, <API key>)
#endif
struct string_nb_str {
const char * str; /* parsed string */
int nb_strs; /* expected number of strings in str */
};
struct string_nb_str string_nb_strs[] = {
{"one#two#three", 3},
{"one", 1},
{"one# \t two \r # three \n #four", 4},
};
struct string_parse_str {
const char * str; /* parsed string */
const char * fixed_str; /* parsing mode (any, fixed or multi) */
const char * result; /* expected result */
};
struct string_parse_str string_parse_strs[] = {
{"one", NULL, "one"}, /* any string */
{"two", "one#two#three", "two"}, /* multiple choice string */
{"three", "three", "three"}, /* fixed string */
{"three", "one#two with\rgarbage\tcharacters\n#three", "three"},
{"two with\rgarbage\tcharacters\n",
"one#two with\rgarbage\tcharacters\n#three",
"two with\rgarbage\tcharacters\n"},
{"one two", "one", "one"}, /* fixed string */
{"one two", TOKEN_STRING_MULTI, "one two"}, /* multi string */
{"one two", NULL, "one"}, /* any string */
{"one two #three", TOKEN_STRING_MULTI, "one two "},
/* multi string with comment */
};
struct string_invalid_str {
const char * str; /* parsed string */
const char * fixed_str; /* parsing mode (any, fixed or multi) */
};
struct string_invalid_str string_invalid_strs[] = {
{"invalid", "one"}, /* fixed string */
{"invalid", "one#two#three"}, /* multiple choice string */
{"invalid", "invalidone"}, /* string that starts the same */
{"invalidone", "invalid"}, /* string that starts the same */
{"toolong!!!toolong!!!toolong!!!toolong!!!toolong!!!toolong!!!"
"toolong!!!toolong!!!toolong!!!toolong!!!toolong!!!toolong!!!"
"toolong!!!", NULL },
{"toolong!!!toolong!!!toolong!!!toolong!!!toolong!!!toolong!!!"
"toolong!!!toolong!!!toolong!!!toolong!!!toolong!!!toolong!!!"
"toolong!!!", "fixed" },
{"toolong!!!toolong!!!toolong!!!toolong!!!toolong!!!toolong!!!"
"toolong!!!toolong!!!toolong!!!toolong!!!toolong!!!toolong!!!"
"toolong!!!", "multi#choice#string" },
{"invalid",
"toolong!!!toolong!!!toolong!!!toolong!!!toolong!!!toolong!!!"
"toolong!!!toolong!!!toolong!!!toolong!!!toolong!!!toolong!!!"
"toolong!!!" },
{"", "invalid"}
};
const char * string_help_strs[] = {
NULL,
"fixed_str",
"multi#str",
};
#define <API key> \
(sizeof(string_parse_strs) / sizeof(string_parse_strs[0]))
#define <API key> \
(sizeof(string_help_strs) / sizeof(string_help_strs[0]))
#define <API key> \
(sizeof(string_elt_strs) / sizeof(string_elt_strs[0]))
#define STRING_NB_STRS_SIZE \
(sizeof(string_nb_strs) / sizeof(string_nb_strs[0]))
#define <API key> \
(sizeof(string_invalid_strs) / sizeof(string_invalid_strs[0]))
#define SMALL_BUF 8
/* test invalid parameters */
int
<API key>(void)
{
<API key> token;
int result;
char buf[<API key>];
memset(&token, 0, sizeof(token));
snprintf(buf, sizeof(buf), "buffer");
/* test null token */
if (<API key>(
NULL, buf, 0) != -1) {
printf("Error: function accepted null token!\n");
return -1;
}
if (<API key>(
NULL, 0, buf, 0) != -1) {
printf("Error: function accepted null token!\n");
return -1;
}
if (<API key>(NULL) != -1) {
printf("Error: function accepted null token!\n");
return -1;
}
if (<API key>(NULL, buf, NULL, 0) != -1) {
printf("Error: function accepted null token!\n");
return -1;
}
/* test null buffer */
if (<API key>(
(<API key>*)&token, 0, NULL, 0) != -1) {
printf("Error: function accepted null buffer!\n");
return -1;
}
if (<API key>(
(<API key>*)&token, NULL,
(void*)&result, sizeof(result)) != -1) {
printf("Error: function accepted null buffer!\n");
return -1;
}
if (<API key>(
(<API key>*)&token, NULL, 0) != -1) {
printf("Error: function accepted null buffer!\n");
return -1;
}
/* test null result */
if (<API key>(
(<API key>*)&token, buf, NULL, 0) == -1) {
printf("Error: function rejected null result!\n");
return -1;
}
/* test negative index */
if (<API key>(
(<API key>*)&token, -1, buf, 0) != -1) {
printf("Error: function accepted negative index!\n");
return -1;
}
return 0;
}
/* test valid parameters but invalid data */
int
<API key>(void)
{
<API key> token;
<API key> help_token;
char buf[<API key>];
char help_str[<API key>];
char small_buf[SMALL_BUF];
unsigned i;
/* test parsing invalid strings */
for (i = 0; i < <API key>; i++) {
memset(&token, 0, sizeof(token));
memset(buf, 0, sizeof(buf));
/* prepare test token data */
token.string_data.str = string_invalid_strs[i].fixed_str;
if (<API key>((<API key>*)&token,
string_invalid_strs[i].str, (void*)buf,
sizeof(buf)) != -1) {
memset(help_str, 0, sizeof(help_str));
memset(&help_token, 0, sizeof(help_token));
help_token.string_data.str = string_invalid_strs[i].fixed_str;
/* get parse type so we can give a good error message */
<API key>((<API key>*)&token, help_str,
sizeof(help_str));
printf("Error: parsing %s as %s succeeded!\n",
string_invalid_strs[i].str, help_str);
return -1;
}
}
/* misc tests (big comments signify test cases) */
memset(&token, 0, sizeof(token));
memset(small_buf, 0, sizeof(small_buf));
/*
* try to get element from a null token
*/
token.string_data.str = NULL;
if (<API key>(
(<API key>*)&token, 1,
buf, sizeof(buf)) != -1) {
printf("Error: getting token from null token string!\n");
return -1;
}
/*
* try to get element into a buffer that is too small
*/
token.string_data.str = "too_small_buffer";
if (<API key>(
(<API key>*)&token, 0,
small_buf, sizeof(small_buf)) != -1) {
printf("Error: writing token into too small a buffer succeeded!\n");
return -1;
}
/*
* get help string written into a buffer smaller than help string
* truncation should occur
*/
token.string_data.str = NULL;
if (<API key>(
(<API key>*)&token,
small_buf, sizeof(small_buf)) == -1) {
printf("Error: writing help string into too small a buffer failed!\n");
return -1;
}
/* get help string for "any string" so we can compare it with small_buf */
<API key>((<API key>*)&token, help_str,
sizeof(help_str));
if (strncmp(small_buf, help_str, sizeof(small_buf) - 1)) {
printf("Error: help string mismatch!\n");
return -1;
}
/* check null terminator */
if (small_buf[sizeof(small_buf) - 1] != '\0') {
printf("Error: small buffer doesn't have a null terminator!\n");
return -1;
}
/*
* try to count tokens in a null token
*/
token.string_data.str = NULL;
if (<API key>(
(<API key>*)&token) != 0) {
printf("Error: getting token count from null token succeeded!\n");
return -1;
}
return 0;
}
/* test valid parameters and data */
int
<API key>(void)
{
<API key> token;
<API key> help_token;
char buf[<API key>];
char help_str[<API key>];
unsigned i;
/* test parsing strings */
for (i = 0; i < <API key>; i++) {
memset(&token, 0, sizeof(token));
memset(buf, 0, sizeof(buf));
token.string_data.str = string_parse_strs[i].fixed_str;
if (<API key>((<API key>*)&token,
string_parse_strs[i].str, (void*)buf,
sizeof(buf)) < 0) {
/* clean help data */
memset(&help_token, 0, sizeof(help_token));
memset(help_str, 0, sizeof(help_str));
/* prepare help token */
help_token.string_data.str = string_parse_strs[i].fixed_str;
/* get help string so that we get an informative error message */
<API key>((<API key>*)&token, help_str,
sizeof(help_str));
printf("Error: parsing %s as %s failed!\n",
string_parse_strs[i].str, help_str);
return -1;
}
if (strcmp(buf, string_parse_strs[i].result) != 0) {
printf("Error: result mismatch!\n");
return -1;
}
}
/* get number of string tokens and verify it's correct */
for (i = 0; i < STRING_NB_STRS_SIZE; i++) {
memset(&token, 0, sizeof(token));
token.string_data.str = string_nb_strs[i].str;
if (<API key>(
(<API key>*)&token) <
string_nb_strs[i].nb_strs) {
printf("Error: strings count mismatch!\n");
return -1;
}
}
/* get token at specified position and verify it's correct */
for (i = 0; i < <API key>; i++) {
memset(&token, 0, sizeof(token));
memset(buf, 0, sizeof(buf));
token.string_data.str = string_elt_strs[i].str;
if (<API key>(
(<API key>*)&token, string_elt_strs[i].idx,
buf, sizeof(buf)) < 0) {
printf("Error: getting string element failed!\n");
return -1;
}
if (strncmp(buf, string_elt_strs[i].result,
sizeof(buf)) != 0) {
printf("Error: result mismatch!\n");
return -1;
}
}
/* cover all cases with help strings */
for (i = 0; i < <API key>; i++) {
memset(&help_token, 0, sizeof(help_token));
memset(help_str, 0, sizeof(help_str));
help_token.string_data.str = string_help_strs[i];
if (<API key>((<API key>*)&help_token,
help_str, sizeof(help_str)) < 0) {
printf("Error: help operation failed!\n");
return -1;
}
}
return 0;
}
|
using System;
public class C<T1> where T1 : B<T1>, new ()
{
public void Test ()
{
using (var a = new T1 ()) {
}
}
}
public class B<T2> : IDisposable
{
void IDisposable.Dispose ()
{
}
}
public class Test : B<Test>
{
public static void Main ()
{
new C<Test> ().Test ();
}
}
|
#ifndef UIMMCREPLAY_H
#define UIMMCREPLAY_H
struct tui_menu;
extern void uimmcreplay_init(struct tui_menu *parent_submenu);
#endif
|
package org.opennms.netmgt.statsd;
import com.google.common.collect.Iterables;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.opennms.core.spring.BeanUtils;
import org.opennms.core.test.MockLogAppender;
import org.opennms.core.test.<API key>;
import org.opennms.core.test.db.annotations.<API key>;
import org.opennms.netmgt.dao.api.<API key>;
import org.opennms.netmgt.dao.api.NodeDao;
import org.opennms.netmgt.dao.api.ResourceDao;
import org.opennms.netmgt.dao.api.RrdDao;
import org.opennms.netmgt.dao.support.<API key>;
import org.opennms.netmgt.dao.support.<API key>;
import org.opennms.netmgt.measurements.api.<API key>;
import org.opennms.netmgt.model.OnmsAttribute;
import org.opennms.netmgt.model.OnmsNode;
import org.opennms.netmgt.model.OnmsResource;
import org.opennms.test.<API key>;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.<API key>;
import org.springframework.transaction.annotation.Transactional;
@RunWith(<API key>.class)
@<API key>(locations = {
"classpath:/META-INF/opennms/<API key>.xml",
"classpath:/META-INF/opennms/<API key>.xml",
"classpath*:/META-INF/opennms/component-dao.xml",
"classpath*:/META-INF/opennms/component-service.xml",
"classpath:/META-INF/opennms/<API key>.xml",
"classpath:/META-INF/opennms/<API key>.xml",
"classpath:/META-INF/opennms/<API key>.xml"
})
@<API key>(systemProperties = {
"org.opennms.rrd.strategyClass=org.opennms.netmgt.rrd.jrobin.JRobinRrdStrategy",
"org.opennms.timeseries.strategy=rrd",
"rrd.base.dir=src/test/resources/share/jrb",
"rrd.binary=rrdtool"
})
@<API key>
public class StatsdValuesIT implements InitializingBean {
@Autowired
protected <API key> m_locationDao;
@Autowired
protected NodeDao m_nodeDao;
@Autowired
protected ResourceDao m_resourceDao;
@Autowired
protected RrdDao m_rrdDao;
@Autowired
protected <API key> m_fetchStrategy;
@Override
public void afterPropertiesSet() throws Exception {
BeanUtils.assertAutowiring(this);
}
@Before
public void setUp() {
MockLogAppender.setupLogging();
}
@Test
@Transactional
public void testValue() throws Exception {
final OnmsNode node = new OnmsNode(m_locationDao.getDefaultLocation(), "node1");
node.setId(1);
m_nodeDao.save(node);
m_nodeDao.flush();
final OnmsResource resource = Iterables.getOnlyElement(m_resourceDao.getResourceForNode(node)
.getChildResources());
final OnmsAttribute attribute = resource.<API key>().get("ifInOctets");
final double statistic = m_rrdDao.getPrintValue(attribute,
"AVERAGE",
1414602000000L,
1417046400000L);
final <API key> result = new <API key>();
result.setCount(1);
final <API key> visitor = new <API key>();
visitor.setFetchStrategy(m_fetchStrategy);
visitor.<API key>("AVERAGE");
visitor.setStartTime(1414602000000L);
visitor.setEndTime(1417046400000L);
visitor.setStatisticVisitor(result);
visitor.afterPropertiesSet();
visitor.visit(attribute);
Assert.assertNotNull(result.getResults());
Assert.assertEquals(1, result.getResults().size());
Assert.assertNotNull(result.getResults().first());
Assert.assertEquals(attribute, result.getResults().first().getAttribute());
Assert.assertEquals(statistic, result.getResults().first().getStatistic(), 0.5);
}
}
|
#include "libgfortran.h"
#if defined (HAVE_GFC_REAL_8) && defined (HAVE_GFC_INTEGER_4)
extern void maxloc1_4_r8 (gfc_array_i4 * const restrict,
gfc_array_r8 * const restrict, const index_type * const restrict);
export_proto(maxloc1_4_r8);
void
maxloc1_4_r8 (gfc_array_i4 * const restrict retarray,
gfc_array_r8 * const restrict array,
const index_type * const restrict pdim)
{
index_type count[GFC_MAX_DIMENSIONS];
index_type extent[GFC_MAX_DIMENSIONS];
index_type sstride[GFC_MAX_DIMENSIONS];
index_type dstride[GFC_MAX_DIMENSIONS];
const GFC_REAL_8 * restrict base;
GFC_INTEGER_4 * restrict dest;
index_type rank;
index_type n;
index_type len;
index_type delta;
index_type dim;
int continue_loop;
/* Make dim zero based to avoid confusion. */
dim = (*pdim) - 1;
rank = GFC_DESCRIPTOR_RANK (array) - 1;
len = <API key>(array,dim);
if (len < 0)
len = 0;
delta = <API key>(array,dim);
for (n = 0; n < dim; n++)
{
sstride[n] = <API key>(array,n);
extent[n] = <API key>(array,n);
if (extent[n] < 0)
extent[n] = 0;
}
for (n = dim; n < rank; n++)
{
sstride[n] = <API key>(array, n + 1);
extent[n] = <API key>(array, n + 1);
if (extent[n] < 0)
extent[n] = 0;
}
if (retarray->base_addr == NULL)
{
size_t alloc_size, str;
for (n = 0; n < rank; n++)
{
if (n == 0)
str = 1;
else
str = <API key>(retarray,n-1) * extent[n-1];
GFC_DIMENSION_SET(retarray->dim[n], 0, extent[n] - 1, str);
}
retarray->offset = 0;
retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
alloc_size = <API key>(retarray,rank-1) * extent[rank-1];
retarray->base_addr = xmallocarray (alloc_size, sizeof (GFC_INTEGER_4));
if (alloc_size == 0)
{
/* Make sure we have a zero-sized array. */
GFC_DIMENSION_SET(retarray->dim[0], 0, -1, 1);
return;
}
}
else
{
if (rank != GFC_DESCRIPTOR_RANK (retarray))
runtime_error ("rank of return array incorrect in"
" MAXLOC intrinsic: is %ld, should be %ld",
(long int) (GFC_DESCRIPTOR_RANK (retarray)),
(long int) rank);
if (unlikely (compile_options.bounds_check))
<API key> ((array_t *) retarray, extent,
"return value", "MAXLOC");
}
for (n = 0; n < rank; n++)
{
count[n] = 0;
dstride[n] = <API key>(retarray,n);
if (extent[n] <= 0)
return;
}
base = array->base_addr;
dest = retarray->base_addr;
continue_loop = 1;
while (continue_loop)
{
const GFC_REAL_8 * restrict src;
GFC_INTEGER_4 result;
src = base;
{
GFC_REAL_8 maxval;
#if defined (GFC_REAL_8_INFINITY)
maxval = -GFC_REAL_8_INFINITY;
#else
maxval = -GFC_REAL_8_HUGE;
#endif
result = 1;
if (len <= 0)
*dest = 0;
else
{
for (n = 0; n < len; n++, src += delta)
{
#if defined (<API key>)
if (*src >= maxval)
{
maxval = *src;
result = (GFC_INTEGER_4)n + 1;
break;
}
}
for (; n < len; n++, src += delta)
{
#endif
if (*src > maxval)
{
maxval = *src;
result = (GFC_INTEGER_4)n + 1;
}
}
*dest = result;
}
}
/* Advance to the next element. */
count[0]++;
base += sstride[0];
dest += dstride[0];
n = 0;
while (count[n] == extent[n])
{
/* When we get to the end of a dimension, reset it and increment
the next dimension. */
count[n] = 0;
/* We could precalculate these products, but this is a less
frequently used path so probably not worth it. */
base -= sstride[n] * extent[n];
dest -= dstride[n] * extent[n];
n++;
if (n >= rank)
{
/* Break out of the loop. */
continue_loop = 0;
break;
}
else
{
count[n]++;
base += sstride[n];
dest += dstride[n];
}
}
}
}
extern void mmaxloc1_4_r8 (gfc_array_i4 * const restrict,
gfc_array_r8 * const restrict, const index_type * const restrict,
gfc_array_l1 * const restrict);
export_proto(mmaxloc1_4_r8);
void
mmaxloc1_4_r8 (gfc_array_i4 * const restrict retarray,
gfc_array_r8 * const restrict array,
const index_type * const restrict pdim,
gfc_array_l1 * const restrict mask)
{
index_type count[GFC_MAX_DIMENSIONS];
index_type extent[GFC_MAX_DIMENSIONS];
index_type sstride[GFC_MAX_DIMENSIONS];
index_type dstride[GFC_MAX_DIMENSIONS];
index_type mstride[GFC_MAX_DIMENSIONS];
GFC_INTEGER_4 * restrict dest;
const GFC_REAL_8 * restrict base;
const GFC_LOGICAL_1 * restrict mbase;
int rank;
int dim;
index_type n;
index_type len;
index_type delta;
index_type mdelta;
int mask_kind;
dim = (*pdim) - 1;
rank = GFC_DESCRIPTOR_RANK (array) - 1;
len = <API key>(array,dim);
if (len <= 0)
return;
mbase = mask->base_addr;
mask_kind = GFC_DESCRIPTOR_SIZE (mask);
if (mask_kind == 1 || mask_kind == 2 || mask_kind == 4 || mask_kind == 8
#ifdef HAVE_GFC_LOGICAL_16
|| mask_kind == 16
#endif
)
mbase = GFOR_POINTER_TO_L1 (mbase, mask_kind);
else
runtime_error ("Funny sized logical array");
delta = <API key>(array,dim);
mdelta = <API key>(mask,dim);
for (n = 0; n < dim; n++)
{
sstride[n] = <API key>(array,n);
mstride[n] = <API key>(mask,n);
extent[n] = <API key>(array,n);
if (extent[n] < 0)
extent[n] = 0;
}
for (n = dim; n < rank; n++)
{
sstride[n] = <API key>(array,n + 1);
mstride[n] = <API key>(mask, n + 1);
extent[n] = <API key>(array, n + 1);
if (extent[n] < 0)
extent[n] = 0;
}
if (retarray->base_addr == NULL)
{
size_t alloc_size, str;
for (n = 0; n < rank; n++)
{
if (n == 0)
str = 1;
else
str= <API key>(retarray,n-1) * extent[n-1];
GFC_DIMENSION_SET(retarray->dim[n], 0, extent[n] - 1, str);
}
alloc_size = <API key>(retarray,rank-1) * extent[rank-1];
retarray->offset = 0;
retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
if (alloc_size == 0)
{
/* Make sure we have a zero-sized array. */
GFC_DIMENSION_SET(retarray->dim[0], 0, -1, 1);
return;
}
else
retarray->base_addr = xmallocarray (alloc_size, sizeof (GFC_INTEGER_4));
}
else
{
if (rank != GFC_DESCRIPTOR_RANK (retarray))
runtime_error ("rank of return array incorrect in MAXLOC intrinsic");
if (unlikely (compile_options.bounds_check))
{
<API key> ((array_t *) retarray, extent,
"return value", "MAXLOC");
<API key> ((array_t *) mask, (array_t *) array,
"MASK argument", "MAXLOC");
}
}
for (n = 0; n < rank; n++)
{
count[n] = 0;
dstride[n] = <API key>(retarray,n);
if (extent[n] <= 0)
return;
}
dest = retarray->base_addr;
base = array->base_addr;
while (base)
{
const GFC_REAL_8 * restrict src;
const GFC_LOGICAL_1 * restrict msrc;
GFC_INTEGER_4 result;
src = base;
msrc = mbase;
{
GFC_REAL_8 maxval;
#if defined (GFC_REAL_8_INFINITY)
maxval = -GFC_REAL_8_INFINITY;
#else
maxval = -GFC_REAL_8_HUGE;
#endif
#if defined (<API key>)
GFC_INTEGER_4 result2 = 0;
#endif
result = 0;
for (n = 0; n < len; n++, src += delta, msrc += mdelta)
{
if (*msrc)
{
#if defined (<API key>)
if (!result2)
result2 = (GFC_INTEGER_4)n + 1;
if (*src >= maxval)
#endif
{
maxval = *src;
result = (GFC_INTEGER_4)n + 1;
break;
}
}
}
#if defined (<API key>)
if (unlikely (n >= len))
result = result2;
else
#endif
for (; n < len; n++, src += delta, msrc += mdelta)
{
if (*msrc && *src > maxval)
{
maxval = *src;
result = (GFC_INTEGER_4)n + 1;
}
}
*dest = result;
}
/* Advance to the next element. */
count[0]++;
base += sstride[0];
mbase += mstride[0];
dest += dstride[0];
n = 0;
while (count[n] == extent[n])
{
/* When we get to the end of a dimension, reset it and increment
the next dimension. */
count[n] = 0;
/* We could precalculate these products, but this is a less
frequently used path so probably not worth it. */
base -= sstride[n] * extent[n];
mbase -= mstride[n] * extent[n];
dest -= dstride[n] * extent[n];
n++;
if (n >= rank)
{
/* Break out of the loop. */
base = NULL;
break;
}
else
{
count[n]++;
base += sstride[n];
mbase += mstride[n];
dest += dstride[n];
}
}
}
}
extern void smaxloc1_4_r8 (gfc_array_i4 * const restrict,
gfc_array_r8 * const restrict, const index_type * const restrict,
GFC_LOGICAL_4 *);
export_proto(smaxloc1_4_r8);
void
smaxloc1_4_r8 (gfc_array_i4 * const restrict retarray,
gfc_array_r8 * const restrict array,
const index_type * const restrict pdim,
GFC_LOGICAL_4 * mask)
{
index_type count[GFC_MAX_DIMENSIONS];
index_type extent[GFC_MAX_DIMENSIONS];
index_type dstride[GFC_MAX_DIMENSIONS];
GFC_INTEGER_4 * restrict dest;
index_type rank;
index_type n;
index_type dim;
if (*mask)
{
maxloc1_4_r8 (retarray, array, pdim);
return;
}
/* Make dim zero based to avoid confusion. */
dim = (*pdim) - 1;
rank = GFC_DESCRIPTOR_RANK (array) - 1;
for (n = 0; n < dim; n++)
{
extent[n] = <API key>(array,n);
if (extent[n] <= 0)
extent[n] = 0;
}
for (n = dim; n < rank; n++)
{
extent[n] =
<API key>(array,n + 1);
if (extent[n] <= 0)
extent[n] = 0;
}
if (retarray->base_addr == NULL)
{
size_t alloc_size, str;
for (n = 0; n < rank; n++)
{
if (n == 0)
str = 1;
else
str = <API key>(retarray,n-1) * extent[n-1];
GFC_DIMENSION_SET(retarray->dim[n], 0, extent[n] - 1, str);
}
retarray->offset = 0;
retarray->dtype = (array->dtype & ~GFC_DTYPE_RANK_MASK) | rank;
alloc_size = <API key>(retarray,rank-1) * extent[rank-1];
if (alloc_size == 0)
{
/* Make sure we have a zero-sized array. */
GFC_DIMENSION_SET(retarray->dim[0], 0, -1, 1);
return;
}
else
retarray->base_addr = xmallocarray (alloc_size, sizeof (GFC_INTEGER_4));
}
else
{
if (rank != GFC_DESCRIPTOR_RANK (retarray))
runtime_error ("rank of return array incorrect in"
" MAXLOC intrinsic: is %ld, should be %ld",
(long int) (GFC_DESCRIPTOR_RANK (retarray)),
(long int) rank);
if (unlikely (compile_options.bounds_check))
{
for (n=0; n < rank; n++)
{
index_type ret_extent;
ret_extent = <API key>(retarray,n);
if (extent[n] != ret_extent)
runtime_error ("Incorrect extent in return value of"
" MAXLOC intrinsic in dimension %ld:"
" is %ld, should be %ld", (long int) n + 1,
(long int) ret_extent, (long int) extent[n]);
}
}
}
for (n = 0; n < rank; n++)
{
count[n] = 0;
dstride[n] = <API key>(retarray,n);
}
dest = retarray->base_addr;
while(1)
{
*dest = 0;
count[0]++;
dest += dstride[0];
n = 0;
while (count[n] == extent[n])
{
/* When we get to the end of a dimension, reset it and increment
the next dimension. */
count[n] = 0;
/* We could precalculate these products, but this is a less
frequently used path so probably not worth it. */
dest -= dstride[n] * extent[n];
n++;
if (n >= rank)
return;
else
{
count[n]++;
dest += dstride[n];
}
}
}
}
#endif
|
// -*- mode:C++ ; compile-command: "g++ -I.. -g -c Help1.cc" -*-
#ifndef _HELP_H
#define _HELP_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifndef IN_GIAC
#include <giac/first.h>
#include <giac/gen.h>
#include <giac/identificateur.h>
#else
#include "first.h"
#include "gen.h"
#include "identificateur.h"
#endif
#include "vector.h"
#include <string>
#include <iostream>
#ifdef HAVE_LIBFLTK
#include <FL/Fl_Window.H>
#include <FL/Fl_Menu.H>
#include <FL/Fl_Group.H>
#include <FL/Fl_Scrollbar.H>
#include <FL/Fl_Multiline_Input.H>
#include <FL/Fl_Multiline_Output.H>
#include <FL/Fl_Help_Dialog.H>
#endif
#ifdef HAVE_LC_MESSAGES
#include <locale.h>
#endif
#include "giacintl.h"
#ifndef NO_NAMESPACE_XCAS
namespace xcas {
#endif // ndef NO_NAMESPACE_XCAS
std::string <API key>(const std::string & s);
std::string help_translate(const std::string & s);
void help_fltk(const std::string &);
#ifndef NO_NAMESPACE_XCAS
} // namespace xcas
#endif // ndef NO_NAMESPACE_XCAS
#endif // _HELP_H
|
#ifndef __LINUX_KEYBOARD_H
#define __LINUX_KEYBOARD_H
#define KG_SHIFT 0
#define KG_CTRL 2
#define KG_ALT 3
#define KG_ALTGR 1
#define KG_SHIFTL 4
#define KG_KANASHIFT 4
#define KG_SHIFTR 5
#define KG_CTRLL 6
#define KG_CTRLR 7
#define KG_CAPSSHIFT 8
#define NR_SHIFT 9
#define NR_KEYS 256
#define MAX_NR_KEYMAPS 256
/* This means 128Kb if all keymaps are allocated. Only the superuser
may increase the number of keymaps beyond <API key>. */
#define <API key> 256 /* should be at least 7 */
#define MAX_NR_FUNC 256 /* max nr of strings assigned to keys */
#define KT_LATIN 0 /* we depend on this being zero */
#define KT_LETTER 11 /* symbol that can be acted upon by CapsLock */
#define KT_FN 1
#define KT_SPEC 2
#define KT_PAD 3
#define KT_DEAD 4
#define KT_CONS 5
#define KT_CUR 6
#define KT_SHIFT 7
#define KT_META 8
#define KT_ASCII 9
#define KT_LOCK 10
#define KT_SLOCK 12
#define KT_DEAD2 13
#define KT_BRL 14
#define K(t,v) (((t)<<8)|(v))
#define KTYP(x) ((x) >> 8)
#define KVAL(x) ((x) & 0xff)
#define K_F1 K(KT_FN,0)
#define K_F2 K(KT_FN,1)
#define K_F3 K(KT_FN,2)
#define K_F4 K(KT_FN,3)
#define K_F5 K(KT_FN,4)
#define K_F6 K(KT_FN,5)
#define K_F7 K(KT_FN,6)
#define K_F8 K(KT_FN,7)
#define K_F9 K(KT_FN,8)
#define K_F10 K(KT_FN,9)
#define K_F11 K(KT_FN,10)
#define K_F12 K(KT_FN,11)
#define K_F13 K(KT_FN,12)
#define K_F14 K(KT_FN,13)
#define K_F15 K(KT_FN,14)
#define K_F16 K(KT_FN,15)
#define K_F17 K(KT_FN,16)
#define K_F18 K(KT_FN,17)
#define K_F19 K(KT_FN,18)
#define K_F20 K(KT_FN,19)
#define K_FIND K(KT_FN,20)
#define K_INSERT K(KT_FN,21)
#define K_REMOVE K(KT_FN,22)
#define K_SELECT K(KT_FN,23)
#define K_PGUP K(KT_FN,24) /* PGUP is a synonym for PRIOR */
#define K_PGDN K(KT_FN,25) /* PGDN is a synonym for NEXT */
#define K_MACRO K(KT_FN,26)
#define K_HELP K(KT_FN,27)
#define K_DO K(KT_FN,28)
#define K_PAUSE K(KT_FN,29)
#define K_F21 K(KT_FN,30)
#define K_F22 K(KT_FN,31)
#define K_F23 K(KT_FN,32)
#define K_F24 K(KT_FN,33)
#define K_F25 K(KT_FN,34)
#define K_F26 K(KT_FN,35)
#define K_F27 K(KT_FN,36)
#define K_F28 K(KT_FN,37)
#define K_F29 K(KT_FN,38)
#define K_F30 K(KT_FN,39)
#define K_F31 K(KT_FN,40)
#define K_F32 K(KT_FN,41)
#define K_F33 K(KT_FN,42)
#define K_F34 K(KT_FN,43)
#define K_F35 K(KT_FN,44)
#define K_F36 K(KT_FN,45)
#define K_F37 K(KT_FN,46)
#define K_F38 K(KT_FN,47)
#define K_F39 K(KT_FN,48)
#define K_F40 K(KT_FN,49)
#define K_F41 K(KT_FN,50)
#define K_F42 K(KT_FN,51)
#define K_F43 K(KT_FN,52)
#define K_F44 K(KT_FN,53)
#define K_F45 K(KT_FN,54)
#define K_F46 K(KT_FN,55)
#define K_F47 K(KT_FN,56)
#define K_F48 K(KT_FN,57)
#define K_F49 K(KT_FN,58)
#define K_F50 K(KT_FN,59)
#define K_F51 K(KT_FN,60)
#define K_F52 K(KT_FN,61)
#define K_F53 K(KT_FN,62)
#define K_F54 K(KT_FN,63)
#define K_F55 K(KT_FN,64)
#define K_F56 K(KT_FN,65)
#define K_F57 K(KT_FN,66)
#define K_F58 K(KT_FN,67)
#define K_F59 K(KT_FN,68)
#define K_F60 K(KT_FN,69)
#define K_F61 K(KT_FN,70)
#define K_F62 K(KT_FN,71)
#define K_F63 K(KT_FN,72)
#define K_F64 K(KT_FN,73)
#define K_F65 K(KT_FN,74)
#define K_F66 K(KT_FN,75)
#define K_F67 K(KT_FN,76)
#define K_F68 K(KT_FN,77)
#define K_F69 K(KT_FN,78)
#define K_F70 K(KT_FN,79)
#define K_F71 K(KT_FN,80)
#define K_F72 K(KT_FN,81)
#define K_F73 K(KT_FN,82)
#define K_F74 K(KT_FN,83)
#define K_F75 K(KT_FN,84)
#define K_F76 K(KT_FN,85)
#define K_F77 K(KT_FN,86)
#define K_F78 K(KT_FN,87)
#define K_F79 K(KT_FN,88)
#define K_F80 K(KT_FN,89)
#define K_F81 K(KT_FN,90)
#define K_F82 K(KT_FN,91)
#define K_F83 K(KT_FN,92)
#define K_F84 K(KT_FN,93)
#define K_F85 K(KT_FN,94)
#define K_F86 K(KT_FN,95)
#define K_F87 K(KT_FN,96)
#define K_F88 K(KT_FN,97)
#define K_F89 K(KT_FN,98)
#define K_F90 K(KT_FN,99)
#define K_F91 K(KT_FN,100)
#define K_F92 K(KT_FN,101)
#define K_F93 K(KT_FN,102)
#define K_F94 K(KT_FN,103)
#define K_F95 K(KT_FN,104)
#define K_F96 K(KT_FN,105)
#define K_F97 K(KT_FN,106)
#define K_F98 K(KT_FN,107)
#define K_F99 K(KT_FN,108)
#define K_F100 K(KT_FN,109)
#define K_F101 K(KT_FN,110)
#define K_F102 K(KT_FN,111)
#define K_F103 K(KT_FN,112)
#define K_F104 K(KT_FN,113)
#define K_F105 K(KT_FN,114)
#define K_F106 K(KT_FN,115)
#define K_F107 K(KT_FN,116)
#define K_F108 K(KT_FN,117)
#define K_F109 K(KT_FN,118)
#define K_F110 K(KT_FN,119)
#define K_F111 K(KT_FN,120)
#define K_F112 K(KT_FN,121)
#define K_F113 K(KT_FN,122)
#define K_F114 K(KT_FN,123)
#define K_F115 K(KT_FN,124)
#define K_F116 K(KT_FN,125)
#define K_F117 K(KT_FN,126)
#define K_F118 K(KT_FN,127)
#define K_F119 K(KT_FN,128)
#define K_F120 K(KT_FN,129)
#define K_F121 K(KT_FN,130)
#define K_F122 K(KT_FN,131)
#define K_F123 K(KT_FN,132)
#define K_F124 K(KT_FN,133)
#define K_F125 K(KT_FN,134)
#define K_F126 K(KT_FN,135)
#define K_F127 K(KT_FN,136)
#define K_F128 K(KT_FN,137)
#define K_F129 K(KT_FN,138)
#define K_F130 K(KT_FN,139)
#define K_F131 K(KT_FN,140)
#define K_F132 K(KT_FN,141)
#define K_F133 K(KT_FN,142)
#define K_F134 K(KT_FN,143)
#define K_F135 K(KT_FN,144)
#define K_F136 K(KT_FN,145)
#define K_F137 K(KT_FN,146)
#define K_F138 K(KT_FN,147)
#define K_F139 K(KT_FN,148)
#define K_F140 K(KT_FN,149)
#define K_F141 K(KT_FN,150)
#define K_F142 K(KT_FN,151)
#define K_F143 K(KT_FN,152)
#define K_F144 K(KT_FN,153)
#define K_F145 K(KT_FN,154)
#define K_F146 K(KT_FN,155)
#define K_F147 K(KT_FN,156)
#define K_F148 K(KT_FN,157)
#define K_F149 K(KT_FN,158)
#define K_F150 K(KT_FN,159)
#define K_F151 K(KT_FN,160)
#define K_F152 K(KT_FN,161)
#define K_F153 K(KT_FN,162)
#define K_F154 K(KT_FN,163)
#define K_F155 K(KT_FN,164)
#define K_F156 K(KT_FN,165)
#define K_F157 K(KT_FN,166)
#define K_F158 K(KT_FN,167)
#define K_F159 K(KT_FN,168)
#define K_F160 K(KT_FN,169)
#define K_F161 K(KT_FN,170)
#define K_F162 K(KT_FN,171)
#define K_F163 K(KT_FN,172)
#define K_F164 K(KT_FN,173)
#define K_F165 K(KT_FN,174)
#define K_F166 K(KT_FN,175)
#define K_F167 K(KT_FN,176)
#define K_F168 K(KT_FN,177)
#define K_F169 K(KT_FN,178)
#define K_F170 K(KT_FN,179)
#define K_F171 K(KT_FN,180)
#define K_F172 K(KT_FN,181)
#define K_F173 K(KT_FN,182)
#define K_F174 K(KT_FN,183)
#define K_F175 K(KT_FN,184)
#define K_F176 K(KT_FN,185)
#define K_F177 K(KT_FN,186)
#define K_F178 K(KT_FN,187)
#define K_F179 K(KT_FN,188)
#define K_F180 K(KT_FN,189)
#define K_F181 K(KT_FN,190)
#define K_F182 K(KT_FN,191)
#define K_F183 K(KT_FN,192)
#define K_F184 K(KT_FN,193)
#define K_F185 K(KT_FN,194)
#define K_F186 K(KT_FN,195)
#define K_F187 K(KT_FN,196)
#define K_F188 K(KT_FN,197)
#define K_F189 K(KT_FN,198)
#define K_F190 K(KT_FN,199)
#define K_F191 K(KT_FN,200)
#define K_F192 K(KT_FN,201)
#define K_F193 K(KT_FN,202)
#define K_F194 K(KT_FN,203)
#define K_F195 K(KT_FN,204)
#define K_F196 K(KT_FN,205)
#define K_F197 K(KT_FN,206)
#define K_F198 K(KT_FN,207)
#define K_F199 K(KT_FN,208)
#define K_F200 K(KT_FN,209)
#define K_F201 K(KT_FN,210)
#define K_F202 K(KT_FN,211)
#define K_F203 K(KT_FN,212)
#define K_F204 K(KT_FN,213)
#define K_F205 K(KT_FN,214)
#define K_F206 K(KT_FN,215)
#define K_F207 K(KT_FN,216)
#define K_F208 K(KT_FN,217)
#define K_F209 K(KT_FN,218)
#define K_F210 K(KT_FN,219)
#define K_F211 K(KT_FN,220)
#define K_F212 K(KT_FN,221)
#define K_F213 K(KT_FN,222)
#define K_F214 K(KT_FN,223)
#define K_F215 K(KT_FN,224)
#define K_F216 K(KT_FN,225)
#define K_F217 K(KT_FN,226)
#define K_F218 K(KT_FN,227)
#define K_F219 K(KT_FN,228)
#define K_F220 K(KT_FN,229)
#define K_F221 K(KT_FN,230)
#define K_F222 K(KT_FN,231)
#define K_F223 K(KT_FN,232)
#define K_F224 K(KT_FN,233)
#define K_F225 K(KT_FN,234)
#define K_F226 K(KT_FN,235)
#define K_F227 K(KT_FN,236)
#define K_F228 K(KT_FN,237)
#define K_F229 K(KT_FN,238)
#define K_F230 K(KT_FN,239)
#define K_F231 K(KT_FN,240)
#define K_F232 K(KT_FN,241)
#define K_F233 K(KT_FN,242)
#define K_F234 K(KT_FN,243)
#define K_F235 K(KT_FN,244)
#define K_F236 K(KT_FN,245)
#define K_F237 K(KT_FN,246)
#define K_F238 K(KT_FN,247)
#define K_F239 K(KT_FN,248)
#define K_F240 K(KT_FN,249)
#define K_F241 K(KT_FN,250)
#define K_F242 K(KT_FN,251)
#define K_F243 K(KT_FN,252)
#define K_F244 K(KT_FN,253)
#define K_F245 K(KT_FN,254)
#define K_UNDO K(KT_FN,255)
#define K_HOLE K(KT_SPEC,0)
#define K_ENTER K(KT_SPEC,1)
#define K_SH_REGS K(KT_SPEC,2)
#define K_SH_MEM K(KT_SPEC,3)
#define K_SH_STAT K(KT_SPEC,4)
#define K_BREAK K(KT_SPEC,5)
#define K_CONS K(KT_SPEC,6)
#define K_CAPS K(KT_SPEC,7)
#define K_NUM K(KT_SPEC,8)
#define K_HOLD K(KT_SPEC,9)
#define K_SCROLLFORW K(KT_SPEC,10)
#define K_SCROLLBACK K(KT_SPEC,11)
#define K_BOOT K(KT_SPEC,12)
#define K_CAPSON K(KT_SPEC,13)
#define K_COMPOSE K(KT_SPEC,14)
#define K_SAK K(KT_SPEC,15)
#define K_DECRCONSOLE K(KT_SPEC,16)
#define K_INCRCONSOLE K(KT_SPEC,17)
#define K_SPAWNCONSOLE K(KT_SPEC,18)
#define K_BARENUMLOCK K(KT_SPEC,19)
#define K_ALLOCATED K(KT_SPEC,126) /* dynamically allocated keymap */
#define K_NOSUCHMAP K(KT_SPEC,127) /* returned by KDGKBENT */
#define K_P0 K(KT_PAD,0)
#define K_P1 K(KT_PAD,1)
#define K_P2 K(KT_PAD,2)
#define K_P3 K(KT_PAD,3)
#define K_P4 K(KT_PAD,4)
#define K_P5 K(KT_PAD,5)
#define K_P6 K(KT_PAD,6)
#define K_P7 K(KT_PAD,7)
#define K_P8 K(KT_PAD,8)
#define K_P9 K(KT_PAD,9)
#define K_PPLUS K(KT_PAD,10) /* key-pad plus */
#define K_PMINUS K(KT_PAD,11) /* key-pad minus */
#define K_PSTAR K(KT_PAD,12) /* key-pad asterisk (star) */
#define K_PSLASH K(KT_PAD,13) /* key-pad slash */
#define K_PENTER K(KT_PAD,14) /* key-pad enter */
#define K_PCOMMA K(KT_PAD,15) /* key-pad comma: kludge... */
#define K_PDOT K(KT_PAD,16) /* key-pad dot (period): kludge... */
#define K_PPLUSMINUS K(KT_PAD,17) /* key-pad plus/minus */
#define K_PPARENL K(KT_PAD,18) /* key-pad left parenthesis */
#define K_PPARENR K(KT_PAD,19) /* key-pad right parenthesis */
#define NR_PAD 20
#define K_DGRAVE K(KT_DEAD,0)
#define K_DACUTE K(KT_DEAD,1)
#define K_DCIRCM K(KT_DEAD,2)
#define K_DTILDE K(KT_DEAD,3)
#define K_DDIERE K(KT_DEAD,4)
#define K_DCEDIL K(KT_DEAD,5)
#define NR_DEAD 6
#define K_DOWN K(KT_CUR,0)
#define K_LEFT K(KT_CUR,1)
#define K_RIGHT K(KT_CUR,2)
#define K_UP K(KT_CUR,3)
#define K_SHIFT K(KT_SHIFT,KG_SHIFT)
#define K_CTRL K(KT_SHIFT,KG_CTRL)
#define K_ALT K(KT_SHIFT,KG_ALT)
#define K_ALTGR K(KT_SHIFT,KG_ALTGR)
#define K_SHIFTL K(KT_SHIFT,KG_SHIFTL)
#define K_SHIFTR K(KT_SHIFT,KG_SHIFTR)
#define K_CTRLL K(KT_SHIFT,KG_CTRLL)
#define K_CTRLR K(KT_SHIFT,KG_CTRLR)
#define K_CAPSSHIFT K(KT_SHIFT,KG_CAPSSHIFT)
#define K_ASC0 K(KT_ASCII,0)
#define K_ASC1 K(KT_ASCII,1)
#define K_ASC2 K(KT_ASCII,2)
#define K_ASC3 K(KT_ASCII,3)
#define K_ASC4 K(KT_ASCII,4)
#define K_ASC5 K(KT_ASCII,5)
#define K_ASC6 K(KT_ASCII,6)
#define K_ASC7 K(KT_ASCII,7)
#define K_ASC8 K(KT_ASCII,8)
#define K_ASC9 K(KT_ASCII,9)
#define K_HEX0 K(KT_ASCII,10)
#define K_HEX1 K(KT_ASCII,11)
#define K_HEX2 K(KT_ASCII,12)
#define K_HEX3 K(KT_ASCII,13)
#define K_HEX4 K(KT_ASCII,14)
#define K_HEX5 K(KT_ASCII,15)
#define K_HEX6 K(KT_ASCII,16)
#define K_HEX7 K(KT_ASCII,17)
#define K_HEX8 K(KT_ASCII,18)
#define K_HEX9 K(KT_ASCII,19)
#define K_HEXa K(KT_ASCII,20)
#define K_HEXb K(KT_ASCII,21)
#define K_HEXc K(KT_ASCII,22)
#define K_HEXd K(KT_ASCII,23)
#define K_HEXe K(KT_ASCII,24)
#define K_HEXf K(KT_ASCII,25)
#define NR_ASCII 26
#define K_SHIFTLOCK K(KT_LOCK,KG_SHIFT)
#define K_CTRLLOCK K(KT_LOCK,KG_CTRL)
#define K_ALTLOCK K(KT_LOCK,KG_ALT)
#define K_ALTGRLOCK K(KT_LOCK,KG_ALTGR)
#define K_SHIFTLLOCK K(KT_LOCK,KG_SHIFTL)
#define K_SHIFTRLOCK K(KT_LOCK,KG_SHIFTR)
#define K_CTRLLLOCK K(KT_LOCK,KG_CTRLL)
#define K_CTRLRLOCK K(KT_LOCK,KG_CTRLR)
#define K_CAPSSHIFTLOCK K(KT_LOCK,KG_CAPSSHIFT)
#define K_SHIFT_SLOCK K(KT_SLOCK,KG_SHIFT)
#define K_CTRL_SLOCK K(KT_SLOCK,KG_CTRL)
#define K_ALT_SLOCK K(KT_SLOCK,KG_ALT)
#define K_ALTGR_SLOCK K(KT_SLOCK,KG_ALTGR)
#define K_SHIFTL_SLOCK K(KT_SLOCK,KG_SHIFTL)
#define K_SHIFTR_SLOCK K(KT_SLOCK,KG_SHIFTR)
#define K_CTRLL_SLOCK K(KT_SLOCK,KG_CTRLL)
#define K_CTRLR_SLOCK K(KT_SLOCK,KG_CTRLR)
#define K_CAPSSHIFT_SLOCK K(KT_SLOCK,KG_CAPSSHIFT)
#define NR_LOCK 9
#define K_BRL_BLANK K(KT_BRL, 0)
#define K_BRL_DOT1 K(KT_BRL, 1)
#define K_BRL_DOT2 K(KT_BRL, 2)
#define K_BRL_DOT3 K(KT_BRL, 3)
#define K_BRL_DOT4 K(KT_BRL, 4)
#define K_BRL_DOT5 K(KT_BRL, 5)
#define K_BRL_DOT6 K(KT_BRL, 6)
#define K_BRL_DOT7 K(KT_BRL, 7)
#define K_BRL_DOT8 K(KT_BRL, 8)
#define K_BRL_DOT9 K(KT_BRL, 9)
#define K_BRL_DOT10 K(KT_BRL, 10)
#define NR_BRL 11
#define MAX_DIACR 256
#endif
|
/**
* \addtogroup packetbuf
* @{
*/
/**
* \file
* Rime buffer (packetbuf) management
* \author
* Adam Dunkels <adam@sics.se>
*/
#include <string.h>
#include "contiki-net.h"
#include "net/packetbuf.h"
#include "net/rime.h"
struct packetbuf_attr packetbuf_attrs[PACKETBUF_NUM_ATTRS];
struct packetbuf_addr packetbuf_addrs[PACKETBUF_NUM_ADDRS];
static uint16_t buflen, bufptr;
static uint8_t hdrptr;
/* The declarations below ensure that the packet buffer is aligned on
an even 16-bit boundary. On some platforms (most notably the
msp430), having apotentially misaligned packet buffer may lead to
problems when accessing 16-bit values. */
static uint16_t packetbuf_aligned[(PACKETBUF_SIZE + PACKETBUF_HDR_SIZE) / 2 + 1];
static uint8_t *packetbuf = (uint8_t *)packetbuf_aligned;
static uint8_t *packetbufptr;
#define DEBUG 0
#if DEBUG
#include <stdio.h>
#define PRINTF(...) printf(__VA_ARGS__)
#else
#define PRINTF(...)
#endif
void
packetbuf_clear(void)
{
buflen = bufptr = 0;
hdrptr = PACKETBUF_HDR_SIZE;
packetbufptr = &packetbuf[PACKETBUF_HDR_SIZE];
<API key>();
}
void
packetbuf_clear_hdr(void)
{
hdrptr = PACKETBUF_HDR_SIZE;
}
int
packetbuf_copyfrom(const void *from, uint16_t len)
{
uint16_t l;
packetbuf_clear();
l = len > PACKETBUF_SIZE? PACKETBUF_SIZE: len;
memcpy(packetbufptr, from, l);
buflen = l;
return l;
}
void
packetbuf_compact(void)
{
int i, len;
if(<API key>()) {
memcpy(&packetbuf[PACKETBUF_HDR_SIZE], <API key>(),
packetbuf_datalen());
} else if (bufptr > 0) {
len = packetbuf_datalen() + PACKETBUF_HDR_SIZE;
for(i = PACKETBUF_HDR_SIZE; i < len; i++) {
packetbuf[i] = packetbuf[bufptr + i];
}
bufptr = 0;
}
}
int
<API key>(uint8_t *to)
{
#if DEBUG_LEVEL > 0
{
int i;
PRINTF("packetbuf_write_hdr: header:\n");
for(i = hdrptr; i < PACKETBUF_HDR_SIZE; ++i) {
PRINTF("0x%02x, ", packetbuf[i]);
}
PRINTF("\n");
}
#endif /* DEBUG_LEVEL */
memcpy(to, packetbuf + hdrptr, PACKETBUF_HDR_SIZE - hdrptr);
return PACKETBUF_HDR_SIZE - hdrptr;
}
int
packetbuf_copyto(void *to)
{
#if DEBUG_LEVEL > 0
{
int i;
char buffer[1000];
char *bufferptr = buffer;
bufferptr[0] = 0;
for(i = hdrptr; i < PACKETBUF_HDR_SIZE; ++i) {
bufferptr += sprintf(bufferptr, "0x%02x, ", packetbuf[i]);
}
PRINTF("packetbuf_write: header: %s\n", buffer);
bufferptr = buffer;
bufferptr[0] = 0;
for(i = bufptr; i < buflen + bufptr; ++i) {
bufferptr += sprintf(bufferptr, "0x%02x, ", packetbufptr[i]);
}
PRINTF("packetbuf_write: data: %s\n", buffer);
}
#endif /* DEBUG_LEVEL */
if(PACKETBUF_HDR_SIZE - hdrptr + buflen > PACKETBUF_SIZE) {
/* Too large packet */
return 0;
}
memcpy(to, packetbuf + hdrptr, PACKETBUF_HDR_SIZE - hdrptr);
memcpy((uint8_t *)to + PACKETBUF_HDR_SIZE - hdrptr, packetbufptr + bufptr,
buflen);
return PACKETBUF_HDR_SIZE - hdrptr + buflen;
}
int
packetbuf_hdralloc(int size)
{
if(hdrptr >= size && packetbuf_totlen() + size <= PACKETBUF_SIZE) {
hdrptr -= size;
return 1;
}
return 0;
}
void
<API key>(int size)
{
hdrptr += size;
}
int
packetbuf_hdrreduce(int size)
{
if(buflen < size) {
return 0;
}
bufptr += size;
buflen -= size;
return 1;
}
void
<API key>(uint16_t len)
{
PRINTF("packetbuf_set_len: len %d\n", len);
buflen = len;
}
void *
packetbuf_dataptr(void)
{
return (void *)(&packetbuf[bufptr + PACKETBUF_HDR_SIZE]);
}
void *
packetbuf_hdrptr(void)
{
return (void *)(&packetbuf[hdrptr]);
}
void
packetbuf_reference(void *ptr, uint16_t len)
{
packetbuf_clear();
packetbufptr = ptr;
buflen = len;
}
int
<API key>(void)
{
return packetbufptr != &packetbuf[PACKETBUF_HDR_SIZE];
}
void *
<API key>(void)
{
return packetbufptr;
}
uint16_t
packetbuf_datalen(void)
{
return buflen;
}
uint8_t
packetbuf_hdrlen(void)
{
return PACKETBUF_HDR_SIZE - hdrptr;
}
uint16_t
packetbuf_totlen(void)
{
return packetbuf_hdrlen() + packetbuf_datalen();
}
void
<API key>(void)
{
int i;
for(i = 0; i < PACKETBUF_NUM_ATTRS; ++i) {
packetbuf_attrs[i].val = 0;
}
for(i = 0; i < PACKETBUF_NUM_ADDRS; ++i) {
rimeaddr_copy(&packetbuf_addrs[i].addr, &rimeaddr_null);
}
}
void
<API key>(struct packetbuf_attr *attrs,
struct packetbuf_addr *addrs)
{
memcpy(attrs, packetbuf_attrs, sizeof(packetbuf_attrs));
memcpy(addrs, packetbuf_addrs, sizeof(packetbuf_addrs));
}
void
<API key>(struct packetbuf_attr *attrs,
struct packetbuf_addr *addrs)
{
memcpy(packetbuf_attrs, attrs, sizeof(packetbuf_attrs));
memcpy(packetbuf_addrs, addrs, sizeof(packetbuf_addrs));
}
#if !<API key>
int
packetbuf_set_attr(uint8_t type, const packetbuf_attr_t val)
{
/* packetbuf_attrs[type].type = type; */
packetbuf_attrs[type].val = val;
return 1;
}
packetbuf_attr_t
packetbuf_attr(uint8_t type)
{
return packetbuf_attrs[type].val;
}
int
packetbuf_set_addr(uint8_t type, const rimeaddr_t *addr)
{
/* packetbuf_addrs[type - <API key>].type = type; */
rimeaddr_copy(&packetbuf_addrs[type - <API key>].addr, addr);
return 1;
}
const rimeaddr_t *
packetbuf_addr(uint8_t type)
{
return &packetbuf_addrs[type - <API key>].addr;
}
#endif /* <API key> */
|
#ifndef <API key>
#define <API key>
#include "mp_game_settings.hpp"
#include "network.hpp"
class config;
class saved_game;
namespace mp {
config <API key>(saved_game& state);
void level_to_gamestate(const config& level, saved_game& state);
void check_response(network::connection res, const config& data);
} // end namespace mp
#endif
|
#include <sys/types.h>
#include <sys/socket.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
#include <string.h>
#include <unistd.h>
#include "config.h"
#include "net-support.h"
#include "pathnames.h"
#include "intl.h"
#include "util.h"
int flag_unx = 0;
int flag_ipx = 0;
int flag_ax25 = 0;
int flag_ddp = 0;
int flag_netrom = 0;
int flag_inet = 0;
int flag_inet6 = 0;
int flag_econet = 0;
struct aftrans_t {
char *alias;
char *name;
int *flag;
} aftrans[] = {
{
"ax25", "ax25", &flag_ax25
},
{
"ip", "inet", &flag_inet
},
{
"ip6", "inet6", &flag_inet6
},
{
"ipx", "ipx", &flag_ipx
},
{
"appletalk", "ddp", &flag_ddp
},
{
"netrom", "netrom", &flag_netrom
},
{
"inet", "inet", &flag_inet
},
{
"inet6", "inet6", &flag_inet6
},
{
"ddp", "ddp", &flag_ddp
},
{
"unix", "unix", &flag_unx
},
{
"tcpip", "inet", &flag_inet
},
{
"econet", "ec", &flag_econet
},
{
0, 0, 0
}
};
char afname[256] = "";
extern struct aftype unspec_aftype;
extern struct aftype unix_aftype;
extern struct aftype inet_aftype;
extern struct aftype inet6_aftype;
extern struct aftype ax25_aftype;
extern struct aftype netrom_aftype;
extern struct aftype ipx_aftype;
extern struct aftype ddp_aftype;
extern struct aftype ec_aftype;
extern struct aftype rose_aftype;
static short sVafinit = 0;
struct aftype *aftypes[] =
{
#if HAVE_AFUNIX
&unix_aftype,
#endif
#if HAVE_AFINET
&inet_aftype,
#endif
#if HAVE_AFINET6
&inet6_aftype,
#endif
#if HAVE_AFAX25
&ax25_aftype,
#endif
#if HAVE_AFNETROM
&netrom_aftype,
#endif
#if HAVE_AFROSE
&rose_aftype,
#endif
#if HAVE_AFIPX
&ipx_aftype,
#endif
#if HAVE_AFATALK
&ddp_aftype,
#endif
#if HAVE_AFECONET
&ec_aftype,
#endif
&unspec_aftype,
NULL
};
void afinit()
{
unspec_aftype.title = _("UNSPEC");
#if HAVE_AFUNIX
unix_aftype.title = _("UNIX Domain");
#endif
#if HAVE_AFINET
inet_aftype.title = _("DARPA Internet");
#endif
#if HAVE_AFINET6
inet6_aftype.title = _("IPv6");
#endif
#if HAVE_AFAX25
ax25_aftype.title = _("AMPR AX.25");
#endif
#if HAVE_AFNETROM
netrom_aftype.title = _("AMPR NET/ROM");
#endif
#if HAVE_AFIPX
ipx_aftype.title = _("Novell IPX");
#endif
#if HAVE_AFATALK
ddp_aftype.title = _("Appletalk DDP");
#endif
#if HAVE_AFECONET
ec_aftype.title = _("Econet");
#endif
#if HAVE_AFROSE
rose_aftype.title = _("AMPR ROSE");
#endif
sVafinit = 1;
}
/* set the default AF list from the program name or a constant value */
void aftrans_def(char *tool, char *argv0, char *dflt)
{
char *tmp;
char *buf;
strcpy(afname, dflt);
if (!(tmp = strrchr(argv0, '/')))
tmp = argv0; /* no slash?! */
else
tmp++;
if (!(buf = strdup(tmp)))
return;
if (strlen(tool) >= strlen(tmp)) {
free(buf);
return;
}
tmp = buf + (strlen(tmp) - strlen(tool));
if (strcmp(tmp, tool) != 0) {
free(buf);
return;
}
*tmp = '\0';
if ((tmp = strchr(buf, '_')))
*tmp = '\0';
afname[0] = '\0';
if (aftrans_opt(buf))
strcpy(afname, buf);
free(buf);
}
/* Check our protocol family table for this family. */
struct aftype *get_aftype(const char *name)
{
struct aftype **afp;
if (!sVafinit)
afinit();
afp = aftypes;
while (*afp != NULL) {
if (!strcmp((*afp)->name, name))
return (*afp);
afp++;
}
if (index(name, ','))
fprintf(stderr, _("Please don't supply more than one address family.\n"));
return (NULL);
}
/* Check our protocol family table for this family. */
struct aftype *get_afntype(int af)
{
struct aftype **afp;
if (!sVafinit)
afinit();
afp = aftypes;
while (*afp != NULL) {
if ((*afp)->af == af)
return (*afp);
afp++;
}
return (NULL);
}
/* Check our protocol family table for this family and return its socket */
int get_socket_for_af(int af)
{
struct aftype **afp;
if (!sVafinit)
afinit();
afp = aftypes;
while (*afp != NULL) {
if ((*afp)->af == af)
return (*afp)->fd;
afp++;
}
return -1;
}
int aftrans_opt(const char *arg)
{
struct aftrans_t *paft;
char *tmp1, *tmp2;
char buf[256];
safe_strncpy(buf, arg, sizeof(buf));
tmp1 = buf;
while (tmp1) {
tmp2 = index(tmp1, ',');
if (tmp2)
*(tmp2++) = '\0';
paft = aftrans;
for (paft = aftrans; paft->alias; paft++) {
if (strcmp(tmp1, paft->alias))
continue;
if (strlen(paft->name) + strlen(afname) + 1 >= sizeof(afname)) {
fprintf(stderr, _("Too much address family arguments.\n"));
return (0);
}
if (paft->flag)
(*paft->flag)++;
if (afname[0])
strcat(afname, ",");
strcat(afname, paft->name);
break;
}
if (!paft->alias) {
fprintf(stderr, _("Unknown address family `%s'.\n"), tmp1);
return (1);
}
tmp1 = tmp2;
}
return (0);
}
/* type: 0=all, 1=getroute */
void print_aflist(int type) {
int count = 0;
char * txt;
struct aftype **afp;
if (!sVafinit)
afinit();
afp = aftypes;
while (*afp != NULL) {
if ((type == 1 && ((*afp)->rprint == NULL)) || ((*afp)->af == 0)) {
afp++; continue;
}
if ((count % 3) == 0) fprintf(stderr,count?"\n ":" ");
txt = (*afp)->name; if (!txt) txt = "..";
fprintf(stderr,"%s (%s) ",txt,(*afp)->title);
count++;
afp++;
}
fprintf(stderr,"\n");
}
|
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "wldlg.h"
void <API key>(void)
{
/* PORTME */
}
|
#!/bin/sh
LANG=POSIX
TMP_OUTPUT=eng1.txt
TMP_GET_UNC=english.txt
TMP_FINAL=eng2.txt
OUTPUT=english.dict
OUTPUT_SYNTH=english_synth.dict
MORFOLOGIK=morfologik-tools-1.5.4-standalone.jar
rm $TMP_OUTPUT
rm $TMP_GET_UNC
rm $TMP_FINAL
gawk -f filter_out.awk infl.txt part-of-speech.txt| gawk -f remap.awk >penn.txt
cat penn.txt manually_added.txt | sort -u >$TMP_GET_UNC
cp $TMP_GET_UNC $TMP_FINAL
gawk -f get_unc.awk $TMP_FINAL |sort -u > $TMP_OUTPUT
#test
gawk -f test_dict.awk $TMP_OUTPUT
#create normal dictionary
#cp $TMP_OUTPUT
#gawk -f morph_data.awk $TMP_OUTPUT | fsa_ubuild -O -o $OUTPUT
java -jar $MORFOLOGIK tab2morph -i $TMP_OUTPUT -o $TMP_OUTPUT.tab
java -jar $MORFOLOGIK fsa_build -f cfsa2 -i $TMP_OUTPUT.tab -o $OUTPUT
echo "Output written to $OUTPUT"
#create synthesis dictionary
rm $TMP_OUTPUT.tab
gawk -f synteza.awk $TMP_OUTPUT > $TMP_OUTPUT.revtab
java -jar $MORFOLOGIK tab2morph -nw -i $TMP_OUTPUT.revtab -o $TMP_OUTPUT.tab
#gawk -f morph_data.awk | sort -u | fsa_ubuild -O -o $OUTPUT_SYNTH
java -jar $MORFOLOGIK fsa_build -f cfsa2 -i $TMP_OUTPUT.tab -o $OUTPUT_SYNTH
gawk -f tags.awk $TMP_OUTPUT |sort -u >english_tags.txt
echo "Output written to $OUTPUT_SYNTH"
|
#include "libsysfs.h"
#include "sysfs.h"
/**
* <API key>: closes a single class device.
* @dev: class device to close.
*/
void <API key>(struct sysfs_class_device *dev)
{
if (dev) {
if (dev->parent)
<API key>(dev->parent);
if (dev->sysdevice)
sysfs_close_device(dev->sysdevice);
if (dev->attrlist)
dlist_destroy(dev->attrlist);
free(dev);
}
}
static void sysfs_close_cls_dev(void *dev)
{
<API key>((struct sysfs_class_device *)dev);
}
/**
* sysfs_close_class: close the given class
* @cls: sysfs_class to close
*/
void sysfs_close_class(struct sysfs_class *cls)
{
if (cls) {
if (cls->devices)
dlist_destroy(cls->devices);
if (cls->attrlist)
dlist_destroy(cls->attrlist);
free(cls);
}
}
static int cdev_name_equal(void *a, void *b)
{
if (!a || !b)
return 0;
if (strncmp((char *)a, ((struct sysfs_class_device *)b)->name,
strlen((char *)a)) == 0)
return 1;
return 0;
}
static struct sysfs_class *alloc_class(void)
{
return (struct sysfs_class *) calloc(1, sizeof(struct sysfs_class));
}
/**
* alloc_class_device: mallocs and initializes new class device struct.
* returns sysfs_class_device or NULL.
*/
static struct sysfs_class_device *alloc_class_device(void)
{
struct sysfs_class_device *dev;
dev = calloc(1, sizeof(struct sysfs_class_device));
return dev;
}
/**
* <API key>: Grabs classname from path
* @cdev: class device to set
* Returns nothing
*/
static void <API key>(struct sysfs_class_device *cdev)
{
char *c, *e, name[SYSFS_NAME_LEN];
int count = 0;
/*
* Newer driver core changes have a class:class_device representation.
* Check if this cdev belongs to the newer style subsystem and
* set the classname appropriately.
*/
memset(name, 0, SYSFS_NAME_LEN);
safestrcpy(name, cdev->name);
c = strchr(name, ':');
if (c) {
safestrcpy(cdev->name, c+1);
*c = '\0';
safestrcpy(cdev->classname, name);
return;
}
c = strstr(cdev->path, SYSFS_CLASS_NAME);
if (c == NULL)
c = strstr(cdev->path, SYSFS_BLOCK_NAME);
else
c = strstr(c, "/");
if (c == NULL)
safestrcpy(cdev->classname, SYSFS_UNKNOWN);
else {
if (*c == '/')
c++;
e = c;
while (e != NULL && *e != '/' && *e != '\0') {
e++;
count++;
}
strncpy(cdev->classname, c, count);
}
}
/**
* <API key>: Opens and populates class device
* @path: path to class device.
* returns struct sysfs_class_device with success and NULL with error.
*/
struct sysfs_class_device *<API key>(const char *path)
{
struct sysfs_class_device *cdev;
char temp_path[SYSFS_PATH_MAX];
if (!path) {
errno = EINVAL;
return NULL;
}
/*
* Post linux-2.6.14 driver model supports nested classes with
* links to the nested hierarchy at /sys/class/xxx/. Check for
* a link to the actual class device if a directory isn't found
*/
if (sysfs_path_is_dir(path)) {
dprintf("%s: Directory not found, checking for a link\n", path);
if (!sysfs_path_is_link(path)) {
if (sysfs_get_link(path, temp_path, SYSFS_PATH_MAX)) {
dprintf("Error retrieving link at %s\n", path);
return NULL;
}
} else {
dprintf("%s is not a valid class device path\n", path);
return NULL;
}
} else
safestrcpy(temp_path, path);
cdev = alloc_class_device();
if (!cdev) {
dprintf("calloc failed\n");
return NULL;
}
if (<API key>(temp_path, cdev->name, SYSFS_NAME_LEN)) {
errno = EINVAL;
dprintf("Error getting class device name\n");
<API key>(cdev);
return NULL;
}
safestrcpy(cdev->path, temp_path);
if (<API key>(cdev->path)) {
dprintf("Invalid path to class device %s\n", cdev->path);
<API key>(cdev);
return NULL;
}
<API key>(cdev);
return cdev;
}
/**
* <API key>: Retrieves the parent of a class device.
* eg., when working with hda1, this function can be used to retrieve the
* sysfs_class_device for hda
*
* @clsdev: class device whose parent details are required.
* Returns sysfs_class_device of the parent on success, NULL on failure
*/
struct sysfs_class_device *<API key>
(struct sysfs_class_device *clsdev)
{
char abs_path[SYSFS_PATH_MAX], tmp_path[SYSFS_PATH_MAX];
char *c;
if (!clsdev) {
errno = EINVAL;
return NULL;
}
if (clsdev->parent)
return (clsdev->parent);
memset(abs_path, 0, SYSFS_PATH_MAX);
memset(tmp_path, 0, SYSFS_PATH_MAX);
safestrcpy(tmp_path, clsdev->path);
c = strstr(tmp_path, clsdev->classname);
c = strchr(c, '/');
*c = '\0';
safestrcpy(abs_path, clsdev->path);
c = strrchr(abs_path, '/');
*c = '\0';
if ((strncmp(tmp_path, abs_path, strlen(abs_path))) == 0) {
dprintf("Class device %s doesn't have a parent\n",
clsdev->name);
return NULL;
}
clsdev->parent = <API key>(abs_path);
return clsdev->parent;
}
/**
* get_classdev_path: given the class and a device in the class, return the
* absolute path to the device
* @classname: name of the class
* @clsdev: the class device
* @path: buffer to return path
* @psize: size of "path"
* Returns 0 on SUCCESS or -1 on error
*/
static int get_classdev_path(const char *classname, const char *clsdev,
char *path, size_t len)
{
char *c;
if (!classname || !clsdev || !path) {
errno = EINVAL;
return -1;
}
if (sysfs_get_mnt_path(path, len) != 0) {
dprintf("Error getting sysfs mount path\n");
return -1;
}
safestrcatmax(path, "/", len);
if (strncmp(classname, SYSFS_BLOCK_NAME,
sizeof(SYSFS_BLOCK_NAME)) == 0) {
safestrcatmax(path, SYSFS_BLOCK_NAME, len);
if (!sysfs_path_is_dir(path))
goto done;
c = strrchr(path, '/');
*(c+1) = '\0';
}
safestrcatmax(path, SYSFS_CLASS_NAME, len);
safestrcatmax(path, "/", len);
safestrcatmax(path, classname, len);
done:
safestrcatmax(path, "/", len);
safestrcatmax(path, clsdev, len);
return 0;
}
/**
* <API key>: Locates a specific class_device and returns it.
* Class_device must be closed using <API key>
* @classname: Class to search
* @name: name of the class_device
*
* NOTE:
* Call <API key>() to close the class device
*/
struct sysfs_class_device *<API key>
(const char *classname, const char *name)
{
char devpath[SYSFS_PATH_MAX];
struct sysfs_class_device *cdev;
if (!classname || !name) {
errno = EINVAL;
return NULL;
}
memset(devpath, 0, SYSFS_PATH_MAX);
if ((get_classdev_path(classname, name, devpath,
SYSFS_PATH_MAX)) != 0) {
dprintf("Error getting to device %s on class %s\n",
name, classname);
return NULL;
}
cdev = <API key>(devpath);
if (!cdev) {
dprintf("Error getting class device %s from class %s\n",
name, classname);
return NULL;
}
return cdev;
}
/**
* <API key>: searches class device's attributes by name
* @clsdev: class device to look through
* @name: attribute name to get
* returns sysfs_attribute reference with success or NULL with error
*/
struct sysfs_attribute *<API key>
(struct sysfs_class_device *clsdev, const char *name)
{
if (!clsdev || !name) {
errno = EINVAL;
return NULL;
}
return get_attribute(clsdev, (char *)name);
}
/**
* <API key>: gets list of classdev attributes
* @clsdev: class device whose attributes list is needed
* returns dlist of attributes on success or NULL on error
*/
struct dlist *<API key>(struct sysfs_class_device *clsdev)
{
if (!clsdev) {
errno = EINVAL;
return NULL;
}
return <API key>(clsdev);
}
/**
* <API key>: gets the sysfs_device associated with the
* given sysfs_class_device
* @clsdev: class device whose associated sysfs_device is needed
* returns struct sysfs_device * on success or NULL on error
*/
struct sysfs_device *<API key>
(struct sysfs_class_device *clsdev)
{
char linkpath[SYSFS_PATH_MAX], devpath[SYSFS_PATH_MAX];
if (!clsdev) {
errno = EINVAL;
return NULL;
}
if (clsdev->sysdevice)
return clsdev->sysdevice;
memset(linkpath, 0, SYSFS_PATH_MAX);
safestrcpy(linkpath, clsdev->path);
safestrcat(linkpath, "/device");
if (!sysfs_path_is_link(linkpath)) {
memset(devpath, 0, SYSFS_PATH_MAX);
if (!sysfs_get_link(linkpath, devpath, SYSFS_PATH_MAX))
clsdev->sysdevice = <API key>(devpath);
}
return clsdev->sysdevice;
}
/**
* sysfs_open_class: opens specific class and all its devices on system
* returns sysfs_class structure with success or NULL with error.
*/
struct sysfs_class *sysfs_open_class(const char *name)
{
struct sysfs_class *cls = NULL;
char *c, classpath[SYSFS_PATH_MAX];
if (!name) {
errno = EINVAL;
return NULL;
}
memset(classpath, 0, SYSFS_PATH_MAX);
if ((sysfs_get_mnt_path(classpath, SYSFS_PATH_MAX)) != 0) {
dprintf("Sysfs not supported on this system\n");
return NULL;
}
safestrcat(classpath, "/");
if (strcmp(name, SYSFS_BLOCK_NAME) == 0) {
safestrcat(classpath, SYSFS_BLOCK_NAME);
if (!sysfs_path_is_dir(classpath))
goto done;
c = strrchr(classpath, '/');
*(c+1) = '\0';
}
safestrcat(classpath, SYSFS_CLASS_NAME);
safestrcat(classpath, "/");
safestrcat(classpath, name);
done:
if (sysfs_path_is_dir(classpath)) {
dprintf("Class %s not found on the system\n", name);
return NULL;
}
cls = alloc_class();
if (cls == NULL) {
dprintf("calloc failed\n");
return NULL;
}
safestrcpy(cls->name, name);
safestrcpy(cls->path, classpath);
if ((<API key>(cls->path)) != 0) {
dprintf("Invalid path to class device %s\n", cls->path);
sysfs_close_class(cls);
return NULL;
}
return cls;
}
/**
* <API key>: get specific class device using the device's id
* @cls: sysfs_class to find the device on
* @name: name of the class device to look for
*
* Returns sysfs_class_device * on success and NULL on failure
*/
struct sysfs_class_device *<API key>(struct sysfs_class *cls,
const char *name)
{
char path[SYSFS_PATH_MAX];
struct sysfs_class_device *cdev = NULL;
if (!cls || !name) {
errno = EINVAL;
return NULL;
}
if (cls->devices) {
cdev = (struct sysfs_class_device *)dlist_find_custom
(cls->devices, (void *)name, cdev_name_equal);
if (cdev)
return cdev;
}
safestrcpy(path, cls->path);
safestrcat(path, "/");
safestrcat(path, name);
cdev = <API key>(path);
if (!cdev) {
dprintf("Error opening class device at %s\n", path);
return NULL;
}
if (!cls->devices)
cls->devices = <API key>
(sizeof(struct sysfs_class_device),
sysfs_close_cls_dev);
<API key>(cls->devices, cdev, sort_list);
return cdev;
}
/**
* Add class devices to list
*/
static void <API key>(struct sysfs_class *cls, struct dlist *list)
{
char path[SYSFS_PATH_MAX], *cdev_name;
struct sysfs_class_device *cdev = NULL;
if (cls == NULL || list == NULL)
return;
dlist_for_each_data(list, cdev_name, char) {
if (cls->devices) {
cdev = (struct sysfs_class_device *)
dlist_find_custom(cls->devices,
(void *)cdev_name, cdev_name_equal);
if (cdev)
continue;
}
safestrcpy(path, cls->path);
safestrcat(path, "/");
safestrcat(path, cdev_name);
cdev = <API key>(path);
if (cdev) {
if (!cls->devices)
cls->devices = <API key>
(sizeof(struct sysfs_class_device),
sysfs_close_cls_dev);
<API key>(cls->devices, cdev,
sort_list);
}
}
}
/**
* <API key>: get all class devices in the given class
* @cls: sysfs_class whose devices list is needed
*
* Returns a dlist of sysfs_class_device * on success and NULL on failure
*/
struct dlist *<API key>(struct sysfs_class *cls)
{
char path[SYSFS_PATH_MAX];
struct dlist *dirlist, *linklist;
if (!cls) {
errno = EINVAL;
return NULL;
}
/*
* Post linux-2.6.14, we have nested classes and links under
* /sys/class/xxx/. are also valid class devices
*/
safestrcpy(path, cls->path);
dirlist = read_dir_subdirs(path);
if (dirlist) {
<API key>(cls, dirlist);
sysfs_close_list(dirlist);
}
linklist = read_dir_links(path);
if (linklist) {
<API key>(cls, linklist);
sysfs_close_list(linklist);
}
return cls->devices;
}
|
// Unit tests for <API key>.
// Authors:
// Sebastien Pouliot <sebastien@ximian.com>
// 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,
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
// included in all copies or substantial portions of the Software.
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// 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.
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using Mono.Cecil;
using Gendarme.Framework;
using Gendarme.Framework.Rocks;
using Gendarme.Rules.Correctness;
using NUnit.Framework;
using Test.Rules.Definitions;
using Test.Rules.Fixtures;
namespace Tests.Rules.Correctness {
[TestFixture]
public class <API key> : <API key><<API key>> {
public void UnusedInstance (object o)
{
}
static public void UnusedStatic (object o)
{
}
public int ValueTypeInstance (int i)
{
return i.GetHashCode ();
}
static public int ValueTypeStatic (int i)
{
return i.GetHashCode ();
}
public int BadInstance (object o)
{
return o.GetHashCode ();
}
static public int BadStatic (object o)
{
return o.GetHashCode ();
}
[Test]
public void NoCheck ()
{
// parameter is unused so no need to check null
AssertRuleSuccess<<API key>> ("UnusedInstance");
AssertRuleSuccess<<API key>> ("UnusedStatic");
// parameter is used but is a value type, so no need to check null
AssertRuleSuccess<<API key>> ("ValueTypeInstance");
AssertRuleSuccess<<API key>> ("ValueTypeStatic");
// parameter is used, not a value type, but has no null check
AssertRuleFailure<<API key>> ("BadInstance", 1);
AssertRuleFailure<<API key>> ("BadStatic", 1);
}
// only check nullity, nothing else (no deref)
public void NotNullInstance (object o)
{
if (o == null)
throw new <API key> ("o");
}
static public void NotNullStatic (object o)
{
if (o == null)
throw new <API key> ("o");
}
[Test]
public void OnlyCheck ()
{
// parameter is only checked, never dereferenced
AssertRuleSuccess<<API key>> ("NotNullInstance");
AssertRuleSuccess<<API key>> ("NotNullStatic");
}
public void <API key> (object o)
{
if (null == o)
throw new <API key> ("o");
}
static public void <API key> (object o)
{
if (null == o)
throw new <API key> ("o");
}
[Test]
public void OnlyCheckInverted ()
{
// parameter is only checked, never dereferenced
AssertRuleSuccess<<API key>> ("<API key>");
AssertRuleSuccess<<API key>> ("<API key>");
}
public int GoodThrowInstance (object o)
{
if (o == null)
throw new <API key> ("o");
return o.GetHashCode ();
}
static public int GoodThrowStatic (object o)
{
if (o == null)
throw new <API key> ("o");
return o.GetHashCode ();
}
public int GoodAvoidInstance (object o)
{
return (o == null) ? 0 : o.GetHashCode ();
}
static public int GoodAvoidStatic (object o)
{
return (o == null) ? 0 : o.GetHashCode ();
}
[Test]
public void AllCheck ()
{
// a null check is done and throws
AssertRuleSuccess<<API key>> ("GoodThrowInstance");
AssertRuleSuccess<<API key>> ("GoodThrowStatic");
// a null check is done and avoid the dereference
AssertRuleSuccess<<API key>> ("GoodAvoidInstance");
AssertRuleSuccess<<API key>> ("GoodAvoidStatic");
}
public int <API key> (object o)
{
if (null == o)
throw new <API key> ("o");
return o.GetHashCode ();
}
static public int <API key> (object o)
{
if (null == o)
throw new <API key> ("o");
return o.GetHashCode ();
}
public int <API key> (object o)
{
return (null == o) ? 0 : o.GetHashCode ();
}
static public int <API key> (object o)
{
return (null == o) ? 0 : o.GetHashCode ();
}
[Test]
public void AllInvertedCheck ()
{
// a null check is done and throws
AssertRuleSuccess<<API key>> ("<API key>");
AssertRuleSuccess<<API key>> ("<API key>");
// a null check is done and avoid the dereference
AssertRuleSuccess<<API key>> ("<API key>");
AssertRuleSuccess<<API key>> ("<API key>");
}
public int BadAvoidInstance (object o)
{
return (o != null) ? 0 : o.GetHashCode ();
}
[Test]
[Ignore ("Remainder: By design this rule reports *lack* if null checks not [in]valid null checks")]
public void BadCheck ()
{
// a null check is done but does not prevent the dereference
AssertRuleSuccess<<API key>> ("BadAvoidInstance");
}
// ignore ? always or only if NotNull is public too ?
public int IgnoreInstanceCheck (object o)
{
NotNullInstance (o);
return o.GetHashCode ();
}
static public int IgnoreStaticCheck (object o)
{
NotNullStatic (o);
return o.GetHashCode ();
}
[Test]
public void <API key> ()
{
// since parameters is used in a method call before being dereferenced
// we assume that:
// (a) the method called does the null check - and we'll even check this if the method is visible
// (b) it's a method specific for doing the null check test
// and we wont report this as a defect (too many false positives)
AssertRuleSuccess<<API key>> ("IgnoreInstanceCheck");
AssertRuleSuccess<<API key>> ("IgnoreStaticCheck");
}
public int CheckThruLocal (object o)
{
// null check using local
object local = o;
if (local == null)
throw new <API key> ("o");
// dereference argument
return o.GetHashCode ();
}
// 'dtk' as an enum and i as a valuetype don't need to be checked
public int <API key> (DateTimeKind dtk, int i, string s, object o)
{
if (o == null)
throw new <API key> ("o");
// 's' is used without a null check
if (i < s.Length)
return dtk.GetHashCode ();
else
return o.GetHashCode ();
}
[Test]
public void MissingCheck ()
{
// parameter is checked indirectly but dereferenced directly
AssertRuleFailure<<API key>> ("CheckThruLocal", 1);
AssertRuleFailure<<API key>> ("<API key>", 1);
}
private object obj;
private int code;
public object ObjectGood {
get { return obj; }
set {
obj = value;
// value is checked against null before being used
code = (value == null) ? 0 : value.GetHashCode ();
}
}
public object ObjectGoodInverted {
get { return obj; }
set {
obj = value;
// value is checked against null before being used
code = (null == value) ? 0 : value.GetHashCode ();
}
}
public object ObjectBad {
get { return obj; }
set {
obj = value;
// no null check *and* value is dereferenced inside the method
code = value.GetHashCode ();
}
}
public int HashCode {
get { return obj == null ? code : obj.GetHashCode (); }
set {
// value type
code = value.GetHashCode ();
obj = null;
}
}
[Test]
public void InstanceProperties ()
{
// getter does not apply because it has no parameter
<API key><<API key>> ("get_ObjectGood");
AssertRuleSuccess<<API key>> ("set_ObjectGood");
AssertRuleSuccess<<API key>> ("<API key>");
// getter does not apply because it has no parameter
<API key><<API key>> ("get_ObjectBad");
AssertRuleFailure<<API key>> ("set_ObjectBad", 1);
// getter does not apply because it has no parameter
<API key><<API key>> ("get_HashCode");
AssertRuleSuccess<<API key>> ("set_HashCode");
}
static object obj_static;
static int code_static;
static public object StaticObjectGood {
get { return obj_static; }
set {
obj_static = value;
// value is checked against null before being used
code_static = (value == null) ? 0 : value.GetHashCode ();
}
}
static public object <API key> {
get { return obj_static; }
set {
obj_static = value;
// value is checked against null before being used
code_static = (null == value) ? 0 : value.GetHashCode ();
}
}
static public object StaticObjectBad {
get { return obj_static; }
set {
obj_static = value;
// no null check *and* value is dereferenced inside the method
code_static = value.GetHashCode ();
}
}
static public int StaticHashCode {
get { return obj_static == null ? code_static : obj_static.GetHashCode (); }
set {
// value type
code_static = value.GetHashCode ();
obj_static = null;
}
}
[Test]
public void StaticProperties ()
{
// getter does not apply because it has no parameter
<API key><<API key>> ("<API key>");
AssertRuleSuccess<<API key>> ("<API key>");
AssertRuleSuccess<<API key>> ("<API key>");
// getter does not apply because it has no parameter
<API key><<API key>> ("get_StaticObjectBad");
AssertRuleFailure<<API key>> ("set_StaticObjectBad", 1);
// getter does not apply because it has no parameter
<API key><<API key>> ("get_StaticHashCode");
AssertRuleSuccess<<API key>> ("set_StaticHashCode");
}
public class ClassContainer : IEquatable<ClassContainer> {
public ClassContainer Container;
public int ValueType;
public ClassContainer (ClassContainer c)
{
// no check if 'c' is null
Container = c.Container;
ValueType = c.ValueType;
}
public bool Equals (ClassContainer other)
{
if (other == null)
return false;
return (Container.Equals (other.Container) && (ValueType == other.ValueType));
}
}
public struct StructContainer {
// a struct cannot contain itself
public object Container;
public int ValueType;
public StructContainer (StructContainer c)
{
// no need to check for 'c' since it can't be null
Container = c.Container;
ValueType = c.ValueType;
}
public override bool Equals (object obj)
{
// problem if cast is invalid
StructContainer other = (StructContainer) obj;
return (Container.Equals (other.Container) && (ValueType == other.ValueType));
}
public override int GetHashCode ()
{
return base.GetHashCode ();
}
}
[Test]
public void Fields ()
{
AssertRuleFailure<ClassContainer> (".ctor", 1);
AssertRuleSuccess<ClassContainer> ("Equals");
AssertRuleSuccess<StructContainer> (".ctor");
AssertRuleSuccess<StructContainer> ("Equals");
}
// constrained to struct == valuetype
public class Bitmask<T> where T : struct, IConvertible {
ulong mask;
// missing null check, since it's a Bitmap<T>, not T
public bool IsSubsetOf (Bitmask<T> bitmask)
{
return ((mask & bitmask.mask) == mask);
}
// no need for null check (T is constrained to ValueType)
public void SetUp (T bit)
{
Console.WriteLine (bit.ToInt32 (null));
}
}
[Test]
public void Generics ()
{
AssertRuleFailure<Bitmask<int>> ("IsSubsetOf", 1);
AssertRuleSuccess<Bitmask<int>> ("SetUp");
}
public int <API key> (object[] array)
{
return array [0].GetHashCode ();
}
public int <API key> (object [] array)
{
if (array == null)
throw new <API key> ("array");
return array [0].GetHashCode ();
}
public int <API key> (object [] array)
{
if (null == array)
throw new <API key> ("array");
return array [0].GetHashCode ();
}
static public int <API key> (int [] array)
{
return array [0] + array [1];
}
static public int <API key> (int [] array)
{
if (array == null)
throw new <API key> ("array");
return array [0] + array [1];
}
static public int <API key> (int [] array)
{
if (null == array)
throw new <API key> ("array");
return array [0] + array [1];
}
[Test]
public void Array ()
{
AssertRuleSuccess<<API key>> ("<API key>");
AssertRuleSuccess<<API key>> ("<API key>");
AssertRuleFailure<<API key>> ("<API key>", 1);
AssertRuleSuccess<<API key>> ("<API key>");
AssertRuleSuccess<<API key>> ("<API key>");
AssertRuleFailure<<API key>> ("<API key>", 1);
}
public int InstanceGoodRef (ref object obj)
{
if (obj == null)
throw new <API key> ("obj");
return obj.GetHashCode ();
}
public int <API key> (ref object obj)
{
if (null == obj)
throw new <API key> ("obj");
return obj.GetHashCode ();
}
public int InstanceBadRef (ref object obj)
{
return obj.GetHashCode ();
}
static public int StaticGoodRef (ref object obj)
{
if (obj == null)
throw new <API key> ("obj");
return obj.GetHashCode ();
}
static public int <API key> (ref object obj)
{
if (null == obj)
throw new <API key> ("obj");
return obj.GetHashCode ();
}
static public int StaticBadRef (ref object obj)
{
return obj.GetHashCode ();
}
[Test]
public void Ref ()
{
AssertRuleSuccess<<API key>> ("InstanceGoodRef");
AssertRuleSuccess<<API key>> ("<API key>");
AssertRuleFailure<<API key>> ("InstanceBadRef", 1);
AssertRuleSuccess<<API key>> ("StaticGoodRef");
AssertRuleSuccess<<API key>> ("<API key>");
AssertRuleFailure<<API key>> ("StaticBadRef", 1);
}
public void LateCheck (string s)
{
Console.WriteLine (s.Length);
if (s != null)
Console.WriteLine (s.GetHashCode ());
}
public void LateCheckInverted (string s)
{
Console.WriteLine (s.Length);
if (null != s)
Console.WriteLine (s.GetHashCode ());
}
[Test]
public void Late ()
{
AssertRuleFailure<<API key>> ("LateCheck", 1);
AssertRuleFailure<<API key>> ("LateCheckInverted", 1);
}
// adapted from GraphicPathIterator
public int Enumerate (ref double [] points, ref byte [] types)
{
int resultCount = 0;
int count = points.Length;
if (count != types.Length)
throw new ArgumentException ("Invalid arguments passed. Both arrays should have the same length.");
return resultCount;
}
[Test]
public void Reference ()
{
AssertRuleFailure<<API key>> ("Enumerate", 2);
}
static public void GetOut (out string s)
{
s = "Mono";
}
public void ShowOut (out string s)
{
GetOut (out s);
Console.WriteLine (s.Length);
}
public void ArrayOut (out string[] array, int length)
{
array = new string [length];
for (int i = 0; i < length; i++)
GetOut (out array [i]);
Console.WriteLine (array.Length);
}
[Test]
public void OutParameter ()
{
AssertRuleSuccess<<API key>> ("GetOut");
AssertRuleSuccess<<API key>> ("ShowOut");
AssertRuleSuccess<<API key>> ("ArrayOut");
}
public class NonGeneric567817 {
private IList <API key>;
private int ctx;
public virtual void Add (string item)
{
if (item == null) {
<API key>.Add (null);
return;
} else {
if (ctx != item.Length) { throw new Exception (); }
<API key>.Add (item);
}
}
}
public interface Stub {
object Context { get; }
}
public class Generic567817<TInterface, TImpl>
where TInterface : Stub
where TImpl : class, TInterface {
List<TImpl> <API key>;
object ctx;
public virtual void Add (TInterface item)
{
if (item == null) {
<API key>.Add (null);
return;
} else {
if (ctx != item.Context) { throw new Exception (); }
<API key>.Add ((TImpl) item);
}
}
}
[Test]
public void Bug567817 ()
{
AssertRuleSuccess<NonGeneric567817> ("Add");
AssertRuleSuccess<Generic567817<Stub, Stub>> ("Add");
}
public class GenericClass {
public bool Test1<T> (T fs) where T : Stream
{
return fs.CanRead;
}
public bool Test2<T> (T fs) where T : Stream
{
if (fs == null)
return false;
return fs.CanRead;
}
public bool Test2Equals<T> (T fs) where T : Stream
{
if (Equals (fs, null))
return false;
return fs.CanRead;
}
public bool Test2EqualsDefault<T> (T fs) where T : Stream
{
if (Equals (fs, default (Stream)))
return false;
return fs.CanRead;
}
public bool Test3<T> (T fs) where T : Stream
{
if (fs != null)
return fs.CanRead;
return false;
}
public bool Test3Equals<T> (T fs) where T : Stream
{
if (!Equals (fs, null))
return fs.CanRead;
return false;
}
public bool Test3EqualsDefault<T> (T fs) where T : Stream
{
if (!Equals (fs, default (Stream)))
return fs.CanRead;
return false;
}
}
[Test]
public void MoreGenericCases ()
{
AssertRuleFailure<GenericClass> ("Test1", 1);
AssertRuleSuccess<GenericClass> ("Test2");
AssertRuleSuccess<GenericClass> ("Test2Equals");
AssertRuleSuccess<GenericClass> ("Test2EqualsDefault");
AssertRuleSuccess<GenericClass> ("Test3");
AssertRuleSuccess<GenericClass> ("Test3Equals");
AssertRuleSuccess<GenericClass> ("Test3EqualsDefault");
}
// test case provided by Iristyle, extracted from
public void <API key> (Uri url)
{
if (null == url)
throw new <API key> ("url");
string requestDetails = null != url && null != url.AbsoluteUri ?
String.Format ("URL: {0}{1}", url.AbsoluteUri, Environment.NewLine) : String.Empty;
}
[Test]
public void StaticWithParameter ()
{
AssertRuleSuccess<<API key>> ("<API key>");
}
// test case from Iristyle
public void <API key> (ref object test)
{
//uncommenting this line makes the test succeed
//if (null == test) { throw new <API key>("test"); }
//follow this general pattern because of FxCop false positive on CA1062
object testCopy = test;
if (null == testCopy)
throw new <API key> ("test");
test = testCopy;
}
[Test]
[Ignore ("by design the rule only checks parameter arguments, not variables, fields, return value...")]
public void <API key> ()
{
AssertRuleSuccess<<API key>> ("<API key>");
}
// test case provided by Iristyle - bnc665193
public void ChecksIsType (Exception ex)
{
//only non-nulls may pass
if (ex is ArgumentException) {
ex.ToString ();
}
}
[Test]
public void AllowsIsCheck ()
{
AssertRuleSuccess<<API key>> ("ChecksIsType");
}
}
}
|
var GiftMessage = Class.create();
GiftMessage.prototype = {
uniqueId: 0,
initialize: function (buttonId) {
GiftMessageStack.addObject(this);
this.buttonId = buttonId;
this.initListeners();
},
editGiftMessage: function (evt) {
var popUpUrl = this.url + '?uniqueId=' + this.uniqueId;
this.popUp = window.open(popUpUrl, 'giftMessage', 'width=350,height=400,resizable=yes,scrollbars=yes');
this.popUp.focus();
Event.stop(evt);
},
initListeners: function () {
var items = $(this.buttonId).<API key>('listen-for-click');
items.each(function(item) {
Event.observe(item, 'click', this.editGiftMessage.bindAsEventListener(this));
item.controller = this;
}.bind(this));
},
reloadContainer: function (url) {
new Ajax.Updater(this.buttonId, url, {onComplete:this.initListeners.bind(this)});
},
initWindow: function (windowObject) {
this.windowObj = windowObject;
}
};
var GiftMessageStack = {
_stack: [],
_nextUniqueId: 0,
addObject: function(giftMessageObject) {
giftMessageObject.uniqueId = this.uniqueId();
this._stack.push(giftMessageObject);
return this;
},
uniqueId: function() {
return 'objectStack' + (this._nextUniqueId++);
},
getObjectById: function(id) {
var giftMessageObject = false;
this._stack.each(function(item){
if(item.uniqueId == id) {
giftMessageObject = item;
}
});
return giftMessageObject;
}
};
var GiftMessageWindow = Class.create();
GiftMessageWindow.prototype = {
initialize: function(uniqueId, formId, removeUrl) {
this.uniqueId = uniqueId;
this.removeUrl = removeUrl;
if(window.opener) {
this.parentObject = window.opener.GiftMessageStack.getObjectById(this.uniqueId);
this.parentObject.initWindow(this);
}
if(formId) {
this.form = new VarienForm(formId, true);
this.formElement = $(formId);
this.initListeners();
}
},
initListeners: function() {
removeButtons = this.formElement.<API key>('listen-remove');
removeButtons.each(function(item){
Event.observe(item, 'click', this.remove.bindAsEventListener(this));
}.bind(this));
cancelButtons = this.formElement.<API key>('listen-cancel');
cancelButtons.each(function(item){
Event.observe(item, 'click', this.cancel.bindAsEventListener(this));
}.bind(this));
},
cancel: function(evt) {
Event.stop(evt);
window.opener.focus();
window.close();
},
close: function() {
window.opener.focus();
window.close();
},
remove: function(evt) {
Event.stop(evt);
if(this.confirmMessage && !window.confirm(this.confirmMessage)) {
return;
}
window.location.href = this.removeUrl;
},
updateParent: function (url, buttonUrl) {
if(this.parentObject) {
this.parentObject.url = url
this.parentObject.reloadContainer(buttonUrl);
}
setTimeout(function(){
window.opener.focus();
window.close();
}, 3000);
}
};
|
<?php
namespace Drupal\fontyourface\Plugin\views\filter;
use Drupal\views\Plugin\views\filter\StringFilter;
use Drupal\Core\Form\FormStateInterface;
/**
* Filter handler which allows to search based on font weight.
*
* @ingroup <API key>
*
* @ViewsFilter("<API key>")
*/
class <API key> extends StringFilter {
/**
* Exposed filter options.
*
* @var bool
*/
protected $alwaysMultiple = TRUE;
/**
* Provide simple equality operator.
*/
public function operators() {
return [
'=' => [
'title' => $this->t('Is equal to'),
'short' => $this->t('='),
'method' => 'opEqual',
'values' => 1,
],
];
}
/**
* {@inheritdoc}
*/
protected function valueForm(&$form, FormStateInterface $form_state) {
$options = [
'All' => '- Any -',
'100' => $this->t('100'),
'200' => $this->t('200'),
'300' => $this->t('300'),
'400' => $this->t('400 (Normal)'),
'500' => $this->t('500'),
'600' => $this->t('600'),
'700' => $this->t('700 (Bold)'),
'800' => $this->t('800'),
'900' => $this->t('900'),
];
$form['value'] = [
'#type' => 'select',
'#title' => $this->t('Font Weight'),
'#options' => $options,
'#default_value' => $this->value,
];
if ($exposed = $form_state->get('exposed')) {
$identifier = $this->options['expose']['identifier'];
$user_input = $form_state->getUserInput();
if (!isset($user_input[$identifier])) {
$user_input[$identifier] = $this->value;
$form_state->setUserInput($user_input);
}
}
}
}
|
#ifndef <API key>
#define <API key>
class KexiProject;
namespace KexiDB
{
class FieldList;
class Cursor;
}
namespace KexiPart
{
class DataSourcePrivate;
class Item;
class Part;
/**
* this class provides a datasource framework for e.g. tables and queries
* using this framework one can query for
* - a list of datasources
* - the fileds in datasources
* - variables (e.g. query variables)
*/
class KEXICORE_EXPORT DataSource
{
public:
DataSource(Part *part);
virtual ~DataSource();
/**
* @returns a list of fileds for the datasource
* @arg id is the document id for the source
*/
virtual KexiDB::FieldList *fields(KexiProject *project, const KexiPart::Item &i) = 0;
/**
* @returns the cursor
*/
virtual KexiDB::Cursor *cursor(KexiProject *project, const KexiPart::Item &i, bool buffer) = 0;
/**
* @returns the part providing this datasource
*/
Part *part() const;
private:
DataSourcePrivate * const d;
};
}
#endif
|
package org.opennms.netmgt.dao;
import java.util.List;
import org.hibernate.criterion.Criterion;
import org.opennms.netmgt.model.OnmsCategory;
/**
* <p>CategoryDao interface.</p>
*/
public interface CategoryDao extends OnmsDao<OnmsCategory, Integer> {
/**
* <p>findByName</p>
*
* @param name a {@link java.lang.String} object.
* @return a {@link org.opennms.netmgt.model.OnmsCategory} object.
*/
OnmsCategory findByName(String name);
/**
* <p>findByName</p>
*
* @param name a {@link java.lang.String} object.
* @param useCached a boolean.
* @return a {@link org.opennms.netmgt.model.OnmsCategory} object.
*/
OnmsCategory findByName(String name, boolean useCached);
/**
* <p>getAllCategoryNames</p>
*
* @return a {@link java.util.List} object.
*/
List<String> getAllCategoryNames();
/**
* <p><API key></p>
*
* @param categories an array of {@link java.lang.String} objects.
* @return a {@link java.util.List} object.
*/
List<Criterion> <API key>(String[]... categories);
/**
* <p><API key></p>
*
* @param groupName a {@link java.lang.String} object.
* @return a {@link java.util.List} object.
*/
List<OnmsCategory> <API key>(String groupName);
}
|
<?php
namespace SMW;
use SMWOutputs;
/**
* This special page (Special:UnusedProperties) for MediaWiki shows all unused
* properties.
*
* @ingroup SpecialPage
*/
class <API key> extends SpecialPage {
/**
* @see SpecialPage::__construct
* @codeCoverageIgnore
*/
public function __construct() {
parent::__construct( 'UnusedProperties' );
}
/**
* @see SpecialPage::execute
*/
public function execute( $param ) {
Profiler::In( __METHOD__ );
$out = $this->getOutput();
$out->setPageTitle( $this->msg( 'unusedproperties' )->text() );
$page = new <API key>( $this->getStore(), $this->getSettings() );
$page->setContext( $this->getContext() );
list( $limit, $offset ) = wfCheckLimits();
$page->doQuery( $offset, $limit );
// Ensure locally collected output data is pushed to the output!
SMWOutputs::commitToOutputPage( $out );
Profiler::Out( __METHOD__ );
}
}
|
<?php
session_start();
header("Pragma: public");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false);
if(!array_key_exists("la_logusr",$_SESSION))
{
print "<script language=JavaScript>";
print "close();";
print "opener.document.form1.submit();";
print "</script>";
}
ini_set('memory_limit','256M');
ini_set('max_execution_time','0');
function uf_insert_seguridad($as_titulo,$as_desnom,$as_periodo,$ai_tipo)
{
// Function: uf_insert_seguridad
// Access: private
// Creado Por: Ing. Yesenia Moreno
global $io_fun_nomina;
$ls_codnom=$_SESSION["la_nomina"]["codnom"];
$ls_descripcion="Generó el Reporte ".$as_titulo.". Para ".$as_desnom.". ".$as_periodo;
if($ai_tipo==1)
{
$lb_valido=$io_fun_nomina-><API key>("SNO","<API key>.php",$ls_descripcion,$ls_codnom);
}
else
{
$lb_valido=$io_fun_nomina-><API key>("SNO","<API key>.php",$ls_descripcion,$ls_codnom);
}
return $lb_valido;
}
function <API key>($as_titulo,$as_desnom,$as_periodo,&$io_pdf)
{
// Function: <API key>
// Access: private
// io_pdf // Instancia de objeto pdf
// Creado Por: Ing. Yesenia Moreno
$io_encabezado=$io_pdf->openObject();
$io_pdf->saveState();
$io_pdf->line(50,40,555,40);
$io_pdf->addJpegFromFile('../../shared/imagebank/'.$_SESSION["ls_logo"],50,720,$_SESSION["ls_width"],$_SESSION["ls_height"]); // Agregar Logo
$li_tm=$io_pdf->getTextWidth(11,$as_titulo);
$tm=306-($li_tm/2);
$io_pdf->addText($tm,730,11,$as_titulo);
$li_tm=$io_pdf->getTextWidth(11,$as_periodo);
$tm=306-($li_tm/2);
$io_pdf->addText($tm,720,11,$as_periodo);
$li_tm=$io_pdf->getTextWidth(10,$as_desnom);
$tm=306-($li_tm/2);
$io_pdf->addText($tm,710,10,$as_desnom);
$io_pdf->addText(512,750,8,date("d/m/Y")); // Agregar la Fecha
$io_pdf->addText(518,743,7,date("h:i a")); // Agregar la Hora
$io_pdf->restoreState();
$io_pdf->closeObject();
$io_pdf->addObject($io_encabezado,'all');
}// end function <API key>
function uf_print_cabecera($as_cedper,$as_apenomper,$as_descar,$as_desuniadm,$ad_fecingper,$as_codcueban,$ai_sueper,&$io_pdf)
{
// Function: uf_print_cabecera
// Access: private
// as_apenomper // apellidos y nombre del personal
// ad_fecingper // fecha de ingreso
// ai_sueper // Sueldo del Personal
// io_pdf // Instancia de objeto pdf
// Creado Por: Ing. Yesenia Moreno
$la_data=array(array('cedula'=>'<b>Cédula</b>','nombre'=>'<b>Nombre</b>','cargo'=>'<b>Cargo</b>','fecha'=>'<b>Fecha Ingreso</b>',
'sueldo'=>'<b>Sueldo</b>'));
$la_columnas=array('cedula'=>'',
'nombre'=>'',
'cargo'=>'',
'fecha'=>'',
'sueldo'=>'');
$la_config=array('showHeadings'=>0, // Mostrar encabezados
'fontSize' => 8,
'titleFontSize' => 10,
'showLines'=>0,
'shaded'=>0,
'shadeCol2'=>array(0.9,0.9,0.9), // Color de la sombra
'width'=>500, // Ancho de la tabla
'maxWidth'=>500,
'xOrientation'=>'center',
'cols'=>array('cedula'=>array('justification'=>'center','width'=>60),
'nombre'=>array('justification'=>'center','width'=>150),
'cargo'=>array('justification'=>'center','width'=>150),
'fecha'=>array('justification'=>'center','width'=>70),
'sueldo'=>array('justification'=>'center','width'=>70)));
$io_pdf->ezTable($la_data,$la_columnas,'',$la_config);
$la_data=array(array('cedula'=>$as_cedper,'nombre'=>$as_apenomper,'cargo'=>$as_descar,'fecha'=>$ad_fecingper,'sueldo'=>$ai_sueper));
$la_columnas=array('cedula'=>'',
'nombre'=>'',
'cargo'=>'',
'fecha'=>'',
'sueldo'=>'');
$la_config=array('showHeadings'=>0, // Mostrar encabezados
'fontSize' => 9,
'titleFontSize' => 10,
'showLines'=>0,
'shaded'=>0,
'shadeCol2'=>array(0.9,0.9,0.9), // Color de la sombra
'width'=>500, // Ancho de la tabla
'maxWidth'=>500,
'xOrientation'=>'center',
'cols'=>array('cedula'=>array('justification'=>'center','width'=>60),
'nombre'=>array('justification'=>'center','width'=>150),
'cargo'=>array('justification'=>'center','width'=>150),
'fecha'=>array('justification'=>'center','width'=>70),
'sueldo'=>array('justification'=>'center','width'=>70)));
$io_pdf->ezTable($la_data,$la_columnas,'',$la_config);
}// end function uf_print_cabecera
function uf_print_detalle($la_data,&$io_pdf)
{
// Function: uf_print_detalle
// Access: private
// io_pdf // Instancia de objeto pdf
// Creado Por: Ing. Yesenia Moreno
$io_pdf->ezSetDy(-2);
$la_columnas=array('codigo'=>'<b>Código</b>',
'nombre'=>'<b> Concepto</b>',
'asignacion'=>'<b>Asignación </b>',
'deduccion'=>'<b>Deducción </b>',
'aporte'=>'<b>Amortizado Prestamo </b>',
'neto'=>'<b>Neto </b>');
$la_config=array('showHeadings'=>1, // Mostrar encabezados
'fontSize' => 8,
'titleFontSize' => 12,
'showLines'=>0,
'shaded'=>0,
'width'=>500, // Ancho de la tabla
'maxWidth'=>500,
'xOrientation'=>'center',
'outerLineThickness'=>0.5,
'innerLineThickness' =>0.5,
'cols'=>array('codigo'=>array('justification'=>'center','width'=>70),
'nombre'=>array('justification'=>'left','width'=>110),
'asignacion'=>array('justification'=>'right','width'=>80),
'deduccion'=>array('justification'=>'right','width'=>80),
'aporte'=>array('justification'=>'right','width'=>80),
'neto'=>array('justification'=>'right','width'=>80)));
$io_pdf->ezTable($la_data,$la_columnas,'',$la_config);
}// end function uf_print_detalle
function <API key>($ai_totalasignacion,$ai_totaldeduccion,$ai_totalaporte,$ai_total_neto,&$io_pdf)
{
// Function: <API key>
// Access: private
// ai_totalaporte // Total aporte
// ai_total_neto // Total Neto
// io_pdf // Instancia de objeto pdf
// Creado Por: Ing. Yesenia Moreno
global $ls_bolivares;
$la_data=array(array('totales'=>'<b>Totales '.$ls_bolivares.'</b>','asignacion'=>$ai_totalasignacion,'deduccion'=>$ai_totaldeduccion,
'aporte'=>$ai_totalaporte,'neto'=>$ai_total_neto));
$la_columna=array('totales'=>'','asignacion'=>'','deduccion'=>'','aporte'=>'','neto'=>'');
$la_config=array('showHeadings'=>0, // Mostrar encabezados
'fontSize' => 8,
'titleFontSize' => 12,
'showLines'=>0,
'shaded'=>0,
'shadeCol'=>array((249/255),(249/255),(249/255)), // Color de la sombra
'shadeCol2'=>array((249/255),(249/255),(249/255)), // Color de la sombra
'outerLineThickness'=>0.5,
'innerLineThickness' =>0.5,
'width'=>500, // Ancho de la tabla
'maxWidth'=>500,
'xOrientation'=>'center',
'cols'=>array('totales'=>array('justification'=>'right','width'=>180),
'asignacion'=>array('justification'=>'right','width'=>80),
'deduccion'=>array('justification'=>'right','width'=>80),
'aporte'=>array('justification'=>'right','width'=>80),
'neto'=>array('justification'=>'right','width'=>80)));
$io_pdf->ezTable($la_data,$la_columna,'',$la_config);
$la_data=array(array('name'=>''));
$la_columna=array('name'=>'');
$la_config=array('showHeadings'=>0, // Mostrar encabezados
'showLines'=>0,
'shaded'=>0,
'width'=>500,
'xOrientation'=>'center');
$io_pdf->ezTable($la_data,$la_columna,'',$la_config);
}// end function <API key>
function uf_print_piepagina($ai_totasi,$ai_totded,$ai_totapo,$ai_totgeneral,&$io_pdf)
{
// Function: uf_print_piepagina
// Access: private
// Arguments: ai_totasi // Total de Asignaciones
// ai_totded // Total de Deducciones
// ai_totapo // Total de Aportes
// ai_totgeneral // Total de Neto a Pagar
// io_pdf // Instancia de objeto pdf
// Creado Por: Ing. Yesenia Moreno
global $ls_bolivares;
$la_data=array(array('name'=>''));
$la_columna=array('name'=>'');
$la_config=array('showHeadings'=>0, // Mostrar encabezados
'fontSize' => 10,
'showLines'=>0,
'shaded'=>0,
'xOrientation'=>'center',
'width'=>500);
$io_pdf->ezTable($la_data,$la_columna,'',$la_config);
$la_data=array(array('titulo'=>'<b>Total Nómina '.$ls_bolivares.': </b>','asignacion'=>$ai_totasi,
'deduccion'=>$ai_totded,'aporte'=>$ai_totapo,'neto'=>$ai_totgeneral));
$la_columna=array('titulo'=>'','asignacion'=>'','deduccion'=>'','aporte'=>'','neto'=>'');
$la_config=array('showHeadings'=>0, // Mostrar encabezados
'fontSize' => 8,
'titleFontSize' => 12,
'showLines'=>0,
'shaded'=>0,
'shadeCol'=>array((224/255),(224/255),(224/255)), // Color de la sombra
'shadeCol2'=>array((224/255),(224/255),(224/255)), // Color de la sombra
'outerLineThickness'=>0.5,
'innerLineThickness' =>0.5,
'width'=>500, // Ancho de la tabla
'maxWidth'=>500,
'xOrientation'=>'center',
'cols'=>array('titulo'=>array('justification'=>'right','width'=>180),
'asignacion'=>array('justification'=>'right','width'=>80),
'deduccion'=>array('justification'=>'right','width'=>80),
'aporte'=>array('justification'=>'right','width'=>80),
'neto'=>array('justification'=>'right','width'=>80)));
$io_pdf->ezTable($la_data,$la_columna,'',$la_config);
}
require_once("../../shared/ezpdf/class.ezpdf.php");
$ls_tiporeporte="0";
if($_SESSION["la_nomina"]["tiponomina"]=="NORMAL")
{
require_once("<API key>.php");
$io_report=new <API key>();
$li_tipo=1;
}
if($_SESSION["la_nomina"]["tiponomina"]=="HISTORICA")
{
require_once("<API key>.php");
$io_report=new <API key>();
$li_tipo=2;
}
$ls_bolivares ="Bs.";
require_once("../../shared/class_folder/class_funciones.php");
$io_funciones=new class_funciones();
require_once("../class_folder/<API key>.php");
$io_fun_nomina=new <API key>();
$ls_desnom=$_SESSION["la_nomina"]["desnom"];
$ls_peractnom=$_SESSION["la_nomina"]["peractnom"];
$ld_fecdesper=$io_funciones-><API key>($_SESSION["la_nomina"]["fecdesper"]);
$ld_fechasper=$io_funciones-><API key>($_SESSION["la_nomina"]["fechasper"]);
$ls_titulo="<b>Reporte General de Pago</b>";
$ls_periodo="<b>Período Nro ".$ls_peractnom.", ".$ld_fecdesper." - ".$ld_fechasper."</b>";
$ls_codperdes=$io_fun_nomina->uf_obtenervalor_get("codperdes","");
$ls_codperhas=$io_fun_nomina->uf_obtenervalor_get("codperhas","");
$ls_orden=$io_fun_nomina->uf_obtenervalor_get("orden","1");
$ls_conceptocero=$io_fun_nomina->uf_obtenervalor_get("conceptocero","");
$ls_tituloconcepto=$io_fun_nomina->uf_obtenervalor_get("tituloconcepto","");
$ls_conceptoreporte=$io_fun_nomina->uf_obtenervalor_get("conceptoreporte","");
$ls_conceptop2="";//$io_fun_nomina->uf_obtenervalor_get("conceptop2","");
$ls_codubifis=$io_fun_nomina->uf_obtenervalor_get("codubifis","");
$ls_codpai=$io_fun_nomina->uf_obtenervalor_get("codpai","");
$ls_codest=$io_fun_nomina->uf_obtenervalor_get("codest","");
$ls_codmun=$io_fun_nomina->uf_obtenervalor_get("codmun","");
$ls_codpar=$io_fun_nomina->uf_obtenervalor_get("codpar","");
$ls_subnomdes=$io_fun_nomina->uf_obtenervalor_get("subnomdes","");
$ls_subnomhas=$io_fun_nomina->uf_obtenervalor_get("subnomhas","");
$lb_valido=uf_insert_seguridad($ls_titulo,$ls_desnom,$ls_periodo,$li_tipo); // Seguridad de Reporte
if($lb_valido)
{
$lb_valido=$io_report-><API key>($ls_codperdes,$ls_codperhas,$ls_conceptocero,$ls_conceptoreporte,$ls_conceptop2,
$ls_codubifis,$ls_codpai,$ls_codest,$ls_codmun,$ls_codpar,$ls_subnomdes,$ls_subnomhas,$ls_orden); // Cargar el DS con los datos de la cabecera del reporte
}
$li_totrow=$io_report->rs_data->RecordCount();
if(($lb_valido==false) || ($li_totrow == 0) )
{
print("<script language=JavaScript>");
print(" alert('No hay nada que Reportar');");
print(" close();");
print("</script>");
}
else // Imprimimos el reporte
{
error_reporting(E_ALL);
set_time_limit(1800);
$io_pdf=new Cezpdf('LETTER','portrait'); // Instancia de la clase PDF
$io_pdf->selectFont('../../shared/ezpdf/fonts/Helvetica.afm'); // Seleccionamos el tipo de letra
$io_pdf->ezSetCmMargins(3,2.5,3,3);
<API key>($ls_titulo,$ls_desnom,$ls_periodo,$io_pdf);
$io_pdf->ezStartPageNumbers(550,50,10,'','',1);
$io_pdf->FitWindow=true;
$li_totrow=$io_report->rs_data->RecordCount();
$li_totasi=0;
$li_totded=0;
$li_totapo=0;
$li_totgeneral=0;
while((!$io_report->rs_data->EOF)&&($lb_valido))
{
$io_pdf->transaction('start');
$li_numpag=$io_pdf->ezPageCount;
$li_totalasignacion=0;
$li_totaldeduccion=0;
$li_totalaporte=0;
$li_total_neto=0;
$ls_codper=$io_report->rs_data->fields["codper"];
$ls_cedper=$io_report->rs_data->fields["cedper"];
$ls_apenomper=$io_report->rs_data->fields["apeper"].", ". $io_report->rs_data->fields["nomper"];
$ls_descar=$io_report->rs_data->fields["descar"];
$ls_desuniadm=$io_report->rs_data->fields["desuniadm"];
$ld_fecingper=$io_funciones-><API key>($io_report->rs_data->fields["fecingper"]);
$ls_codcueban=$io_report->rs_data->fields["codcueban"];
$li_sueper=number_format($io_report->rs_data->fields["sueper"],2,",",".");
uf_print_cabecera($ls_cedper,$ls_apenomper,$ls_descar,$ls_desuniadm,$ld_fecingper,$ls_codcueban,$li_sueper,$io_pdf); // Imprimimos la cabecera del registro
$lb_valido=$io_report-><API key>($ls_codper,$ls_conceptocero,$ls_tituloconcepto,$ls_conceptoreporte,$ls_conceptop2); // Obtenemos el detalle del reporte
if($lb_valido)
{
$li_totrow_res=$io_report->rs_data_detalle->RecordCount();
$li_s=1;
while (!$io_report->rs_data_detalle->EOF)
{
$ls_codconc=$io_report->rs_data_detalle->fields["codconc"];
$ls_nomcon=$io_report->rs_data_detalle->fields["nomcon"];
$ls_tipsal=rtrim($io_report->rs_data_detalle->fields["tipsal"]);
$li_valsal=abs($io_report->rs_data_detalle->fields["valsal"]);
switch($ls_tipsal)
{
case "A":
$li_totalasignacion=$li_totalasignacion + $li_valsal;
$li_asignacion=$io_fun_nomina->uf_formatonumerico($li_valsal);
$li_deduccion="";
$li_aporte="";
break;
case "V1":
$li_totalasignacion=$li_totalasignacion + $li_valsal;
$li_asignacion=$io_fun_nomina->uf_formatonumerico($li_valsal);
$li_deduccion="";
$li_aporte="";
break;
case "W1":
$li_totalasignacion=$li_totalasignacion + $li_valsal;
$li_asignacion=$io_fun_nomina->uf_formatonumerico($li_valsal);
$li_deduccion="";
$li_aporte="";
break;
case "D":
$li_totaldeduccion=$li_totaldeduccion + $li_valsal;
$li_asignacion="";
$li_deduccion=$io_fun_nomina->uf_formatonumerico($li_valsal);
$li_aporte="";
$lb_valido=$io_report-><API key>($ls_codper,$ls_codconc,&$li_aporte);
break;
case "V2":
$li_totaldeduccion=$li_totaldeduccion + $li_valsal;
$li_asignacion="";
$li_deduccion=$io_fun_nomina->uf_formatonumerico($li_valsal);
$li_aporte="";
break;
case "W2":
$li_totaldeduccion=$li_totaldeduccion + $li_valsal;
$li_asignacion="";
$li_deduccion=$io_fun_nomina->uf_formatonumerico($li_valsal);
$li_aporte="";
break;
case "P1":
$li_totaldeduccion=$li_totaldeduccion + $li_valsal;
$li_asignacion="";
$li_deduccion=$io_fun_nomina->uf_formatonumerico($li_valsal);
$li_aporte="";
break;
case "V3":
$li_totaldeduccion=$li_totaldeduccion + $li_valsal;
$li_asignacion="";
$li_deduccion=$io_fun_nomina->uf_formatonumerico($li_valsal);
$li_aporte="";
break;
case "W3":
$li_totaldeduccion=$li_totaldeduccion + $li_valsal;
$li_asignacion="";
$li_deduccion=$io_fun_nomina->uf_formatonumerico($li_valsal);
$li_aporte="";
break;
case "P2":
$li_totalaporte=$li_totalaporte + $li_valsal;
$li_asignacion="";
$li_deduccion="";
$li_aporte=$io_fun_nomina->uf_formatonumerico($li_valsal);
break;
case "V4":
$li_totalaporte=$li_totalaporte + $li_valsal;
$li_asignacion="";
$li_deduccion="";
$li_aporte=$io_fun_nomina->uf_formatonumerico($li_valsal);
break;
case "W4":
$li_totalaporte=$li_totalaporte + $li_valsal;
$li_asignacion="";
$li_deduccion="";
$li_aporte=$io_fun_nomina->uf_formatonumerico($li_valsal);
break;
case "R":
$li_asignacion=$io_fun_nomina->uf_formatonumerico($li_valsal);
$li_deduccion="";
$li_aporte="";
break;
}
$la_data[$li_s]=array('codigo'=>$ls_codconc,'nombre'=>$ls_nomcon,'asignacion'=>$li_asignacion,
'deduccion'=>$li_deduccion,'aporte'=>$li_aporte,'neto'=>'');
$li_s++;
$io_report->rs_data_detalle->MoveNext();
}
uf_print_detalle($la_data,$io_pdf); // Imprimimos el detalle
$li_total_neto=$li_totalasignacion-$li_totaldeduccion;
$li_totasi=$li_totasi+$li_totalasignacion;
$li_totded=$li_totded+$li_totaldeduccion;
$li_totapo=$li_totapo+$li_totalaporte;
$li_totgeneral=$li_totgeneral+$li_total_neto;
$li_totalasignacion=$io_fun_nomina->uf_formatonumerico($li_totalasignacion);
$li_totaldeduccion=$io_fun_nomina->uf_formatonumerico($li_totaldeduccion);
$li_totalaporte=$io_fun_nomina->uf_formatonumerico($li_totalaporte);
$li_total_neto=$io_fun_nomina->uf_formatonumerico($li_total_neto);
<API key>($li_totalasignacion,$li_totaldeduccion,$li_totalaporte,$li_total_neto,$io_pdf); // Imprimimos el pie de la cabecera*/
if ($io_pdf->ezPageCount==$li_numpag)
{// Hacemos el commit de los registros que se desean imprimir
$io_pdf->transaction('commit');
}
else
{
$io_pdf->transaction('rewind');
$io_pdf->ezNewPage();
uf_print_cabecera($ls_cedper,$ls_apenomper,$ls_descar,$ls_desuniadm,$ld_fecingper,$ls_codcueban,$li_sueper,$io_pdf); // Imprimimos la cabecera del registro
uf_print_detalle($la_data,$io_pdf); // Imprimimos el detalle
<API key>($li_totalasignacion,$li_totaldeduccion,$li_totalaporte,$li_total_neto,$io_pdf); // Imprimimos el pie de la cabecera*/
}
}
unset($la_data);
$io_report->rs_data->MoveNext();
}
$li_totasi=$io_fun_nomina->uf_formatonumerico($li_totasi);
$li_totded=$io_fun_nomina->uf_formatonumerico($li_totded);
$li_totapo=$io_fun_nomina->uf_formatonumerico($li_totapo);
$li_totgeneral=$io_fun_nomina->uf_formatonumerico($li_totgeneral);
uf_print_piepagina($li_totasi,$li_totded,$li_totapo,$li_totgeneral,$io_pdf);
if($lb_valido)
{
$io_pdf->ezStopPageNumbers(1,1);
$io_pdf->ezStream(); // Mostramos el reporte
}
else
{
print("<script language=JavaScript>");
print(" alert('Ocurrio un error al generar el reporte. Intente de Nuevo');");
print(" close();");
print("</script>");
}
unset($io_pdf);
}
unset($io_report);
unset($io_funciones);
unset($io_fun_nomina);
?>
|
<!DOCTYPE HTML PUBLIC "-
<!--NewPage
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_15) on Fri May 01 14:12:01 PDT 2009 -->
<TITLE>
<API key> (Openfire 3.6.4 Javadoc)
</TITLE>
<META NAME="keywords" CONTENT="org.jivesoftware.openfire.privacy.<API key> interface">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="<API key> (Openfire 3.6.4 Javadoc)";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<A NAME="navbar_top"></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<b>Openfire 3.6.4 Javadoc</b></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../org/jivesoftware/openfire/privacy/PrivacyList.html" title="class in org.jivesoftware.openfire.privacy"><B>PREV CLASS</B></A>
<A HREF="../../../../org/jivesoftware/openfire/privacy/PrivacyListManager.html" title="class in org.jivesoftware.openfire.privacy"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/jivesoftware/openfire/privacy/<API key>.html" target="_top"><B>FRAMES</B></A>
<A HREF="<API key>.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<HR>
<H2>
<FONT SIZE="-1">
org.jivesoftware.openfire.privacy</FONT>
<BR>
Interface <API key></H2>
<HR>
<DL>
<DT><PRE>public interface <B><API key></B></DL>
</PRE>
<P>
|
.fade {
opacity: 0;
-webkit-transition: opacity 0.15s linear;
-o-transition: opacity 0.15s linear;
transition: opacity 0.15s linear;
}
.fade.in {
opacity: 1;
}
.collapse {
display: none;
}
.collapse.in {
display: block;
}
tr.collapse.in {
display: table-row;
}
tbody.collapse.in {
display: table-row-group;
}
.collapsing {
position: relative;
height: 0;
overflow: hidden;
-webkit-transition: height 0.35s ease;
-o-transition: height 0.35s ease;
transition: height 0.35s ease;
}
.thumbnail > img,
.thumbnail a > img,
.carousel-inner > .item > img,
.carousel-inner > .item > a > img {
display: block;
max-width: 100%;
height: auto;
}
.btn-group-lg > .btn {
padding: 10px 16px;
font-size: 18px;
line-height: 1.33;
border-radius: 6px;
}
.btn-group-sm > .btn {
padding: 5px 10px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
}
.btn-group-xs > .btn {
padding: 1px 5px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
}
.dl-horizontal dd:before,
.dl-horizontal dd:after,
.container:before,
.container:after,
.container-fluid:before,
.container-fluid:after,
.row:before,
.row:after,
.form-horizontal .form-group:before,
.form-horizontal .form-group:after,
.btn-toolbar:before,
.btn-toolbar:after,
.btn-group-vertical > .btn-group:before,
.btn-group-vertical > .btn-group:after,
.nav:before,
.nav:after,
.navbar:before,
.navbar:after,
.navbar-header:before,
.navbar-header:after,
.navbar-collapse:before,
.navbar-collapse:after,
.pager:before,
.pager:after,
.panel-body:before,
.panel-body:after,
.modal-footer:before,
.modal-footer:after,
.vc_row:before,
.vc_row:after,
.vc_modal-footer:before,
.vc_modal-footer:after,
.vc_panel-body:before,
.vc_panel-body:after,
.vc_nav:before,
.vc_nav:after,
.vc_navbar:before,
.vc_navbar:after,
.vc_navbar-header:before,
.vc_navbar-header:after,
.vc_navbar-collapse:before,
.vc_navbar-collapse:after {
content: " ";
display: table;
}
.dl-horizontal dd:after,
.container:after,
.container-fluid:after,
.row:after,
.form-horizontal .form-group:after,
.btn-toolbar:after,
.btn-group-vertical > .btn-group:after,
.nav:after,
.navbar:after,
.navbar-header:after,
.navbar-collapse:after,
.pager:after,
.panel-body:after,
.modal-footer:after,
.vc_row:after,
.vc_modal-footer:after,
.vc_panel-body:after,
.vc_nav:after,
.vc_navbar:after,
.vc_navbar-header:after,
.vc_navbar-collapse:after {
clear: both;
}
/* Navbar */
/* Modal box */
/* Panel */
@media (max-width: 767px) {
.vc_hidden-xs {
display: none !important;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.vc_hidden-sm {
display: none !important;
}
}
@media (min-width: 992px) and (max-width: 1199px) {
.vc_hidden-md {
display: none !important;
}
}
@media (min-width: 1200px) {
.vc_hidden-lg {
display: none !important;
}
}
.vc_non_responsive .vc_row .vc_col-sm-1 {
position: relative;
float: left;
width: 8.33333333%;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;
}
.vc_non_responsive .vc_row .vc_col-sm-2 {
position: relative;
float: left;
width: 16.66666667%;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;
}
.vc_non_responsive .vc_row .vc_col-sm-3 {
position: relative;
float: left;
width: 25%;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;
}
.vc_non_responsive .vc_row .vc_col-sm-4 {
position: relative;
float: left;
width: 33.33333333%;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;
}
.vc_non_responsive .vc_row .vc_col-sm-5 {
position: relative;
float: left;
width: 41.66666667%;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;
}
.vc_non_responsive .vc_row .vc_col-sm-6 {
position: relative;
float: left;
width: 50%;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;
}
.vc_non_responsive .vc_row .vc_col-sm-7 {
position: relative;
float: left;
width: 58.33333333%;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;
}
.vc_non_responsive .vc_row .vc_col-sm-8 {
position: relative;
float: left;
width: 66.66666667%;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;
}
.vc_non_responsive .vc_row .vc_col-sm-9 {
position: relative;
float: left;
width: 75%;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;
}
.vc_non_responsive .vc_row .vc_col-sm-10 {
position: relative;
float: left;
width: 83.33333333%;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;
}
.vc_non_responsive .vc_row .vc_col-sm-11 {
position: relative;
float: left;
width: 91.66666667%;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;
}
.vc_non_responsive .vc_row .vc_col-sm-12 {
position: relative;
float: left;
width: 100%;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;
}
.vc_non_responsive .vc_row .vc_col-sm-offset-12 {
margin-left: 100%;
}
.vc_non_responsive .vc_row .vc_col-sm-offset-11 {
margin-left: 91.66666667%;
}
.vc_non_responsive .vc_row .vc_col-sm-offset-10 {
margin-left: 83.33333333%;
}
.vc_non_responsive .vc_row .vc_col-sm-offset-9 {
margin-left: 75%;
}
.vc_non_responsive .vc_row .vc_col-sm-offset-8 {
margin-left: 66.66666667%;
}
.vc_non_responsive .vc_row .vc_col-sm-offset-7 {
margin-left: 58.33333333%;
}
.vc_non_responsive .vc_row .vc_col-sm-offset-6 {
margin-left: 50%;
}
.vc_non_responsive .vc_row .vc_col-sm-offset-5 {
margin-left: 41.66666667%;
}
.vc_non_responsive .vc_row .vc_col-sm-offset-4 {
margin-left: 33.33333333%;
}
.vc_non_responsive .vc_row .vc_col-sm-offset-3 {
margin-left: 25%;
}
.vc_non_responsive .vc_row .vc_col-sm-offset-2 {
margin-left: 16.66666667%;
}
.vc_non_responsive .vc_row .vc_col-sm-offset-1 {
margin-left: 8.33333333%;
}
.vc_non_responsive .vc_row .vc_col-sm-offset-0 {
margin-left: 0%;
}
.vc_non_responsive .vc_row .vc_hidden-sm {
display: none !important;
}
.vc_row {
margin-left: -15px;
margin-right: -15px;
}
.vc_row.vc_row-no-padding .vc_vc_column {
padding-left: 0;
padding-right: 0;
}
.vc_col-xs-1, .vc_col-sm-1, .vc_col-md-1, .vc_col-lg-1, .vc_col-xs-2, .vc_col-sm-2, .vc_col-md-2, .vc_col-lg-2, .vc_col-xs-3, .vc_col-sm-3, .vc_col-md-3, .vc_col-lg-3, .vc_col-xs-4, .vc_col-sm-4, .vc_col-md-4, .vc_col-lg-4, .vc_col-xs-5, .vc_col-sm-5, .vc_col-md-5, .vc_col-lg-5, .vc_col-xs-6, .vc_col-sm-6, .vc_col-md-6, .vc_col-lg-6, .vc_col-xs-7, .vc_col-sm-7, .vc_col-md-7, .vc_col-lg-7, .vc_col-xs-8, .vc_col-sm-8, .vc_col-md-8, .vc_col-lg-8, .vc_col-xs-9, .vc_col-sm-9, .vc_col-md-9, .vc_col-lg-9, .vc_col-xs-10, .vc_col-sm-10, .vc_col-md-10, .vc_col-lg-10, .vc_col-xs-11, .vc_col-sm-11, .vc_col-md-11, .vc_col-lg-11, .vc_col-xs-12, .vc_col-sm-12, .vc_col-md-12, .vc_col-lg-12 {
position: relative;
min-height: 1px;
padding-left: 15px;
padding-right: 15px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.vc_col-xs-1, .vc_col-xs-2, .vc_col-xs-3, .vc_col-xs-4, .vc_col-xs-5, .vc_col-xs-6, .vc_col-xs-7, .vc_col-xs-8, .vc_col-xs-9, .vc_col-xs-10, .vc_col-xs-11, .vc_col-xs-12 {
float: left;
}
.vc_col-xs-12 {
width: 100%;
}
.vc_col-xs-11 {
width: 91.66666667%;
}
.vc_col-xs-10 {
width: 83.33333333%;
}
.vc_col-xs-9 {
width: 75%;
}
.vc_col-xs-8 {
width: 66.66666667%;
}
.vc_col-xs-7 {
width: 58.33333333%;
}
.vc_col-xs-6 {
width: 50%;
}
.vc_col-xs-5 {
width: 41.66666667%;
}
.vc_col-xs-4 {
width: 33.33333333%;
}
.vc_col-xs-3 {
width: 25%;
}
.vc_col-xs-2 {
width: 16.66666667%;
}
.vc_col-xs-1 {
width: 8.33333333%;
}
.vc_col-xs-pull-12 {
right: 100%;
}
.vc_col-xs-pull-11 {
right: 91.66666667%;
}
.vc_col-xs-pull-10 {
right: 83.33333333%;
}
.vc_col-xs-pull-9 {
right: 75%;
}
.vc_col-xs-pull-8 {
right: 66.66666667%;
}
.vc_col-xs-pull-7 {
right: 58.33333333%;
}
.vc_col-xs-pull-6 {
right: 50%;
}
.vc_col-xs-pull-5 {
right: 41.66666667%;
}
.vc_col-xs-pull-4 {
right: 33.33333333%;
}
.vc_col-xs-pull-3 {
right: 25%;
}
.vc_col-xs-pull-2 {
right: 16.66666667%;
}
.vc_col-xs-pull-1 {
right: 8.33333333%;
}
.vc_col-xs-pull-0 {
right: auto;
}
.vc_col-xs-push-12 {
left: 100%;
}
.vc_col-xs-push-11 {
left: 91.66666667%;
}
.vc_col-xs-push-10 {
left: 83.33333333%;
}
.vc_col-xs-push-9 {
left: 75%;
}
.vc_col-xs-push-8 {
left: 66.66666667%;
}
.vc_col-xs-push-7 {
left: 58.33333333%;
}
.vc_col-xs-push-6 {
left: 50%;
}
.vc_col-xs-push-5 {
left: 41.66666667%;
}
.vc_col-xs-push-4 {
left: 33.33333333%;
}
.vc_col-xs-push-3 {
left: 25%;
}
.vc_col-xs-push-2 {
left: 16.66666667%;
}
.vc_col-xs-push-1 {
left: 8.33333333%;
}
.vc_col-xs-push-0 {
left: auto;
}
.vc_col-xs-offset-12 {
margin-left: 100%;
}
.vc_col-xs-offset-11 {
margin-left: 91.66666667%;
}
.vc_col-xs-offset-10 {
margin-left: 83.33333333%;
}
.vc_col-xs-offset-9 {
margin-left: 75%;
}
.vc_col-xs-offset-8 {
margin-left: 66.66666667%;
}
.vc_col-xs-offset-7 {
margin-left: 58.33333333%;
}
.vc_col-xs-offset-6 {
margin-left: 50%;
}
.vc_col-xs-offset-5 {
margin-left: 41.66666667%;
}
.vc_col-xs-offset-4 {
margin-left: 33.33333333%;
}
.vc_col-xs-offset-3 {
margin-left: 25%;
}
.vc_col-xs-offset-2 {
margin-left: 16.66666667%;
}
.vc_col-xs-offset-1 {
margin-left: 8.33333333%;
}
.vc_col-xs-offset-0 {
margin-left: 0%;
}
@media (min-width: 768px) {
.vc_col-sm-1, .vc_col-sm-2, .vc_col-sm-3, .vc_col-sm-4, .vc_col-sm-5, .vc_col-sm-6, .vc_col-sm-7, .vc_col-sm-8, .vc_col-sm-9, .vc_col-sm-10, .vc_col-sm-11, .vc_col-sm-12 {
float: left;
}
.vc_col-sm-12 {
width: 100%;
}
.vc_col-sm-11 {
width: 91.66666667%;
}
.vc_col-sm-10 {
width: 83.33333333%;
}
.vc_col-sm-9 {
width: 75%;
}
.vc_col-sm-8 {
width: 66.66666667%;
}
.vc_col-sm-7 {
width: 58.33333333%;
}
.vc_col-sm-6 {
width: 50%;
}
.vc_col-sm-5 {
width: 41.66666667%;
}
.vc_col-sm-4 {
width: 33.33333333%;
}
.vc_col-sm-3 {
width: 25%;
}
.vc_col-sm-2 {
width: 16.66666667%;
}
.vc_col-sm-1 {
width: 8.33333333%;
}
.vc_col-sm-pull-12 {
right: 100%;
}
.vc_col-sm-pull-11 {
right: 91.66666667%;
}
.vc_col-sm-pull-10 {
right: 83.33333333%;
}
.vc_col-sm-pull-9 {
right: 75%;
}
.vc_col-sm-pull-8 {
right: 66.66666667%;
}
.vc_col-sm-pull-7 {
right: 58.33333333%;
}
.vc_col-sm-pull-6 {
right: 50%;
}
.vc_col-sm-pull-5 {
right: 41.66666667%;
}
.vc_col-sm-pull-4 {
right: 33.33333333%;
}
.vc_col-sm-pull-3 {
right: 25%;
}
.vc_col-sm-pull-2 {
right: 16.66666667%;
}
.vc_col-sm-pull-1 {
right: 8.33333333%;
}
.vc_col-sm-pull-0 {
right: auto;
}
.vc_col-sm-push-12 {
left: 100%;
}
.vc_col-sm-push-11 {
left: 91.66666667%;
}
.vc_col-sm-push-10 {
left: 83.33333333%;
}
.vc_col-sm-push-9 {
left: 75%;
}
.vc_col-sm-push-8 {
left: 66.66666667%;
}
.vc_col-sm-push-7 {
left: 58.33333333%;
}
.vc_col-sm-push-6 {
left: 50%;
}
.vc_col-sm-push-5 {
left: 41.66666667%;
}
.vc_col-sm-push-4 {
left: 33.33333333%;
}
.vc_col-sm-push-3 {
left: 25%;
}
.vc_col-sm-push-2 {
left: 16.66666667%;
}
.vc_col-sm-push-1 {
left: 8.33333333%;
}
.vc_col-sm-push-0 {
left: auto;
}
.vc_col-sm-offset-12 {
margin-left: 100%;
}
.vc_col-sm-offset-11 {
margin-left: 91.66666667%;
}
.vc_col-sm-offset-10 {
margin-left: 83.33333333%;
}
.vc_col-sm-offset-9 {
margin-left: 75%;
}
.vc_col-sm-offset-8 {
margin-left: 66.66666667%;
}
.vc_col-sm-offset-7 {
margin-left: 58.33333333%;
}
.vc_col-sm-offset-6 {
margin-left: 50%;
}
.vc_col-sm-offset-5 {
margin-left: 41.66666667%;
}
.vc_col-sm-offset-4 {
margin-left: 33.33333333%;
}
.vc_col-sm-offset-3 {
margin-left: 25%;
}
.vc_col-sm-offset-2 {
margin-left: 16.66666667%;
}
.vc_col-sm-offset-1 {
margin-left: 8.33333333%;
}
.vc_col-sm-offset-0 {
margin-left: 0%;
}
}
@media (min-width: 992px) {
.vc_col-md-1, .vc_col-md-2, .vc_col-md-3, .vc_col-md-4, .vc_col-md-5, .vc_col-md-6, .vc_col-md-7, .vc_col-md-8, .vc_col-md-9, .vc_col-md-10, .vc_col-md-11, .vc_col-md-12 {
float: left;
}
.vc_col-md-12 {
width: 100%;
}
.vc_col-md-11 {
width: 91.66666667%;
}
.vc_col-md-10 {
width: 83.33333333%;
}
.vc_col-md-9 {
width: 75%;
}
.vc_col-md-8 {
width: 66.66666667%;
}
.vc_col-md-7 {
width: 58.33333333%;
}
.vc_col-md-6 {
width: 50%;
}
.vc_col-md-5 {
width: 41.66666667%;
}
.vc_col-md-4 {
width: 33.33333333%;
}
.vc_col-md-3 {
width: 25%;
}
.vc_col-md-2 {
width: 16.66666667%;
}
.vc_col-md-1 {
width: 8.33333333%;
}
.vc_col-md-pull-12 {
right: 100%;
}
.vc_col-md-pull-11 {
right: 91.66666667%;
}
.vc_col-md-pull-10 {
right: 83.33333333%;
}
.vc_col-md-pull-9 {
right: 75%;
}
.vc_col-md-pull-8 {
right: 66.66666667%;
}
.vc_col-md-pull-7 {
right: 58.33333333%;
}
.vc_col-md-pull-6 {
right: 50%;
}
.vc_col-md-pull-5 {
right: 41.66666667%;
}
.vc_col-md-pull-4 {
right: 33.33333333%;
}
.vc_col-md-pull-3 {
right: 25%;
}
.vc_col-md-pull-2 {
right: 16.66666667%;
}
.vc_col-md-pull-1 {
right: 8.33333333%;
}
.vc_col-md-pull-0 {
right: auto;
}
.vc_col-md-push-12 {
left: 100%;
}
.vc_col-md-push-11 {
left: 91.66666667%;
}
.vc_col-md-push-10 {
left: 83.33333333%;
}
.vc_col-md-push-9 {
left: 75%;
}
.vc_col-md-push-8 {
left: 66.66666667%;
}
.vc_col-md-push-7 {
left: 58.33333333%;
}
.vc_col-md-push-6 {
left: 50%;
}
.vc_col-md-push-5 {
left: 41.66666667%;
}
.vc_col-md-push-4 {
left: 33.33333333%;
}
.vc_col-md-push-3 {
left: 25%;
}
.vc_col-md-push-2 {
left: 16.66666667%;
}
.vc_col-md-push-1 {
left: 8.33333333%;
}
.vc_col-md-push-0 {
left: auto;
}
.vc_col-md-offset-12 {
margin-left: 100%;
}
.vc_col-md-offset-11 {
margin-left: 91.66666667%;
}
.vc_col-md-offset-10 {
margin-left: 83.33333333%;
}
.vc_col-md-offset-9 {
margin-left: 75%;
}
.vc_col-md-offset-8 {
margin-left: 66.66666667%;
}
.vc_col-md-offset-7 {
margin-left: 58.33333333%;
}
.vc_col-md-offset-6 {
margin-left: 50%;
}
.vc_col-md-offset-5 {
margin-left: 41.66666667%;
}
.vc_col-md-offset-4 {
margin-left: 33.33333333%;
}
.vc_col-md-offset-3 {
margin-left: 25%;
}
.vc_col-md-offset-2 {
margin-left: 16.66666667%;
}
.vc_col-md-offset-1 {
margin-left: 8.33333333%;
}
.vc_col-md-offset-0 {
margin-left: 0%;
}
}
@media (min-width: 1200px) {
.vc_col-lg-1, .vc_col-lg-2, .vc_col-lg-3, .vc_col-lg-4, .vc_col-lg-5, .vc_col-lg-6, .vc_col-lg-7, .vc_col-lg-8, .vc_col-lg-9, .vc_col-lg-10, .vc_col-lg-11, .vc_col-lg-12 {
float: left;
}
.vc_col-lg-12 {
width: 100%;
}
.vc_col-lg-11 {
width: 91.66666667%;
}
.vc_col-lg-10 {
width: 83.33333333%;
}
.vc_col-lg-9 {
width: 75%;
}
.vc_col-lg-8 {
width: 66.66666667%;
}
.vc_col-lg-7 {
width: 58.33333333%;
}
.vc_col-lg-6 {
width: 50%;
}
.vc_col-lg-5 {
width: 41.66666667%;
}
.vc_col-lg-4 {
width: 33.33333333%;
}
.vc_col-lg-3 {
width: 25%;
}
.vc_col-lg-2 {
width: 16.66666667%;
}
.vc_col-lg-1 {
width: 8.33333333%;
}
.vc_col-lg-pull-12 {
right: 100%;
}
.vc_col-lg-pull-11 {
right: 91.66666667%;
}
.vc_col-lg-pull-10 {
right: 83.33333333%;
}
.vc_col-lg-pull-9 {
right: 75%;
}
.vc_col-lg-pull-8 {
right: 66.66666667%;
}
.vc_col-lg-pull-7 {
right: 58.33333333%;
}
.vc_col-lg-pull-6 {
right: 50%;
}
.vc_col-lg-pull-5 {
right: 41.66666667%;
}
.vc_col-lg-pull-4 {
right: 33.33333333%;
}
.vc_col-lg-pull-3 {
right: 25%;
}
.vc_col-lg-pull-2 {
right: 16.66666667%;
}
.vc_col-lg-pull-1 {
right: 8.33333333%;
}
.vc_col-lg-pull-0 {
right: auto;
}
.vc_col-lg-push-12 {
left: 100%;
}
.vc_col-lg-push-11 {
left: 91.66666667%;
}
.vc_col-lg-push-10 {
left: 83.33333333%;
}
.vc_col-lg-push-9 {
left: 75%;
}
.vc_col-lg-push-8 {
left: 66.66666667%;
}
.vc_col-lg-push-7 {
left: 58.33333333%;
}
.vc_col-lg-push-6 {
left: 50%;
}
.vc_col-lg-push-5 {
left: 41.66666667%;
}
.vc_col-lg-push-4 {
left: 33.33333333%;
}
.vc_col-lg-push-3 {
left: 25%;
}
.vc_col-lg-push-2 {
left: 16.66666667%;
}
.vc_col-lg-push-1 {
left: 8.33333333%;
}
.vc_col-lg-push-0 {
left: auto;
}
.vc_col-lg-offset-12 {
margin-left: 100%;
}
.vc_col-lg-offset-11 {
margin-left: 91.66666667%;
}
.vc_col-lg-offset-10 {
margin-left: 83.33333333%;
}
.vc_col-lg-offset-9 {
margin-left: 75%;
}
.vc_col-lg-offset-8 {
margin-left: 66.66666667%;
}
.vc_col-lg-offset-7 {
margin-left: 58.33333333%;
}
.vc_col-lg-offset-6 {
margin-left: 50%;
}
.vc_col-lg-offset-5 {
margin-left: 41.66666667%;
}
.vc_col-lg-offset-4 {
margin-left: 33.33333333%;
}
.vc_col-lg-offset-3 {
margin-left: 25%;
}
.vc_col-lg-offset-2 {
margin-left: 16.66666667%;
}
.vc_col-lg-offset-1 {
margin-left: 8.33333333%;
}
.vc_col-lg-offset-0 {
margin-left: 0%;
}
}
.vc_btn,
a.vc_btn,
button.vc_btn {
cursor: pointer;
display: inline-block;
text-decoration: none !important;
padding: 9px 12px;
font-size: 100%;
line-height: 20px;
border-radius: 4px;
/* Button colors variations */
}
.vc_btn,
a.vc_btn,
button.vc_btn,
.vc_btn:hover,
a.vc_btn:hover,
button.vc_btn:hover,
.vc_btn:focus,
a.vc_btn:focus,
button.vc_btn:focus {
border: 1px solid transparent;
}
.vc_btn-lg,
a.vc_btn-lg,
button.vc_btn-lg {
padding: 10px 16px;
font-size: 18px;
line-height: 1.33;
border-radius: 6px;
}
.vc_btn-sm,
a.vc_btn-sm,
button.vc_btn-sm {
padding: 5px 10px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
}
.vc_btn-xs,
a.vc_btn-xs,
button.vc_btn-xs {
padding: 1px 5px;
font-size: 12px;
line-height: 1.5;
border-radius: 3px;
}
.vc_btn_square,
a.vc_btn_square,
button.vc_btn_square {
border-radius: 0;
}
.<API key>,
a.<API key>,
button.<API key> {
border-radius: 0;
background: none !important;
}
.<API key>,
a.<API key>,
button.<API key>,
.<API key>:hover,
a.<API key>:hover,
button.<API key>:hover,
.<API key>:focus,
a.<API key>:focus,
button.<API key>:focus {
border: 2px solid;
}
.vc_btn_round,
a.vc_btn_round,
button.vc_btn_round {
border-radius: 25px;
}
.vc_btn_outlined,
a.vc_btn_outlined,
button.vc_btn_outlined {
background: none !important;
}
.vc_btn_outlined,
a.vc_btn_outlined,
button.vc_btn_outlined,
.vc_btn_outlined:hover,
a.vc_btn_outlined:hover,
button.vc_btn_outlined:hover,
.vc_btn_outlined:focus,
a.vc_btn_outlined:focus,
button.vc_btn_outlined:focus {
border: 2px solid;
}
.vc_btn-blue,
a.vc_btn-blue,
button.vc_btn-blue {
background-color: #5472d2;
color: #ffffff !important;
-webkit-transition: all 0.5s;
-o-transition: all 0.5s;
transition: all 0.5s;
}
.vc_btn-blue:hover,
a.vc_btn-blue:hover,
button.vc_btn-blue:hover {
background-color: #3c5ecc;
color: #f7f7f7 !important;
}
.vc_btn-blue.vc_btn_outlined,
a.vc_btn-blue.vc_btn_outlined,
button.vc_btn-blue.vc_btn_outlined,
.vc_btn-blue.<API key>,
a.vc_btn-blue.<API key>,
button.vc_btn-blue.<API key> {
color: #5472d2 !important;
}
.vc_btn-blue.vc_btn_3d,
a.vc_btn-blue.vc_btn_3d,
button.vc_btn-blue.vc_btn_3d {
-webkit-box-shadow: 0 5px 0 #3253bc;
box-shadow: 0 5px 0 #3253bc;
margin-bottom: 5px;
}
.vc_btn-turquoise,
a.vc_btn-turquoise,
button.vc_btn-turquoise {
background-color: #00c1cf;
color: #ffffff !important;
-webkit-transition: all 0.5s;
-o-transition: all 0.5s;
transition: all 0.5s;
}
.vc_btn-turquoise:hover,
a.vc_btn-turquoise:hover,
button.vc_btn-turquoise:hover {
background-color: #00a4b0;
color: #f7f7f7 !important;
}
.vc_btn-turquoise.vc_btn_outlined,
a.vc_btn-turquoise.vc_btn_outlined,
button.vc_btn-turquoise.vc_btn_outlined,
.vc_btn-turquoise.<API key>,
a.vc_btn-turquoise.<API key>,
button.vc_btn-turquoise.<API key> {
color: #00c1cf !important;
}
.vc_btn-turquoise.vc_btn_3d,
a.vc_btn-turquoise.vc_btn_3d,
button.vc_btn-turquoise.vc_btn_3d {
-webkit-box-shadow: 0 5px 0 #008d97;
box-shadow: 0 5px 0 #008d97;
margin-bottom: 5px;
}
.vc_btn-pink,
a.vc_btn-pink,
button.vc_btn-pink {
background-color: #fe6c61;
color: #ffffff !important;
-webkit-transition: all 0.5s;
-o-transition: all 0.5s;
transition: all 0.5s;
}
.vc_btn-pink:hover,
a.vc_btn-pink:hover,
button.vc_btn-pink:hover {
background-color: #fe5043;
color: #f7f7f7 !important;
}
.vc_btn-pink.vc_btn_outlined,
a.vc_btn-pink.vc_btn_outlined,
button.vc_btn-pink.vc_btn_outlined,
.vc_btn-pink.<API key>,
a.vc_btn-pink.<API key>,
button.vc_btn-pink.<API key> {
color: #fe6c61 !important;
}
.vc_btn-pink.vc_btn_3d,
a.vc_btn-pink.vc_btn_3d,
button.vc_btn-pink.vc_btn_3d {
-webkit-box-shadow: 0 5px 0 #fe3829;
box-shadow: 0 5px 0 #fe3829;
margin-bottom: 5px;
}
.vc_btn-violet,
a.vc_btn-violet,
button.vc_btn-violet {
background-color: #8d6dc4;
color: #ffffff !important;
-webkit-transition: all 0.5s;
-o-transition: all 0.5s;
transition: all 0.5s;
}
.vc_btn-violet:hover,
a.vc_btn-violet:hover,
button.vc_btn-violet:hover {
background-color: #7c57bb;
color: #f7f7f7 !important;
}
.vc_btn-violet.vc_btn_outlined,
a.vc_btn-violet.vc_btn_outlined,
button.vc_btn-violet.vc_btn_outlined,
.vc_btn-violet.<API key>,
a.vc_btn-violet.<API key>,
button.vc_btn-violet.<API key> {
color: #8d6dc4 !important;
}
.vc_btn-violet.vc_btn_3d,
a.vc_btn-violet.vc_btn_3d,
button.vc_btn-violet.vc_btn_3d {
-webkit-box-shadow: 0 5px 0 #6e48b1;
box-shadow: 0 5px 0 #6e48b1;
margin-bottom: 5px;
}
.vc_btn-peacoc,
a.vc_btn-peacoc,
button.vc_btn-peacoc {
background-color: #4cadc9;
color: #ffffff !important;
-webkit-transition: all 0.5s;
-o-transition: all 0.5s;
transition: all 0.5s;
}
.vc_btn-peacoc:hover,
a.vc_btn-peacoc:hover,
button.vc_btn-peacoc:hover {
background-color: #39a0bd;
color: #f7f7f7 !important;
}
.vc_btn-peacoc.vc_btn_outlined,
a.vc_btn-peacoc.vc_btn_outlined,
button.vc_btn-peacoc.vc_btn_outlined,
.vc_btn-peacoc.<API key>,
a.vc_btn-peacoc.<API key>,
button.vc_btn-peacoc.<API key> {
color: #4cadc9 !important;
}
.vc_btn-peacoc.vc_btn_3d,
a.vc_btn-peacoc.vc_btn_3d,
button.vc_btn-peacoc.vc_btn_3d {
-webkit-box-shadow: 0 5px 0 #338faa;
box-shadow: 0 5px 0 #338faa;
margin-bottom: 5px;
}
.vc_btn-chino,
a.vc_btn-chino,
button.vc_btn-chino {
background-color: #cec2ab;
color: #ffffff !important;
-webkit-transition: all 0.5s;
-o-transition: all 0.5s;
transition: all 0.5s;
}
.vc_btn-chino:hover,
a.vc_btn-chino:hover,
button.vc_btn-chino:hover {
background-color: #c3b498;
color: #f7f7f7 !important;
}
.vc_btn-chino.vc_btn_outlined,
a.vc_btn-chino.vc_btn_outlined,
button.vc_btn-chino.vc_btn_outlined,
.vc_btn-chino.<API key>,
a.vc_btn-chino.<API key>,
button.vc_btn-chino.<API key> {
color: #cec2ab !important;
}
.vc_btn-chino.vc_btn_3d,
a.vc_btn-chino.vc_btn_3d,
button.vc_btn-chino.vc_btn_3d {
-webkit-box-shadow: 0 5px 0 #b9a888;
box-shadow: 0 5px 0 #b9a888;
margin-bottom: 5px;
}
.vc_btn-mulled_wine,
a.vc_btn-mulled_wine,
button.vc_btn-mulled_wine {
background-color: #50485b;
color: #ffffff !important;
-webkit-transition: all 0.5s;
-o-transition: all 0.5s;
transition: all 0.5s;
}
.vc_btn-mulled_wine:hover,
a.vc_btn-mulled_wine:hover,
button.vc_btn-mulled_wine:hover {
background-color: #413a4a;
color: #f7f7f7 !important;
}
.vc_btn-mulled_wine.vc_btn_outlined,
a.vc_btn-mulled_wine.vc_btn_outlined,
button.vc_btn-mulled_wine.vc_btn_outlined,
.vc_btn-mulled_wine.<API key>,
a.vc_btn-mulled_wine.<API key>,
button.vc_btn-mulled_wine.<API key> {
color: #50485b !important;
}
.vc_btn-mulled_wine.vc_btn_3d,
a.vc_btn-mulled_wine.vc_btn_3d,
button.vc_btn-mulled_wine.vc_btn_3d {
-webkit-box-shadow: 0 5px 0 #342f3c;
box-shadow: 0 5px 0 #342f3c;
margin-bottom: 5px;
}
.vc_btn-vista_blue,
a.vc_btn-vista_blue,
button.vc_btn-vista_blue {
background-color: #75d69c;
color: #ffffff !important;
-webkit-transition: all 0.5s;
-o-transition: all 0.5s;
transition: all 0.5s;
}
.vc_btn-vista_blue:hover,
a.vc_btn-vista_blue:hover,
button.vc_btn-vista_blue:hover {
background-color: #5dcf8b;
color: #f7f7f7 !important;
}
.vc_btn-vista_blue.vc_btn_outlined,
a.vc_btn-vista_blue.vc_btn_outlined,
button.vc_btn-vista_blue.vc_btn_outlined,
.vc_btn-vista_blue.<API key>,
a.vc_btn-vista_blue.<API key>,
button.vc_btn-vista_blue.<API key> {
color: #75d69c !important;
}
.vc_btn-vista_blue.vc_btn_3d,
a.vc_btn-vista_blue.vc_btn_3d,
button.vc_btn-vista_blue.vc_btn_3d {
-webkit-box-shadow: 0 5px 0 #4ac97d;
box-shadow: 0 5px 0 #4ac97d;
margin-bottom: 5px;
}
.vc_btn-black,
a.vc_btn-black,
button.vc_btn-black {
background-color: #2a2a2a;
color: #ffffff !important;
-webkit-transition: all 0.5s;
-o-transition: all 0.5s;
transition: all 0.5s;
}
.vc_btn-black:hover,
a.vc_btn-black:hover,
button.vc_btn-black:hover {
background-color: #1b1b1b;
color: #f7f7f7 !important;
}
.vc_btn-black.vc_btn_outlined,
a.vc_btn-black.vc_btn_outlined,
button.vc_btn-black.vc_btn_outlined,
.vc_btn-black.<API key>,
a.vc_btn-black.<API key>,
button.vc_btn-black.<API key> {
color: #2a2a2a !important;
}
.vc_btn-black.vc_btn_3d,
a.vc_btn-black.vc_btn_3d,
button.vc_btn-black.vc_btn_3d {
-webkit-box-shadow: 0 5px 0 #0e0e0e;
box-shadow: 0 5px 0 #0e0e0e;
margin-bottom: 5px;
}
.vc_btn-grey,
a.vc_btn-grey,
button.vc_btn-grey {
background-color: #ebebeb;
color: #666666 !important;
-webkit-transition: all 0.5s;
-o-transition: all 0.5s;
transition: all 0.5s;
}
.vc_btn-grey:hover,
a.vc_btn-grey:hover,
button.vc_btn-grey:hover {
background-color: #dcdcdc;
color: #5e5e5e !important;
}
.vc_btn-grey.vc_btn_outlined,
a.vc_btn-grey.vc_btn_outlined,
button.vc_btn-grey.vc_btn_outlined,
.vc_btn-grey.<API key>,
a.vc_btn-grey.<API key>,
button.vc_btn-grey.<API key> {
color: #ebebeb !important;
}
.vc_btn-grey.vc_btn_3d,
a.vc_btn-grey.vc_btn_3d,
button.vc_btn-grey.vc_btn_3d {
-webkit-box-shadow: 0 5px 0 #cfcfcf;
box-shadow: 0 5px 0 #cfcfcf;
margin-bottom: 5px;
}
.vc_btn-orange,
a.vc_btn-orange,
button.vc_btn-orange {
background-color: #f7be68;
color: #ffffff !important;
-webkit-transition: all 0.5s;
-o-transition: all 0.5s;
transition: all 0.5s;
}
.vc_btn-orange:hover,
a.vc_btn-orange:hover,
button.vc_btn-orange:hover {
background-color: #f5b14b;
color: #f7f7f7 !important;
}
.vc_btn-orange.vc_btn_outlined,
a.vc_btn-orange.vc_btn_outlined,
button.vc_btn-orange.vc_btn_outlined,
.vc_btn-orange.<API key>,
a.vc_btn-orange.<API key>,
button.vc_btn-orange.<API key> {
color: #f7be68 !important;
}
.vc_btn-orange.vc_btn_3d,
a.vc_btn-orange.vc_btn_3d,
button.vc_btn-orange.vc_btn_3d {
-webkit-box-shadow: 0 5px 0 #f4a733;
box-shadow: 0 5px 0 #f4a733;
margin-bottom: 5px;
}
.vc_btn-sky,
a.vc_btn-sky,
button.vc_btn-sky {
background-color: #5aa1e3;
color: #ffffff !important;
-webkit-transition: all 0.5s;
-o-transition: all 0.5s;
transition: all 0.5s;
}
.vc_btn-sky:hover,
a.vc_btn-sky:hover,
button.vc_btn-sky:hover {
background-color: #4092df;
color: #f7f7f7 !important;
}
.vc_btn-sky.vc_btn_outlined,
a.vc_btn-sky.vc_btn_outlined,
button.vc_btn-sky.vc_btn_outlined,
.vc_btn-sky.<API key>,
a.vc_btn-sky.<API key>,
button.vc_btn-sky.<API key> {
color: #5aa1e3 !important;
}
.vc_btn-sky.vc_btn_3d,
a.vc_btn-sky.vc_btn_3d,
button.vc_btn-sky.vc_btn_3d {
-webkit-box-shadow: 0 5px 0 #2a86db;
box-shadow: 0 5px 0 #2a86db;
margin-bottom: 5px;
}
.vc_btn-green,
a.vc_btn-green,
button.vc_btn-green {
background-color: #6dab3c;
color: #ffffff !important;
-webkit-transition: all 0.5s;
-o-transition: all 0.5s;
transition: all 0.5s;
}
.vc_btn-green:hover,
a.vc_btn-green:hover,
button.vc_btn-green:hover {
background-color: #5f9434;
color: #f7f7f7 !important;
}
.vc_btn-green.vc_btn_outlined,
a.vc_btn-green.vc_btn_outlined,
button.vc_btn-green.vc_btn_outlined,
.vc_btn-green.<API key>,
a.vc_btn-green.<API key>,
button.vc_btn-green.<API key> {
color: #6dab3c !important;
}
.vc_btn-green.vc_btn_3d,
a.vc_btn-green.vc_btn_3d,
button.vc_btn-green.vc_btn_3d {
-webkit-box-shadow: 0 5px 0 #53812d;
box-shadow: 0 5px 0 #53812d;
margin-bottom: 5px;
}
.vc_btn-juicy_pink,
a.vc_btn-juicy_pink,
button.vc_btn-juicy_pink {
background-color: #f4524d;
color: #ffffff !important;
-webkit-transition: all 0.5s;
-o-transition: all 0.5s;
transition: all 0.5s;
}
.vc_btn-juicy_pink:hover,
a.vc_btn-juicy_pink:hover,
button.vc_btn-juicy_pink:hover {
background-color: #f23630;
color: #f7f7f7 !important;
}
.vc_btn-juicy_pink.vc_btn_outlined,
a.vc_btn-juicy_pink.vc_btn_outlined,
button.vc_btn-juicy_pink.vc_btn_outlined,
.vc_btn-juicy_pink.<API key>,
a.vc_btn-juicy_pink.<API key>,
button.vc_btn-juicy_pink.<API key> {
color: #f4524d !important;
}
.vc_btn-juicy_pink.vc_btn_3d,
a.vc_btn-juicy_pink.vc_btn_3d,
button.vc_btn-juicy_pink.vc_btn_3d {
-webkit-box-shadow: 0 5px 0 #f11f18;
box-shadow: 0 5px 0 #f11f18;
margin-bottom: 5px;
}
.vc_btn-sandy_brown,
a.vc_btn-sandy_brown,
button.vc_btn-sandy_brown {
background-color: #f79468;
color: #ffffff !important;
-webkit-transition: all 0.5s;
-o-transition: all 0.5s;
transition: all 0.5s;
}
.vc_btn-sandy_brown:hover,
a.vc_btn-sandy_brown:hover,
button.vc_btn-sandy_brown:hover {
background-color: #f57f4b;
color: #f7f7f7 !important;
}
.vc_btn-sandy_brown.vc_btn_outlined,
a.vc_btn-sandy_brown.vc_btn_outlined,
button.vc_btn-sandy_brown.vc_btn_outlined,
.vc_btn-sandy_brown.<API key>,
a.vc_btn-sandy_brown.<API key>,
button.vc_btn-sandy_brown.<API key> {
color: #f79468 !important;
}
.vc_btn-sandy_brown.vc_btn_3d,
a.vc_btn-sandy_brown.vc_btn_3d,
button.vc_btn-sandy_brown.vc_btn_3d {
-webkit-box-shadow: 0 5px 0 #f46e33;
box-shadow: 0 5px 0 #f46e33;
margin-bottom: 5px;
}
.vc_btn-purple,
a.vc_btn-purple,
button.vc_btn-purple {
background-color: #b97ebb;
color: #ffffff !important;
-webkit-transition: all 0.5s;
-o-transition: all 0.5s;
transition: all 0.5s;
}
.vc_btn-purple:hover,
a.vc_btn-purple:hover,
button.vc_btn-purple:hover {
background-color: #ae6ab0;
color: #f7f7f7 !important;
}
.vc_btn-purple.vc_btn_outlined,
a.vc_btn-purple.vc_btn_outlined,
button.vc_btn-purple.vc_btn_outlined,
.vc_btn-purple.<API key>,
a.vc_btn-purple.<API key>,
button.vc_btn-purple.<API key> {
color: #b97ebb !important;
}
.vc_btn-purple.vc_btn_3d,
a.vc_btn-purple.vc_btn_3d,
button.vc_btn-purple.vc_btn_3d {
-webkit-box-shadow: 0 5px 0 #a559a8;
box-shadow: 0 5px 0 #a559a8;
margin-bottom: 5px;
}
.vc_btn-white,
a.vc_btn-white,
button.vc_btn-white {
background-color: #ffffff;
color: #666666 !important;
-webkit-transition: all 0.5s;
-o-transition: all 0.5s;
transition: all 0.5s;
}
.vc_btn-white:hover,
a.vc_btn-white:hover,
button.vc_btn-white:hover {
background-color: #f0f0f0;
color: #5e5e5e !important;
}
.vc_btn-white.vc_btn_outlined,
a.vc_btn-white.vc_btn_outlined,
button.vc_btn-white.vc_btn_outlined,
.vc_btn-white.<API key>,
a.vc_btn-white.<API key>,
button.vc_btn-white.<API key> {
color: #ffffff !important;
}
.vc_btn-white.vc_btn_3d,
a.vc_btn-white.vc_btn_3d,
button.vc_btn-white.vc_btn_3d {
-webkit-box-shadow: 0 5px 0 #e3e3e3;
box-shadow: 0 5px 0 #e3e3e3;
margin-bottom: 5px;
}
.vc_btn-grace,
a.vc_btn-grace,
button.vc_btn-grace {
background-color: #aed13b;
color: #ffffff !important;
-webkit-transition: all 0.5s;
-o-transition: all 0.5s;
transition: all 0.5s;
}
.vc_btn-grace:hover,
a.vc_btn-grace:hover,
button.vc_btn-grace:hover {
background-color: #9ec02d;
color: #f7f7f7 !important;
}
.vc_btn-grace.vc_btn_outlined,
a.vc_btn-grace.vc_btn_outlined,
button.vc_btn-grace.vc_btn_outlined,
.vc_btn-grace.<API key>,
a.vc_btn-grace.<API key>,
button.vc_btn-grace.<API key> {
color: #aed13b !important;
}
.vc_btn-grace.vc_btn_3d,
a.vc_btn-grace.vc_btn_3d,
button.vc_btn-grace.vc_btn_3d {
-webkit-box-shadow: 0 5px 0 #8dac28;
box-shadow: 0 5px 0 #8dac28;
margin-bottom: 5px;
}
.vc_btn-default,
a.vc_btn-default,
button.vc_btn-default {
color: #7d7d7d;
background-color: #ffffff;
border-color: transparent;
}
.vc_btn-default:hover,
a.vc_btn-default:hover,
button.vc_btn-default:hover,
.vc_btn-default:focus,
a.vc_btn-default:focus,
button.vc_btn-default:focus,
.vc_btn-default:active,
a.vc_btn-default:active,
button.vc_btn-default:active,
.vc_btn-default.active,
a.vc_btn-default.active,
button.vc_btn-default.active,
.open > .dropdown-toggle.vc_btn-default,
.open > .dropdown-togglea.vc_btn-default,
.open > .<API key>.vc_btn-default {
color: #7d7d7d;
background-color: #e6e6e6;
border-color: rgba(0, 0, 0, 0);
}
.vc_btn-default:active,
a.vc_btn-default:active,
button.vc_btn-default:active,
.vc_btn-default.active,
a.vc_btn-default.active,
button.vc_btn-default.active,
.open > .dropdown-toggle.vc_btn-default,
.open > .dropdown-togglea.vc_btn-default,
.open > .<API key>.vc_btn-default {
background-image: none;
}
.vc_btn-default .badge,
a.vc_btn-default .badge,
button.vc_btn-default .badge {
color: #ffffff;
background-color: #7d7d7d;
}
.vc_btn-primary,
a.vc_btn-primary,
button.vc_btn-primary {
color: #ffffff;
background-color: #00aef0;
border-color: transparent;
}
.vc_btn-primary:hover,
a.vc_btn-primary:hover,
button.vc_btn-primary:hover,
.vc_btn-primary:focus,
a.vc_btn-primary:focus,
button.vc_btn-primary:focus,
.vc_btn-primary:active,
a.vc_btn-primary:active,
button.vc_btn-primary:active,
.vc_btn-primary.active,
a.vc_btn-primary.active,
button.vc_btn-primary.active,
.open > .dropdown-toggle.vc_btn-primary,
.open > .dropdown-togglea.vc_btn-primary,
.open > .<API key>.vc_btn-primary {
color: #ffffff;
background-color: #0089bd;
border-color: rgba(0, 0, 0, 0);
}
.vc_btn-primary:active,
a.vc_btn-primary:active,
button.vc_btn-primary:active,
.vc_btn-primary.active,
a.vc_btn-primary.active,
button.vc_btn-primary.active,
.open > .dropdown-toggle.vc_btn-primary,
.open > .dropdown-togglea.vc_btn-primary,
.open > .<API key>.vc_btn-primary {
background-image: none;
}
.vc_btn-primary .badge,
a.vc_btn-primary .badge,
button.vc_btn-primary .badge {
color: #00aef0;
background-color: #ffffff;
}
.vc_btn-success,
a.vc_btn-success,
button.vc_btn-success {
color: #ffffff;
background-color: #5cb85c;
border-color: transparent;
}
.vc_btn-success:hover,
a.vc_btn-success:hover,
button.vc_btn-success:hover,
.vc_btn-success:focus,
a.vc_btn-success:focus,
button.vc_btn-success:focus,
.vc_btn-success:active,
a.vc_btn-success:active,
button.vc_btn-success:active,
.vc_btn-success.active,
a.vc_btn-success.active,
button.vc_btn-success.active,
.open > .dropdown-toggle.vc_btn-success,
.open > .dropdown-togglea.vc_btn-success,
.open > .<API key>.vc_btn-success {
color: #ffffff;
background-color: #449d44;
border-color: rgba(0, 0, 0, 0);
}
.vc_btn-success:active,
a.vc_btn-success:active,
button.vc_btn-success:active,
.vc_btn-success.active,
a.vc_btn-success.active,
button.vc_btn-success.active,
.open > .dropdown-toggle.vc_btn-success,
.open > .dropdown-togglea.vc_btn-success,
.open > .<API key>.vc_btn-success {
background-image: none;
}
.vc_btn-success .badge,
a.vc_btn-success .badge,
button.vc_btn-success .badge {
color: #5cb85c;
background-color: #ffffff;
}
.vc_btn-info,
a.vc_btn-info,
button.vc_btn-info {
color: #ffffff;
background-color: #5bc0de;
border-color: transparent;
}
.vc_btn-info:hover,
a.vc_btn-info:hover,
button.vc_btn-info:hover,
.vc_btn-info:focus,
a.vc_btn-info:focus,
button.vc_btn-info:focus,
.vc_btn-info:active,
a.vc_btn-info:active,
button.vc_btn-info:active,
.vc_btn-info.active,
a.vc_btn-info.active,
button.vc_btn-info.active,
.open > .dropdown-toggle.vc_btn-info,
.open > .dropdown-togglea.vc_btn-info,
.open > .<API key>.vc_btn-info {
color: #ffffff;
background-color: #31b0d5;
border-color: rgba(0, 0, 0, 0);
}
.vc_btn-info:active,
a.vc_btn-info:active,
button.vc_btn-info:active,
.vc_btn-info.active,
a.vc_btn-info.active,
button.vc_btn-info.active,
.open > .dropdown-toggle.vc_btn-info,
.open > .dropdown-togglea.vc_btn-info,
.open > .<API key>.vc_btn-info {
background-image: none;
}
.vc_btn-info .badge,
a.vc_btn-info .badge,
button.vc_btn-info .badge {
color: #5bc0de;
background-color: #ffffff;
}
.vc_btn-warning,
a.vc_btn-warning,
button.vc_btn-warning {
color: #ffffff;
background-color: #f0ad4e;
border-color: transparent;
}
.vc_btn-warning:hover,
a.vc_btn-warning:hover,
button.vc_btn-warning:hover,
.vc_btn-warning:focus,
a.vc_btn-warning:focus,
button.vc_btn-warning:focus,
.vc_btn-warning:active,
a.vc_btn-warning:active,
button.vc_btn-warning:active,
.vc_btn-warning.active,
a.vc_btn-warning.active,
button.vc_btn-warning.active,
.open > .dropdown-toggle.vc_btn-warning,
.open > .dropdown-togglea.vc_btn-warning,
.open > .<API key>.vc_btn-warning {
color: #ffffff;
background-color: #ec971f;
border-color: rgba(0, 0, 0, 0);
}
.vc_btn-warning:active,
a.vc_btn-warning:active,
button.vc_btn-warning:active,
.vc_btn-warning.active,
a.vc_btn-warning.active,
button.vc_btn-warning.active,
.open > .dropdown-toggle.vc_btn-warning,
.open > .dropdown-togglea.vc_btn-warning,
.open > .<API key>.vc_btn-warning {
background-image: none;
}
.vc_btn-warning .badge,
a.vc_btn-warning .badge,
button.vc_btn-warning .badge {
color: #f0ad4e;
background-color: #ffffff;
}
.vc_btn-danger,
a.vc_btn-danger,
button.vc_btn-danger {
color: #ffffff;
background-color: #d9534f;
border-color: transparent;
}
.vc_btn-danger:hover,
a.vc_btn-danger:hover,
button.vc_btn-danger:hover,
.vc_btn-danger:focus,
a.vc_btn-danger:focus,
button.vc_btn-danger:focus,
.vc_btn-danger:active,
a.vc_btn-danger:active,
button.vc_btn-danger:active,
.vc_btn-danger.active,
a.vc_btn-danger.active,
button.vc_btn-danger.active,
.open > .dropdown-toggle.vc_btn-danger,
.open > .dropdown-togglea.vc_btn-danger,
.open > .<API key>.vc_btn-danger {
color: #ffffff;
background-color: #c9302c;
border-color: rgba(0, 0, 0, 0);
}
.vc_btn-danger:active,
a.vc_btn-danger:active,
button.vc_btn-danger:active,
.vc_btn-danger.active,
a.vc_btn-danger.active,
button.vc_btn-danger.active,
.open > .dropdown-toggle.vc_btn-danger,
.open > .dropdown-togglea.vc_btn-danger,
.open > .<API key>.vc_btn-danger {
background-image: none;
}
.vc_btn-danger .badge,
a.vc_btn-danger .badge,
button.vc_btn-danger .badge {
color: #d9534f;
background-color: #ffffff;
}
.vc_button-2-wrapper {
display: inline-block;
vertical-align: middle;
}
.vc_button-2-wrapper.<API key> {
display: block;
text-align: left;
}
.vc_button-2-wrapper.<API key> {
display: block;
text-align: right;
}
.vc_button-2-wrapper.<API key> {
display: block;
text-align: center;
}
i.icon {
display: inline-block;
width: 16px;
height: 16px;
line-height: 16px;
vertical-align: text-top;
margin-left: 5px;
}
.wpb_btn-large i.icon {
height: 19px;
margin-left: 9px;
}
.wpb_btn-small i.icon {
height: 15px;
}
.wpb_btn-mini i.icon {
display: none;
}
.wpb_address_book i.icon,
option.wpb_address_book {
background: url(../images/icons/address-book.png) no-repeat right center;
}
.wpb_alarm_clock i.icon,
option.wpb_alarm_clock {
background: url(../images/icons/alarm-clock.png) no-repeat right center;
}
.wpb_anchor i.icon,
option.wpb_anchor {
background: url(../images/icons/anchor.png) no-repeat right center;
}
.<API key> i.icon,
option.<API key> {
background: url(../images/icons/application-image.png) no-repeat right center;
}
.wpb_arrow i.icon,
option.wpb_arrow {
background: url(../images/icons/arrow.png) no-repeat right center;
}
.wpb_asterisk i.icon,
option.wpb_asterisk {
background: url(../images/icons/asterisk.png) no-repeat right center;
}
.wpb_hammer i.icon,
option.wpb_hammer {
background: url(../images/icons/auction-hammer.png) no-repeat right center;
}
.wpb_balloon i.icon,
option.wpb_balloon {
background: url(../images/icons/balloon.png) no-repeat right center;
}
.wpb_balloon_buzz i.icon,
option.wpb_balloon_buzz {
background: url(../images/icons/balloon-buzz.png) no-repeat right center;
}
.<API key> i.icon,
option.<API key> {
background: url(../images/icons/balloon-facebook.png) no-repeat right center;
}
.wpb_balloon_twitter i.icon,
option.wpb_balloon_twitter {
background: url(../images/icons/balloon-twitter.png) no-repeat right center;
}
.wpb_battery i.icon,
option.wpb_battery {
background: url(../images/icons/battery-full.png) no-repeat right center;
}
.wpb_binocular i.icon,
option.wpb_binocular {
background: url(../images/icons/binocular.png) no-repeat right center;
}
.wpb_document_excel i.icon,
option.wpb_document_excel {
background: url(../images/icons/blue-document-excel.png) no-repeat right center;
}
.wpb_document_image i.icon,
option.wpb_document_image {
background: url(../images/icons/blue-document-image.png) no-repeat right center;
}
.wpb_document_music i.icon,
option.wpb_document_music {
background: url(../images/icons/blue-document-music.png) no-repeat right center;
}
.wpb_document_office i.icon,
option.wpb_document_office {
background: url(../images/icons/<API key>.png) no-repeat right center;
}
.wpb_document_pdf i.icon,
option.wpb_document_pdf {
background: url(../images/icons/blue-document-pdf.png) no-repeat right center;
}
.<API key> i.icon,
option.<API key> {
background: url(../images/icons/<API key>.png) no-repeat right center;
}
.wpb_document_word i.icon,
option.wpb_document_word {
background: url(../images/icons/blue-document-word.png) no-repeat right center;
}
.wpb_bookmark i.icon,
option.wpb_bookmark {
background: url(../images/icons/bookmark.png) no-repeat right center;
}
.wpb_camcorder i.icon,
option.wpb_camcorder {
background: url(../images/icons/camcorder.png) no-repeat right center;
}
.wpb_camera i.icon,
option.wpb_camera {
background: url(../images/icons/camera.png) no-repeat right center;
}
.wpb_chart i.icon,
option.wpb_chart {
background: url(../images/icons/chart.png) no-repeat right center;
}
.wpb_chart_pie i.icon,
option.wpb_chart_pie {
background: url(../images/icons/chart-pie.png) no-repeat right center;
}
.wpb_clock i.icon,
option.wpb_clock {
background: url(../images/icons/clock.png) no-repeat right center;
}
.wpb_play i.icon,
option.wpb_play {
background: url(../images/icons/control.png) no-repeat right center;
}
.wpb_fire i.icon,
option.wpb_fire {
background: url(../images/icons/fire.png) no-repeat right center;
}
.wpb_heart i.icon,
option.wpb_heart {
background: url(../images/icons/heart.png) no-repeat right center;
}
.wpb_mail i.icon,
option.wpb_mail {
background: url(../images/icons/mail.png) no-repeat right center;
}
.wpb_shield i.icon,
option.wpb_shield {
background: url(../images/icons/plus-shield.png) no-repeat right center;
}
.wpb_video i.icon,
option.wpb_video {
background: url(../images/icons/video.png) no-repeat right center;
}
/** VC Modal block popup */
.vc_modal {
display: none;
overflow: auto;
overflow-y: hidden;
position: fixed;
top: 0 !important;
right: 0;
bottom: 0;
left: 0;
-<API key>: touch;
width: auto !important;
margin-left: 0 !important;
background-color: transparent !important;
z-index: 100002 !important;
}
.vc_modal.fade .vc_modal-dialog {
-webkit-transform: translate(0, -25%);
-ms-transform: translate(0, -25%);
-o-transform: translate(0, -25%);
transform: translate(0, -25%);
-webkit-transition: -webkit-transform 0.3s ease-out;
-moz-transition: -moz-transform 0.3s ease-out;
-o-transition: -o-transform 0.3s ease-out;
transition: transform 0.3s ease-out;
}
.vc_modal.in .vc_modal-dialog {
-webkit-transform: translate(0, 0);
-ms-transform: translate(0, 0);
-o-transform: translate(0, 0);
transform: translate(0, 0);
}
.vc_modal *,
.vc_modal {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
@media (min-width: 634px) {
.vc_modal-dialog {
width: 592px;
}
}
@media (min-width: 808px) {
.vc_modal-dialog {
width: 766px;
}
}
@media (min-width: 982px) {
.vc_modal-dialog {
width: 940px;
}
}
@media (min-width: 1156px) {
.vc_modal-dialog {
width: 1114px;
}
}
@media (min-width: 1330px) {
.vc_modal-dialog {
width: 1288px;
}
}
.vc_modal-content {
position: relative;
background-color: #ffffff;
-webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
background-clip: padding-box;
outline: 0;
-<API key>: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
border: 1px solid #dddddd;
}
.vc_modal-header {
<API key>: 1px;
<API key>: 1px;
background: #093459;
color: #eeeeee;
padding: 10px 15px;
}
.vc_modal-header .vc_icon {
width: 15px;
height: 18px;
display: block;
}
.vc_modal-header .vc_close {
margin-top: 2px;
float: right;
display: block;
}
.vc_modal-header .vc_close:focus {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.vc_modal-header .vc_close .vc_icon {
background: transparent url(../vc/fe/close_panel.png) center center;
}
.vc_modal-header .vc_minimize {
margin-top: 2px;
margin-right: 2px;
float: right;
display: block;
}
.vc_modal-header .vc_minimize .vc_icon {
background: transparent url(../vc/fe/modal_minimize.png) center center;
}
.vc_modal-header .vc_transparent {
margin-top: 2px;
margin-right: 8px;
float: right;
display: block;
}
.vc_modal-header .vc_transparent .vc_icon {
background: transparent url(../vc/fe/eye_ico.png) center center no-repeat;
}
.vc_modal-title {
margin: 0;
line-height: 1.42857143;
font-weight: normal;
font-size: 16px;
color: inherit;
cursor: default;
border: 0 !important;
}
.vc_modal-body {
position: relative;
padding: 20px;
overflow-y: auto;
}
.vc_modal-footer {
padding: 20px;
text-align: right;
border-top: 1px solid 0;
}
.vc_modal-footer .btn + .btn {
margin-left: 5px;
margin-bottom: 0;
}
.vc_modal-footer .btn-group .btn + .btn {
margin-left: -1px;
}
.vc_modal-footer .btn-block + .btn-block {
margin-left: 0;
}
.modal-open {
overflow: hidden;
}
.clousus {
z-index: 100001;
}
.modal-backdrop {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 100001;
background-color: #000000;
}
.modal-backdrop.fade {
opacity: 0;
filter: alpha(opacity=0);
}
.modal-backdrop.in {
opacity: 0.2;
filter: alpha(opacity=20);
}
.<API key> {
position: absolute;
top: -9999px;
width: 50px;
height: 50px;
overflow: scroll;
}
.vc_input-group {
position: relative;
display: table;
border-collapse: separate;
}
.vc_input-group .vc_form-control {
display: table-cell;
position: relative;
z-index: 2;
float: left;
width: 100%;
margin-bottom: 0;
}
.vc_input-group .vc_input-group-btn {
position: relative;
font-size: 0;
white-space: nowrap;
width: 1%;
vertical-align: middle;
display: table-cell;
}
.vc_panel {
margin-bottom: 20px;
background-color: #ffffff;
border: 1px solid transparent;
border-radius: 2px;
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
width: 600px;
position: fixed;
z-index: 100000;
top: 74px;
left: 50%;
height: auto !important;
min-height: 200px;
display: none;
border-color: #DDDDDD;
}
.vc_panel > .list-group {
margin-bottom: 0;
}
.vc_panel > .list-group .list-group-item {
border-width: 1px 0;
border-radius: 0;
}
.vc_panel > .list-group:first-child .list-group-item:first-child {
border-top: 0;
<API key>: 1px;
<API key>: 1px;
}
.vc_panel > .list-group:last-child .list-group-item:last-child {
border-bottom: 0;
<API key>: 1px;
<API key>: 1px;
}
.vc_panel > .table,
.vc_panel > .table-responsive > .table {
margin-bottom: 0;
}
.vc_panel > .table:first-child,
.vc_panel > .table-responsive:first-child > .table:first-child {
<API key>: 1px;
<API key>: 1px;
}
.vc_panel > .table:first-child > thead:first-child > tr:first-child td:first-child,
.vc_panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child,
.vc_panel > .table:first-child > tbody:first-child > tr:first-child td:first-child,
.vc_panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child,
.vc_panel > .table:first-child > thead:first-child > tr:first-child th:first-child,
.vc_panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child,
.vc_panel > .table:first-child > tbody:first-child > tr:first-child th:first-child,
.vc_panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child {
<API key>: 1px;
}
.vc_panel > .table:first-child > thead:first-child > tr:first-child td:last-child,
.vc_panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child,
.vc_panel > .table:first-child > tbody:first-child > tr:first-child td:last-child,
.vc_panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child,
.vc_panel > .table:first-child > thead:first-child > tr:first-child th:last-child,
.vc_panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child,
.vc_panel > .table:first-child > tbody:first-child > tr:first-child th:last-child,
.vc_panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child {
<API key>: 1px;
}
.vc_panel > .table:last-child,
.vc_panel > .table-responsive:last-child > .table:last-child {
<API key>: 1px;
<API key>: 1px;
}
.vc_panel > .table:last-child > tbody:last-child > tr:last-child td:first-child,
.vc_panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child,
.vc_panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child,
.vc_panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child,
.vc_panel > .table:last-child > tbody:last-child > tr:last-child th:first-child,
.vc_panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child,
.vc_panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child,
.vc_panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child {
<API key>: 1px;
}
.vc_panel > .table:last-child > tbody:last-child > tr:last-child td:last-child,
.vc_panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child,
.vc_panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child,
.vc_panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child,
.vc_panel > .table:last-child > tbody:last-child > tr:last-child th:last-child,
.vc_panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child,
.vc_panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child,
.vc_panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child {
<API key>: 1px;
}
.vc_panel > .panel-body + .table,
.vc_panel > .panel-body + .table-responsive {
border-top: 1px solid #dddddd;
}
.vc_panel > .table > tbody:first-child > tr:first-child th,
.vc_panel > .table > tbody:first-child > tr:first-child td {
border-top: 0;
}
.vc_panel > .table-bordered,
.vc_panel > .table-responsive > .table-bordered {
border: 0;
}
.vc_panel > .table-bordered > thead > tr > th:first-child,
.vc_panel > .table-responsive > .table-bordered > thead > tr > th:first-child,
.vc_panel > .table-bordered > tbody > tr > th:first-child,
.vc_panel > .table-responsive > .table-bordered > tbody > tr > th:first-child,
.vc_panel > .table-bordered > tfoot > tr > th:first-child,
.vc_panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child,
.vc_panel > .table-bordered > thead > tr > td:first-child,
.vc_panel > .table-responsive > .table-bordered > thead > tr > td:first-child,
.vc_panel > .table-bordered > tbody > tr > td:first-child,
.vc_panel > .table-responsive > .table-bordered > tbody > tr > td:first-child,
.vc_panel > .table-bordered > tfoot > tr > td:first-child,
.vc_panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child {
border-left: 0;
}
.vc_panel > .table-bordered > thead > tr > th:last-child,
.vc_panel > .table-responsive > .table-bordered > thead > tr > th:last-child,
.vc_panel > .table-bordered > tbody > tr > th:last-child,
.vc_panel > .table-responsive > .table-bordered > tbody > tr > th:last-child,
.vc_panel > .table-bordered > tfoot > tr > th:last-child,
.vc_panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child,
.vc_panel > .table-bordered > thead > tr > td:last-child,
.vc_panel > .table-responsive > .table-bordered > thead > tr > td:last-child,
.vc_panel > .table-bordered > tbody > tr > td:last-child,
.vc_panel > .table-responsive > .table-bordered > tbody > tr > td:last-child,
.vc_panel > .table-bordered > tfoot > tr > td:last-child,
.vc_panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child {
border-right: 0;
}
.vc_panel > .table-bordered > thead > tr:first-child > td,
.vc_panel > .table-responsive > .table-bordered > thead > tr:first-child > td,
.vc_panel > .table-bordered > tbody > tr:first-child > td,
.vc_panel > .table-responsive > .table-bordered > tbody > tr:first-child > td,
.vc_panel > .table-bordered > thead > tr:first-child > th,
.vc_panel > .table-responsive > .table-bordered > thead > tr:first-child > th,
.vc_panel > .table-bordered > tbody > tr:first-child > th,
.vc_panel > .table-responsive > .table-bordered > tbody > tr:first-child > th {
border-bottom: 0;
}
.vc_panel > .table-bordered > tbody > tr:last-child > td,
.vc_panel > .table-responsive > .table-bordered > tbody > tr:last-child > td,
.vc_panel > .table-bordered > tfoot > tr:last-child > td,
.vc_panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td,
.vc_panel > .table-bordered > tbody > tr:last-child > th,
.vc_panel > .table-responsive > .table-bordered > tbody > tr:last-child > th,
.vc_panel > .table-bordered > tfoot > tr:last-child > th,
.vc_panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th {
border-bottom: 0;
}
.vc_panel > .table-responsive {
border: 0;
margin-bottom: 0;
}
.vc_panel .panel-body {
padding: 0;
}
.vc_panel-body {
padding: 0;
overflow-y: auto;
overflow-x: hidden;
}
.vc_panel-body.vc_with-tabs {
margin-top: 50px;
}
.vc_panel-heading {
<API key>: 1px;
<API key>: 1px;
background: #093459;
color: #eeeeee;
padding: 10px 15px;
cursor: move;
}
.vc_panel-heading .vc_icon {
width: 15px;
height: 18px;
display: block;
}
.vc_panel-heading .vc_close {
margin-top: 2px;
float: right;
display: block;
}
.vc_panel-heading .vc_close:focus {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.vc_panel-heading .vc_close .vc_icon {
background: transparent url(../vc/fe/close_panel.png) center center;
}
.vc_panel-heading .vc_minimize {
margin-top: 2px;
margin-right: 2px;
float: right;
display: block;
}
.vc_panel-heading .vc_minimize .vc_icon {
background: transparent url(../vc/fe/modal_minimize.png) center center;
}
.vc_panel-heading .vc_transparent {
margin-top: 2px;
margin-right: 8px;
float: right;
display: block;
}
.vc_panel-heading .vc_transparent .vc_icon {
background: transparent url(../vc/fe/eye_ico.png) center center no-repeat;
}
.vc_panel-footer {
padding: 10px 15px;
background-color: #e6e6e6;
border-top: 1px solid #dddddd;
<API key>: 1px;
<API key>: 1px;
}
.vc_panel-footer .vc_btn-default:hover {
border-color: #CCC;
}
.vc_panel-footer .vc_btn-default:focus {
background-color: #FFF;
}
.vc_panel-title {
margin-top: 0;
margin-bottom: 0;
font-weight: normal;
font-size: 16px;
color: inherit;
border: 0 !important;
}
.vc_panel-title > a {
color: inherit;
}
.vc_properties-list {
padding: 10px 15px;
}
.vc_properties-list input,
.vc_properties-list select,
.vc_properties-list textarea {
width: 100%;
padding: 8px 6px;
margin: 0;
}
.vc_properties-list input,
.vc_properties-list select {
font-size: 1em;
}
.vc_properties-list select {
height: auto;
}
.vc_properties-list input[type="checkbox"] {
width: auto;
margin-left: 5px;
margin-right: 2px;
display: inline-block;
}
.vc_properties-list input[type="checkbox"]:nth-child(2) {
margin-left: 0;
}
.vc_panel-tabs > .<API key> {
margin: 38px 0 10px;
padding-left: 10px;
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
background-color: #e6e6e6;
}
.vc_panel-tabs > .<API key> .<API key> {
display: list-item;
list-style: none;
float: left;
position: relative;
top: 0;
margin: 9px 2px 0 0;
border: 1px solid transparent;
<API key>: 4px;
<API key>: 4px;
border-bottom-width: 0;
padding: 0;
white-space: nowrap;
font-weight: normal;
transition: background-color 0.5s ease-out;
color: #949494;
}
.vc_panel-tabs > .<API key> .<API key> .vc_edit-form-link {
color: #949494;
float: left;
padding: 11px 15px;
text-decoration: none;
outline: none;
cursor: pointer;
font-size: 12px;
}
.vc_panel-tabs > .<API key> .<API key> .vc_edit-form-link:focus {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.vc_panel-tabs > .<API key> .<API key>.vc_active {
background: #ffffff;
font-weight: normal;
color: #595959;
}
.vc_panel-tabs > .<API key> .<API key>.vc_active a {
color: #595959;
}
.vc_panel-tabs > .<API key> .<API key>.<API key> {
background-color: #d7d7d7;
}
.vc_panel-tabs > .<API key> > :first-child {
margin-left: 6px;
}
.vc_panel-tabs > .vc_edit-form-tab {
display: none;
}
.vc_panel-tabs > .vc_edit-form-tab.vc_active {
display: block;
}
.vc_panel-tabs > .vc_panel-tabs-menu {
margin: 38px 0 10px;
padding-left: 10px;
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
background-color: #e6e6e6;
}
.vc_panel-tabs > .vc_panel-tabs-menu .<API key> {
display: list-item;
list-style: none;
float: left;
position: relative;
top: 0;
margin: 9px 2px 0 0;
border: 1px solid transparent;
<API key>: 4px;
<API key>: 4px;
border-bottom-width: 0;
padding: 0;
white-space: nowrap;
font-weight: normal;
transition: background-color 0.5s ease-out;
color: #949494;
}
.vc_panel-tabs > .vc_panel-tabs-menu .<API key> .vc_panel-tabs-link {
color: #949494;
float: left;
padding: 11px 15px;
text-decoration: none;
outline: none;
cursor: pointer;
font-size: 12px;
}
.vc_panel-tabs > .vc_panel-tabs-menu .<API key> .vc_panel-tabs-link:focus {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.vc_panel-tabs > .vc_panel-tabs-menu .<API key>.vc_active {
background: #ffffff;
font-weight: normal;
color: #595959;
}
.vc_panel-tabs > .vc_panel-tabs-menu .<API key>.vc_active a {
color: #595959;
}
.vc_panel-tabs > .vc_panel-tabs-menu .<API key>.<API key> {
background-color: #d7d7d7;
}
.vc_panel-tabs > .vc_panel-tabs-menu > :first-child {
margin-left: 6px;
}
.vc_panel-tabs > .vc_panel-tab {
display: none;
padding: 10px 15px;
}
.vc_panel-tabs > .vc_panel-tab.vc_active {
display: block;
}
.vc_panel-opacity {
height: 40px !important;
overflow: hidden !important;
min-height: 0;
}
.vc_description {
color: #999999;
display: block;
font-style: italic;
line-height: 20px;
margin-top: 8px;
clear: both;
}
.<API key> > span {
font-size: 20px;
}
.vc_message {
display: none;
position: fixed;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 10px;
text-align: center;
top: 56px;
left: 0;
width: 100%;
background: #CCCCCC;
color: #000000;
}
.vc_message.success,
.vc_message.type-success {
background: #d8edc7;
border-bottom: 1px solid #cae1b7;
color: #8A987E;
}
.vc_message.error,
.vc_message.type-error {
background: #EBE4C7;
border-bottom: 1px solid #DDD2B3;
color: #938D7C;
}
.vc_panel-message {
display: none;
z-index: 100000;
position: absolute;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 10px;
text-align: center;
top: 38px;
left: 0;
width: 100%;
background: #CCCCCC;
color: #000000;
}
.vc_panel-message.type-success {
background: #d8edc7;
border-bottom: 1px solid #cae1b7;
color: #8A987E;
}
.vc_panel-message.type-error {
background: #EBE4C7;
border-bottom: 1px solid #DDD2B3;
color: #938D7C;
}
#vc_preloader {
position: fixed;
top: 0;
left: 0;
z-index: 1031;
width: 100%;
height: 100%;
background: #ffffff url(../vc/fe/preloader.gif) center center no-repeat;
opacity: 0.95;
filter: alpha(opacity=95);
}
.vc_spinner {
background: #ffffff url(../vc/fe/preloader.gif) center center no-repeat;
display: block;
margin: 0 auto;
top: 20px;
width: 80px;
height: 80px;
}
.vc_pull-right {
float: right !important;
}
.vc_pull-left {
float: left !important;
}
.vc_clearfix:before,
.vc_clearfix:after {
content: " ";
display: table;
}
.vc_clearfix:after {
clear: both;
}
.vc_clearfix:before,
.vc_clearfix:after {
content: " ";
display: table;
}
.vc_clearfix:after {
clear: both;
}
.vc_el-clearfix {
clear: both;
}
@media (max-width: 767px) {
.vc_el-clearfix-xs {
clear: both;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.vc_el-clearfix-sm {
clear: both;
}
}
@media (min-width: 992px) and (max-width: 1199px) {
.vc_el-clearfix-md {
clear: both;
}
}
@media (min-width: 1200px) {
.vc_el-clearfix-lg {
clear: both;
}
}
.vc_visible {
display: block;
}
.vc_table {
width: 100%;
margin-bottom: 20px;
border-collapse: collapse;
}
.vc_table > thead > tr > th,
.vc_table > tbody > tr > th,
.vc_table > tfoot > tr > th,
.vc_table > thead > tr > td,
.vc_table > tbody > tr > td,
.vc_table > tfoot > tr > td {
padding: 8px;
line-height: 1.42857143;
vertical-align: top;
border-top: 1px solid #dddddd;
}
.vc_table > thead > tr > th {
vertical-align: bottom;
border-bottom: 2px solid #dddddd;
}
.vc_table > caption + thead > tr:first-child > th,
.vc_table > colgroup + thead > tr:first-child > th,
.vc_table > thead:first-child > tr:first-child > th,
.vc_table > caption + thead > tr:first-child > td,
.vc_table > colgroup + thead > tr:first-child > td,
.vc_table > thead:first-child > tr:first-child > td {
border-top: 0;
}
.vc_table > tbody + tbody {
border-top: 2px solid #dddddd;
}
.vc_table .table {
background-color: #ffffff;
}
.vc_table-bordered {
border: 1px solid #dddddd;
}
.vc_table-bordered > thead > tr > th,
.vc_table-bordered > tbody > tr > th,
.vc_table-bordered > tfoot > tr > th,
.vc_table-bordered > thead > tr > td,
.vc_table-bordered > tbody > tr > td,
.vc_table-bordered > tfoot > tr > td {
border: 1px solid #dddddd;
}
.vc_table-bordered > thead > tr > th,
.vc_table-bordered > thead > tr > td {
border-bottom-width: 2px;
}
.vc_badge {
display: inline-block;
min-width: 10px;
padding: 3px 7px;
font-size: 12px;
font-weight: bold;
color: #ffffff;
line-height: 1;
vertical-align: baseline;
white-space: nowrap;
text-align: center;
background-color: #999999;
border-radius: 10px;
}
.vc_badge:empty {
display: none;
}
.btn .vc_badge {
position: relative;
top: -1px;
}
.btn-xs .vc_badge {
top: 0;
padding: 1px 5px;
}
a.list-group-item.active > .vc_badge,
.nav-pills > .active > a > .vc_badge {
color: #428bca;
background-color: #ffffff;
}
.nav-pills > li > a > .vc_badge {
margin-left: 3px;
}
.vc_nav {
margin-bottom: 0;
padding-left: 0;
list-style: none;
}
.vc_nav > li {
position: relative;
display: block;
}
.vc_nav > li > a {
position: relative;
display: block;
padding: 10px 15px;
}
.vc_nav > li > a:hover,
.vc_nav > li > a:focus {
text-decoration: none;
background-color: #eeeeee;
}
.vc_nav > li.disabled > a {
color: #999999;
}
.vc_nav > li.disabled > a:hover,
.vc_nav > li.disabled > a:focus {
color: #999999;
text-decoration: none;
background-color: transparent;
cursor: not-allowed;
}
.vc_nav .open > a,
.vc_nav .open > a:hover,
.vc_nav .open > a:focus {
background-color: #eeeeee;
border-color: #428bca;
}
.vc_nav .nav-divider {
height: 1px;
margin: 9px 0;
overflow: hidden;
background-color: #e5e5e5;
}
.vc_nav > li > a > img {
max-width: none;
}
.vc_inappropriate {
display: none !important;
}
.vc_off {
opacity: 0.7;
filter: alpha(opacity=70);
}
.vc_colored-dropdown .blue {
background-color: #5472d2 !important;
color: #ffffff !important;
}
.vc_colored-dropdown .turquoise {
background-color: #00c1cf !important;
color: #ffffff !important;
}
.vc_colored-dropdown .pink {
background-color: #fe6c61 !important;
color: #ffffff !important;
}
.vc_colored-dropdown .violet {
background-color: #8d6dc4 !important;
color: #ffffff !important;
}
.vc_colored-dropdown .peacoc {
background-color: #4cadc9 !important;
color: #ffffff !important;
}
.vc_colored-dropdown .chino {
background-color: #cec2ab !important;
color: #ffffff !important;
}
.vc_colored-dropdown .mulled_wine {
background-color: #50485b !important;
color: #ffffff !important;
}
.vc_colored-dropdown .vista_blue {
background-color: #75d69c !important;
color: #ffffff !important;
}
.vc_colored-dropdown .black {
background-color: #2a2a2a !important;
color: #ffffff !important;
}
.vc_colored-dropdown .grey {
background-color: #ebebeb !important;
color: #666666 !important;
}
.vc_colored-dropdown .orange {
background-color: #f7be68 !important;
color: #ffffff !important;
}
.vc_colored-dropdown .sky {
background-color: #5aa1e3 !important;
color: #ffffff !important;
}
.vc_colored-dropdown .green {
background-color: #6dab3c !important;
color: #ffffff !important;
}
.vc_colored-dropdown .juicy_pink {
background-color: #f4524d !important;
color: #ffffff !important;
}
.vc_colored-dropdown .sandy_brown {
background-color: #f79468 !important;
color: #ffffff !important;
}
.vc_colored-dropdown .purple {
background-color: #b97ebb !important;
color: #ffffff !important;
}
.vc_colored-dropdown .white {
background-color: #ffffff !important;
color: #666666 !important;
}
.vc_element-icon {
background-image: url('../vc/<API key>.png');
background-position: 0 0;
background-repeat: no-repeat;
display: block;
margin: 0;
width: 32px;
height: 32px;
}
.vc_element-icon[data-is-container="true"] {
background-position: 0px -1216px;
}
.<API key> {
background-position: 0 -32px;
}
.<API key> {
background-position: 0 -64px;
}
.<API key> {
background-position: 0 -96px;
}
.<API key> {
background-position: 0 -128px;
}
.<API key> {
background-position: 0 -160px;
}
.<API key> {
background-position: 0 -192px;
}
.<API key> {
background-position: 0 -224px;
}
.<API key> {
background-position: 0 -256px;
}
.<API key> {
background-position: 0 -288px;
}
.icon-wpb-map-pin {
background-position: 0 -320px;
}
.icon-wpb-slideshow {
background-position: 0 -352px;
}
.<API key> {
background-position: 0 -384px;
}
.<API key>,
.<API key>[data-is-container="true"] {
background-position: 0 -416px;
}
.icon-wpb-ui-button {
background-position: 0 -448px;
}
.<API key> {
background-position: 0 -480px;
}
.<API key> {
background-position: 0 -512px;
}
.<API key>,
.<API key>[data-is-container="true"] {
background-position: 0 -544px;
}
.<API key>,
.<API key>[data-is-container="true"] {
background-position: 0 -576px;
}
.icon-wpb-pinterest {
background-position: 0 -608px;
}
.icon-wpb-tweetme {
background-position: 0 -128px;
}
.<API key> {
background-position: 0 -672px;
}
.<API key> {
background-position: 0 -704px;
}
.icon-wpb-raw-html {
background-position: 0 -736px;
}
.<API key> {
background-position: 0 -768px;
}
.icon-wpb-flickr {
background-position: 0 -800px;
}
.icon-wpb-graph {
background-position: 0 -960px;
}
.icon-wpb-wp {
background-position: 0 -992px;
}
.icon-wpb-vc_pie {
background-position: 0 -1024px;
}
.<API key> {
background-position: 0 -1056px;
}
.<API key> {
background-position: 0 -1088px;
}
.icon-wpb-row,
.icon-wpb-row[data-is-container="true"] {
background-position: 0 -1120px;
}
.<API key> {
background-position: 0 -1152px;
}
.icon-wpb-atm {
background-position: 0 -640px;
}
.<API key> {
background-position: 0 -1184px;
}
.<API key> {
background-position: 0 -1248px;
}
.icon-wpb-ninjaforms {
background-position: 0 -1280px;
}
.icon-wpb-vc_icon {
background-position: 0 -1312px;
}
.<API key> {
background-position: 0 -1344px;
}
.<API key> {
background-position: 0 -1376px;
}
.vc_icon-acf {
background-position: 0 -1408px;
}
.<API key> {
background-position: 0 -1440px;
}
.<API key> {
background-position: 0 -1472px;
}
.<API key> {
background-position: 0 -1504px;
}
.<API key> {
background-position: 0 -1536px;
}
.<API key> {
background-position: 0 -1568px;
}
.<API key> {
background-position: 0 -1600px;
}
.<API key> .vc_modal-dialog {
margin: 34px auto 0;
}
.<API key> .vc_modal-dialog .vc_modal-body {
height: auto;
overflow-y: auto;
}
.<API key> .vc_modal-dialog .vc_modal-body .<API key> {
margin: 0;
}
.<API key> .vc_modal-dialog .vc_modal-body .<API key> .isotope-filter *:first-child {
margin-left: 1px;
}
.<API key> .vc_modal-dialog .vc_modal-body .<API key> .isotope-filter li {
display: inline-block;
margin-left: 10px;
}
.<API key> .vc_modal-dialog .vc_modal-body .<API key> .isotope-filter li.active a {
border-bottom: 0 none;
color: #000000;
}
.<API key> .vc_modal-dialog .vc_modal-body .<API key> .isotope-filter li a {
border-bottom: 1px dotted;
text-decoration: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.<API key> .vc_modal-dialog .vc_modal-body .<API key> .isotope-filter li a:hover {
text-decoration: none;
}
.<API key> .vc_modal-dialog .vc_modal-body .<API key> .isotope-filter li a:focus {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.<API key> .wpb-content-layouts {
padding: 0;
margin: 0;
}
.<API key> .wpb-content-layouts li {
background: none repeat scroll 0 0 #F5F5F5;
border: 1px solid #faf9f9;
margin: 0 0 2px 2px;
width: 174px;
display: none;
overflow: hidden;
position: relative;
float: left;
height: 70px;
list-style: none;
-webkit-transition: border-color 0.2s;
-o-transition: border-color 0.2s;
transition: border-color 0.2s;
}
.<API key> .wpb-content-layouts li:hover {
border-color: #00aef0;
}
.<API key> .wpb-content-layouts li .vc_el-container {
display: table;
height: 69px;
width: 100%;
}
.<API key> .wpb-content-layouts a {
outline: none;
display: table-cell;
line-height: 14px;
padding: 2px 4px 2px 47px;
vertical-align: middle;
white-space: normal;
text-decoration: none;
font-weight: bold;
}
.<API key> .wpb-content-layouts a .<API key> {
display: block;
position: relative;
background-color: transparent;
top: auto;
left: auto;
width: auto;
height: auto;
font-size: 11px;
font-style: normal;
font-weight: normal;
margin-top: 3px;
color: #999999;
}
.<API key> .wpb-content-layouts .vc_visible {
display: block;
}
.<API key> .wpb-content-layouts .vc_inappropriate {
display: none !important;
}
.<API key> .vc_element-icon {
position: absolute;
top: 20px;
left: 8px;
}
.<API key> {
position: absolute;
padding: 4px 3px 3px 30px;
top: 9px;
right: 44px;
z-index: 1;
width: 190px;
font-size: 12px;
border: medium none;
background: url("../vc/search.png") no-repeat scroll 9px 6px #ffffff;
}
.vc_panel.vc_templates-panel {
width: 600px;
}
.vc_panel.vc_templates-panel .vc_input-group .vc_form-control.<API key> {
width: 99%;
}
.vc_panel.vc_templates-panel .vc_panel-body {
padding-bottom: 20px;
}
.vc_panel.vc_templates-panel .vc_panel-body h3 {
font-size: 14px;
margin-bottom: 0;
}
.vc_panel.vc_templates-panel .vc_template .vc_template-icon {
cursor: pointer;
text-align: center;
padding-left: 4px;
padding-right: 2px;
}
.vc_panel.vc_templates-panel .vc_template .vc_template-icon .vc_icon {
background-image: url("../vc/fe/controls.png");
background-position: -16px -64px;
background-repeat: no-repeat;
display: inline-block;
height: 16px;
width: 16px;
line-height: 16px;
margin: 0;
vertical-align: top;
}
.vc_panel.vc_templates-panel .vc_template .vc_template-icon.<API key> .vc_icon {
background-position: -16px -64px;
}
.vc_panel.vc_templates-panel .vc_template .vc_template-icon:hover {
opacity: 0.7;
filter: alpha(opacity=70);
}
.vc_panel.vc_templates-panel .vc_template .vc_template-icon:last-child {
padding-right: 10px;
}
.vc_panel.vc_templates-panel .<API key>,
.vc_panel.vc_templates-panel .<API key>,
.vc_panel.vc_templates-panel .<API key> {
display: block;
list-style-type: none;
margin: 0;
padding: 0;
margin-left: -1px;
margin-right: -1px;
}
.vc_panel.vc_templates-panel .<API key> .vc_template,
.vc_panel.vc_templates-panel .<API key> .vc_template,
.vc_panel.vc_templates-panel .<API key> .vc_template {
padding: 0;
margin: 0;
}
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper,
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper,
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper {
border: 1px solid #F5F5F5;
border-radius: 2px;
background: #F5F5F5;
margin: 1px;
padding: 0;
}
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key>,
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key>,
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key>,
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key>,
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key>,
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key> {
padding-left: 10px;
padding-bottom: 10px;
padding-top: 10px;
padding-right: 10px;
cursor: pointer;
text-decoration: none;
font-weight: bold;
}
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key>:hover,
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key>:hover,
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key>:hover,
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key>:hover,
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key>:hover,
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key>:hover {
text-decoration: none;
}
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key>:focus,
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key>:focus,
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key>:focus,
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key>:focus,
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key>:focus,
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key>:focus {
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key>,
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key>,
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key> {
width: 95%;
}
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key> > span,
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key> > span,
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key> > span {
display: block;
height: 3em;
overflow: hidden;
position: relative;
}
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper:hover,
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper:hover,
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper:hover {
border: 1px solid #00aef0;
}
.vc_panel.vc_templates-panel .<API key> .vc_template {
display: inline-block;
float: none;
vertical-align: top;
}
.vc_panel.vc_templates-panel .<API key> .<API key>,
.vc_panel.vc_templates-panel .<API key> .<API key> {
display: inline-block;
}
.vc_panel.vc_templates-panel .<API key> .vc_template {
text-align: center;
float: none;
vertical-align: top;
display: inline-block;
}
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key>,
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key> {
display: block;
}
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key> .vc_templates-image,
.vc_panel.vc_templates-panel .<API key> .vc_template .vc_template-wrapper .<API key> .vc_templates-image {
margin-top: 10px;
margin-bottom: 10px;
}
@media (max-width: 767px) {
.vc_panel.vc_templates-panel {
width: 400px !important;
}
.vc_panel.vc_templates-panel .<API key> .vc_template {
width: 50%;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.vc_panel.vc_templates-panel {
width: 668px !important;
}
.vc_panel.vc_templates-panel .<API key> .vc_template {
width: 50%;
}
}
@media (min-width: 992px) and (max-width: 1199px) {
.vc_panel.vc_templates-panel {
width: 892px !important;
}
}
@media (min-width: 1200px) {
.vc_panel.vc_templates-panel {
width: 1100px !important;
}
}
.<API key> {
position: relative;
}
.<API key> .vc_notice-close {
position: absolute;
top: 2px;
right: 6px;
cursor: pointer;
font-weight: bold;
}
.vc_navbar {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
min-height: 55px;
margin: 0;
border: 0;
background-color: #fcfcfc;
border-bottom: none;
}
.vc_navbar * {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.vc_navbar .vc_navbar-collapse {
padding: 0;
}
.vc_navbar .vc_navbar-nav {
display: block;
margin: 0;
}
.vc_navbar .vc_navbar-nav > li {
float: left;
margin: 0;
border-left: 1px solid #f5f5f5;
height: 56px;
}
.vc_navbar .vc_navbar-brand {
float: left;
padding: 17.5px 15px;
font-size: 18px;
line-height: 20px;
height: 55px;
font-size: 0;
background: transparent url(../vc/fe/visual_composer_32.png) center center no-repeat;
display: block;
width: 42px;
height: 42px;
padding: 27px 30px 27px 35px;
}
.vc_navbar .vc_navbar-brand:hover,
.vc_navbar .vc_navbar-brand:focus {
text-decoration: none;
}
@media (min-width: 768px) {
.navbar > .container .vc_navbar .vc_navbar-brand,
.navbar > .container-fluid .vc_navbar .vc_navbar-brand {
margin-left: -15px;
}
}
.vc_navbar .vc_navbar-brand.vc_ajax-loading {
background-image: url('../vc/<API key>.gif');
}
.vc_navbar .vc_last {
padding-right: 25px;
}
.vc_navbar .vc_right-space {
padding-right: 5px;
}
.vc_navbar .vc_icon-btn {
display: block;
width: 60px;
height: 55px;
padding: 28px 30px;
cursor: pointer;
outline: 0;
background: transparent url('../vc/navbar_controls.png') -60px 0;
}
.vc_navbar .vc_icon-btn:hover {
background-color: #f5f5f5;
}
.vc_navbar .vc_icon-btn:focus {
background-color: transparent;
}
.vc_navbar .vc_open > a,
.vc_navbar .vc_open > a:focus {
background-color: #fcfcfc;
}
.vc_navbar .<API key> {
margin-right: 2px;
}
.vc_navbar .vc_btn-save {
margin-left: 2px;
}
.vc_navbar .vc_btn-save-draft {
margin-right: 2px;
}
.vc_navbar .vc_back-button {
background-position: -60px -165px;
}
.vc_navbar .vc_templates-button {
background-position: -60px -55px;
}
.vc_navbar .vc_post-settings {
position: relative;
background-position: -60px -110px;
}
.vc_navbar .vc_badge-custom-css {
display: block;
background-color: #fcb714;
position: absolute;
top: 9px;
left: 31px;
font-size: 9px;
font-weight: normal;
border-radius: 4px;
padding: 2px 3px;
}
.vc_navbar .vc_save-backend {
display: none;
}
.vc_navbar .vc_save-backend .vc_control-preview {
margin-right: 0;
}
.vc_navbar .vc_save-backend .vc_control-save {
margin-left: 5px;
}
.vc_navbar .vc_dropdown {
position: relative;
}
.vc_navbar .vc_dropdown .vc_dropdown-toggle {
cursor: default;
display: block;
width: 68px;
height: 56px;
line-height: 16px;
padding: 19px;
}
.vc_navbar .vc_dropdown .vc_dropdown-toggle .vc_icon {
display: inline-block;
vertical-align: middle;
width: 20px;
height: 16px;
background-color: transparent;
background-position: left center;
background-repeat: no-repeat;
}
.vc_navbar .vc_dropdown .vc_dropdown-toggle .vc_caret {
display: inline-block;
width: 0;
height: 0;
margin-left: 2px;
border-top: 4px solid;
border-right: 4px solid transparent;
border-left: 4px solid transparent;
vertical-align: middle;
}
.vc_navbar .vc_dropdown .vc_dropdown-list {
display: none;
position: absolute;
z-index: 1000;
top: 55px;
left: -1px;
background: #0B273E;
border: 1px solid #1e5072;
border-width: 0 1px 1px 1px;
padding-top: 1px;
<API key>: 3px;
<API key>: 3px;
}
.vc_navbar .vc_dropdown .vc_dropdown-list > li {
margin: 0;
}
.vc_navbar .vc_dropdown .vc_dropdown-list a {
display: block;
background-color: transparent;
background-position: center center;
background-repeat: no-repeat;
width: 68px;
height: 37px;
}
.vc_navbar .vc_dropdown .vc_dropdown-list a:hover {
background-color: #124979;
}
.vc_navbar .vc_dropdown .vc_dropdown-list a.active {
background-color: #00aef0;
}
.vc_navbar .vc_dropdown:hover .vc_dropdown-toggle {
background-color: #0B273E;
}
.vc_navbar .vc_dropdown:hover .vc_dropdown-list {
display: block;
}
.vc_navbar .vc_dropdown .default {
background-image: url(../vc/fe/screen_sizes/laptop.png);
}
.vc_navbar .vc_dropdown .landscape-tablets {
background-image: url(../vc/fe/screen_sizes/ipad_h.png);
}
.vc_navbar .vc_dropdown .portrait-tablets {
background-image: url(../vc/fe/screen_sizes/ipad_v.png);
}
.vc_navbar .vc_dropdown .<API key> {
background-image: url(../vc/fe/screen_sizes/iphone_h.png);
}
.vc_navbar .vc_dropdown .<API key> {
background-image: url(../vc/fe/screen_sizes/iphone_v.png);
}
.vc_navbar-btn {
margin-top: 10.5px;
margin-bottom: 10.5px;
margin-left: 21px;
margin-right: 21px;
}
.vc_navbar-btn.vc_btn-sm {
margin-top: 12.5px;
margin-bottom: 12.5px;
}
.vc_navbar-btn.vc_btn-xs {
margin-top: 16.5px;
margin-bottom: 16.5px;
}
.vc_subnav-fixed {
position: fixed;
top: 32px;
left: 0;
z-index: 9998;
width: 100%;
padding-left: 160px;
}
.vc_subnav-fixed .vc_save-backend {
display: block;
}
@media screen and (max-width: 768px) {
.vc_navbar li,
.navbar-header {
display: none;
}
.vc_navbar li.vc_show-mobile {
display: block;
float: left;
}
.vc_navbar-nav {
float: left;
margin: 0;
}
.vc_navbar-nav.navbar-right {
float: right;
}
.vc_navbar-header {
float: left;
}
}
.<API key> {
border-right: 1px solid #f5f5f5;
}
.vc_dropdown-menu {
background-color: #000000;
}
.vc_navbar-header {
float: left;
}
@media (min-width: 768px) {
.vc_navbar-header {
float: left;
}
}
.vc_navbar-collapse {
overflow-x: visible;
padding-right: 15px;
padding-left: 15px;
border-top: 1px solid transparent;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
-<API key>: touch;
}
.vc_navbar-collapse.in {
overflow-y: auto;
}
@media (min-width: 768px) {
.vc_navbar-collapse {
width: auto;
border-top: 0;
box-shadow: none;
}
.vc_navbar-collapse.collapse {
display: block !important;
height: auto !important;
padding-bottom: 0;
overflow: visible !important;
}
.vc_navbar-collapse.in {
overflow-y: visible;
}
.navbar-fixed-top .vc_navbar-collapse,
.navbar-static-top .vc_navbar-collapse,
.navbar-fixed-bottom .vc_navbar-collapse {
padding-left: 0;
padding-right: 0;
}
}
.vc_select-navbar {
margin: 12.5px 21px;
}
.vc_welcome {
display: block;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
text-align: center;
margin: 14px;
border: 1px dashed #ebebeb;
border: 1px dashed rgba(125, 125, 125, 0.4);
font-family: "Open Sans", Helvetica, sans-serif;
}
.vc_welcome a {
transition-property: none;
}
.vc_welcome .icon {
margin-top: 36px;
margin-bottom: 16px;
display: inline-block;
background: transparent url(../vc/logo/48x48.png) center center no-repeat;
width: 48px;
height: 48px;
}
.vc_welcome h5 {
margin: 0;
padding: 0;
font-weight: normal;
font-size: 22px;
line-height: 33px;
border-bottom: 0;
text-transform: none;
letter-spacing: 1px;
}
.vc_welcome h3 {
margin: 0;
padding: 0;
font-size: 24px;
line-height: 26px;
border-bottom: 0;
}
.vc_welcome .vc_buttons {
margin-top: 20px;
padding: 20px;
}
.vc_welcome .<API key> {
margin-right: 15px;
background-image: url(../vc/fe/add_element.png);
background-position: 14px center;
background-repeat: no-repeat;
font-size: 14px;
border: medium none !important;
padding-left: 52px;
}
.vc_welcome .<API key> {
margin-left: 15px;
background-image: url(../vc/fe/add_text_block.gif);
background-position: 20px center;
background-repeat: no-repeat;
padding-left: 52px;
font-size: 14px;
border: medium none !important;
}
.vc_welcome .<API key> {
width: 39px;
height: 38px;
background-image: url(../vc/fe/empty_row_sprite.png);
background-position: top center;
background-repeat: no-repeat;
cursor: pointer;
border: none !important;
}
.vc_welcome .<API key>:hover {
background-position: bottom center;
}
.vc_welcome.vc_not-empty {
border: none;
}
.vc_welcome.vc_not-empty h5,
.vc_welcome.vc_not-empty h3,
.vc_welcome.vc_not-empty .icon,
.vc_welcome.vc_not-empty .<API key>,
.vc_welcome.vc_not-empty .<API key> {
display: none;
}
.vc_welcome.vc_not-empty .vc_buttons {
padding: 12px 10px 5px 10px;
border: 1px dashed #EBEBEB;
border: 1px dashed rgba(125, 125, 125, 0.4);
}
.vc_welcome.vc_not-empty .vc_buttons .<API key>,
.vc_welcome.vc_not-empty .vc_buttons .<API key> {
display: none;
}
.vc_welcome.vc_not-empty .vc_buttons .<API key> {
display: inline-block;
}
.vc_welcome .vc_separator {
display: table;
}
.vc_welcome .vc_separator h4 {
line-height: 1em;
font-size: 100%;
display: table-cell;
white-space: pre;
}
.vc_welcome .vc_separator h4 .normal {
font-size: 12px;
font-weight: normal;
}
.vc_welcome .vc_separator.<API key> h4 {
padding: 0 0.8em;
}
.vc_welcome .vc_separator.<API key> h4 {
padding: 0 0.8em 0 0;
}
.vc_welcome .vc_separator.<API key> .vc_sep_holder {
width: 100%;
}
.vc_welcome .vc_separator.<API key> .vc_sep_holder.vc_sep_holder_l {
display: none;
}
.vc_welcome .vc_separator.<API key> h4 {
padding: 0 0 0 0.8em;
margin: 0 !important;
}
.vc_welcome .vc_separator.<API key> .vc_sep_holder {
width: 100%;
}
.vc_welcome .vc_separator.<API key> .vc_sep_holder.vc_sep_holder_r {
display: none;
}
.vc_welcome .vc_separator .vc_sep_holder {
display: table-cell;
height: 1px;
position: relative;
vertical-align: middle;
width: 50%;
}
.vc_welcome .vc_separator .vc_sep_holder .vc_sep_line {
height: 1px;
border-top: 1px solid #ebebeb;
display: block;
position: relative;
top: 1px;
width: 100%;
}
.vc_welcome .vc_separator.vc_sep_double {
height: 3px;
}
.vc_welcome .vc_separator.vc_sep_double .vc_sep_line {
border-bottom: 1px solid #ebebeb;
border-top: 1px solid #ebebeb;
height: 3px;
}
.vc_welcome .vc_separator.vc_sep_dashed .vc_sep_line {
border-top-style: dashed;
}
.vc_welcome .vc_separator.vc_sep_dotted .vc_sep_line {
border-top-style: dotted;
}
.vc_welcome .vc_separator.<API key> .vc_sep_holder_l {
width: 100%;
}
.vc_welcome .vc_separator.<API key> .vc_sep_holder_r {
display: none;
}
.vc_welcome .vc_separator.<API key> .vc_sep_holder .vc_sep_line {
border-top-width: 1px;
}
.vc_welcome .vc_separator.<API key>.vc_sep_double .vc_sep_holder .vc_sep_line {
border-bottom-width: 1px;
top: 0px;
}
.vc_welcome .vc_separator.<API key> .vc_sep_holder .vc_sep_line {
border-top-width: 2px;
}
.vc_welcome .vc_separator.<API key>.vc_sep_double .vc_sep_holder .vc_sep_line {
border-bottom-width: 2px;
top: -1px;
}
.vc_welcome .vc_separator.<API key> .vc_sep_holder .vc_sep_line {
border-top-width: 3px;
}
.vc_welcome .vc_separator.<API key>.vc_sep_double .vc_sep_holder .vc_sep_line {
border-bottom-width: 3px;
top: -1px;
}
.vc_welcome .vc_separator.<API key> .vc_sep_holder .vc_sep_line {
border-top-width: 4px;
}
.vc_welcome .vc_separator.<API key>.vc_sep_double .vc_sep_holder .vc_sep_line {
border-bottom-width: 4px;
top: -2px;
}
.vc_welcome .vc_separator.<API key> .vc_sep_holder .vc_sep_line {
border-top-width: 5px;
}
.vc_welcome .vc_separator.<API key>.vc_sep_double .vc_sep_holder .vc_sep_line {
border-bottom-width: 5px;
top: -2px;
}
.vc_welcome .vc_separator.<API key> .vc_sep_holder .vc_sep_line {
border-top-width: 6px;
}
.vc_welcome .vc_separator.<API key>.vc_sep_double .vc_sep_holder .vc_sep_line {
border-bottom-width: 6px;
top: -3px;
}
.vc_welcome .vc_separator.<API key> .vc_sep_holder .vc_sep_line {
border-top-width: 7px;
}
.vc_welcome .vc_separator.<API key>.vc_sep_double .vc_sep_holder .vc_sep_line {
border-bottom-width: 7px;
top: -3px;
}
.vc_welcome .vc_separator.<API key> .vc_sep_holder .vc_sep_line {
border-top-width: 8px;
}
.vc_welcome .vc_separator.<API key>.vc_sep_double .vc_sep_holder .vc_sep_line {
border-bottom-width: 8px;
top: -4px;
}
.vc_welcome .vc_separator.<API key> .vc_sep_holder .vc_sep_line {
border-top-width: 9px;
}
.vc_welcome .vc_separator.<API key>.vc_sep_double .vc_sep_holder .vc_sep_line {
border-bottom-width: 9px;
top: -4px;
}
.vc_welcome .vc_separator.<API key> .vc_sep_holder .vc_sep_line {
border-top-width: 10px;
}
.vc_welcome .vc_separator.<API key>.vc_sep_double .vc_sep_holder .vc_sep_line {
border-bottom-width: 10px;
top: -5px;
}
.vc_welcome .vc_separator.vc_sep_color_blue .vc_sep_line {
border-color: #5472d2;
}
.vc_welcome .vc_separator.<API key> .vc_sep_line {
border-color: #00c1cf;
}
.vc_welcome .vc_separator.vc_sep_color_pink .vc_sep_line {
border-color: #fe6c61;
}
.vc_welcome .vc_separator.vc_sep_color_violet .vc_sep_line {
border-color: #8d6dc4;
}
.vc_welcome .vc_separator.vc_sep_color_peacoc .vc_sep_line {
border-color: #4cadc9;
}
.vc_welcome .vc_separator.vc_sep_color_chino .vc_sep_line {
border-color: #cec2ab;
}
.vc_welcome .vc_separator.<API key> .vc_sep_line {
border-color: #50485b;
}
.vc_welcome .vc_separator.<API key> .vc_sep_line {
border-color: #75d69c;
}
.vc_welcome .vc_separator.vc_sep_color_black .vc_sep_line {
border-color: #2a2a2a;
}
.vc_welcome .vc_separator.vc_sep_color_grey .vc_sep_line {
border-color: #ebebeb;
}
.vc_welcome .vc_separator.vc_sep_color_orange .vc_sep_line {
border-color: #f7be68;
}
.vc_welcome .vc_separator.vc_sep_color_sky .vc_sep_line {
border-color: #5aa1e3;
}
.vc_welcome .vc_separator.vc_sep_color_green .vc_sep_line {
border-color: #6dab3c;
}
.vc_welcome .vc_separator.<API key> .vc_sep_line {
border-color: #f4524d;
}
.vc_welcome .vc_separator.<API key> .vc_sep_line {
border-color: #f79468;
}
.vc_welcome .vc_separator.vc_sep_color_purple .vc_sep_line {
border-color: #b97ebb;
}
.vc_welcome .vc_separator.vc_sep_color_white .vc_sep_line {
border-color: #ffffff;
}
.vc_welcome .vc_separator.vc_sep_color_grace .vc_sep_line {
border-color: #aed13b;
}
.vc_welcome .wpb_separator,
.vc_welcome .vc_text_separator {
border-bottom: 1px solid #ebebeb;
}
.vc_welcome .vc_sep_width_50 {
width: 50%;
}
.vc_welcome .vc_sep_width_60 {
width: 60%;
}
.vc_welcome .vc_sep_width_70 {
width: 70%;
}
.vc_welcome .vc_sep_width_80 {
width: 80%;
}
.vc_welcome .vc_sep_width_90 {
width: 90%;
}
.vc_welcome .vc_sep_width_100 {
width: 100%;
}
.vc_welcome .<API key> {
margin-left: auto;
margin-right: auto;
}
.vc_welcome .<API key> {
margin-left: 0;
margin-right: auto;
}
.vc_welcome .<API key> {
margin-left: auto;
margin-right: 0;
}
.vc_welcome .wpb_separator {
clear: both;
height: 1px;
}
.vc_welcome .vc_text_separator {
clear: both;
height: 1px;
}
.vc_welcome .vc_text_separator div {
display: inline-block;
background-color: #ffffff;
padding: 1px 1em;
position: relative;
top: -9px;
}
.vc_welcome .<API key> {
text-align: center;
}
.vc_welcome .<API key> {
text-align: left;
}
.vc_welcome .<API key> {
text-align: right;
}
.vc_welcome .vc_separator h4 {
font-size: 14px;
}
.<API key>.vc_separator .vc_sep_holder .vc_sep_line {
border-color: #EBEBEB;
border-color: rgba(125, 125, 125, 0.4);
}
@media screen and (max-width: 768px) {
.vc_welcome .<API key> {
display: block;
margin: 0;
margin-bottom: 16px;
}
.vc_welcome .<API key> {
display: block;
margin: 0;
}
}
.<API key> {
margin: 20px 0;
}
.vc_templates-image {
height: 154px;
width: 114px;
/*transition: 0.3s ease-in-out all;
-moz-transition: 0.3s ease-in-out all;
-webkit-transition: 0.3s ease-in-out all;
-o-transition: 0.3s ease-in-out all;*/
background-image: url("../vc/fe/<API key>.png");
background-repeat: no-repeat;
margin: 0 auto;
}
.<API key> .vc_templates-image {
background-position: 0 0px;
}
.<API key> .vc_templates-image {
background-position: 0 -154px;
}
.<API key> .vc_templates-image {
background-position: 0 -308px;
}
.<API key> .vc_templates-image {
background-position: 0 -462px;
}
.<API key> .vc_templates-image {
background-position: 0 -616px;
}
.<API key> .vc_templates-image {
background-position: 0 -770px;
}
.<API key> .vc_templates-image {
background-position: 0 -924px;
}
.<API key> .vc_templates-image {
background-position: 0 -1078px;
}
.<API key> .vc_templates-image {
background-position: 0 -1232px;
}
.<API key> .vc_templates-image {
background-position: 0 -1386px;
}
.<API key> .vc_templates-image {
background-position: 0 -1540px;
}
.<API key> .vc_templates-image {
background-position: 0 -1694px;
}
.<API key> .vc_templates-image {
background-position: 0 -1848px;
}
.<API key> .vc_templates-image {
background-position: 0 -2002px;
}
.<API key> .vc_templates-image {
background-position: 0 -2156px;
}
.<API key> .vc_templates-image {
background-position: 0 -2310px;
}
.<API key> .vc_templates-image {
background-position: 0 -2464px;
}
.<API key> .vc_templates-image {
background-position: 0 -2618px;
}
.<API key> .vc_templates-image {
background-position: 0 -2772px;
}
.<API key> .vc_templates-image {
background-position: 0 -2926px;
}
.<API key> .vc_templates-image {
background-position: 0 -3080px;
}
.<API key> .vc_templates-image {
background-position: 0 -3234px;
}
.<API key> .vc_templates-image {
background-position: 0 -3388px;
}
.<API key> .vc_templates-image {
background-position: 0 -3542px;
}
.<API key> .vc_templates-image {
background-position: 0 -3696px;
}
.<API key> .vc_templates-image {
background-position: 0 -3850px;
}
.<API key> .vc_templates-image {
background-position: 0 -4004px;
}
.<API key> .vc_templates-image {
background-position: 0 -4158px;
}
.<API key> .vc_templates-image {
background-position: 0 -4312px;
}
.<API key> .vc_templates-image {
background-position: 0 -4466px;
}
.<API key> .vc_templates-image {
background-position: 0 -4620px;
}
.<API key> .vc_templates-image {
background-position: 0 -4774px;
}
.<API key> .vc_templates-image {
background-position: 0 -4928px;
}
.<API key> .vc_templates-image {
background-position: 0 -5082px;
}
.<API key> .vc_templates-image {
background-position: 0 -5236px;
}
.<API key> .vc_templates-image {
background-position: 0 -5390px;
}
.<API key> .vc_templates-image {
background-position: 0 -5544px;
}
.<API key> .vc_templates-image {
background-position: 0 -5698px;
}
.<API key> .vc_templates-image {
background-position: 0 -5852px;
}
.<API key> .vc_templates-image {
background-position: 0 -6006px;
}
.<API key> .vc_templates-image {
background-position: 0 -6160px;
}
.<API key> .vc_templates-image {
background-position: 0 -6314px;
}
.<API key> .vc_templates-image {
background-position: 0 -6468px;
}
.<API key> .vc_templates-image {
background-position: 0 -6622px;
}
.<API key> .vc_templates-image {
background-position: 0 -6776px;
}
.<API key> > .wpb_row.vc_row-fluid {
margin: 0;
}
.<API key> .vc_template {
padding: 10px 15px 10px 15px;
display: inline-block;
text-align: center;
vertical-align: top;
position: relative;
font-size: 14px;
}
.<API key> .vc_template .wpb_text_column {
width: 114px;
}
.<API key> .vc_template > .wpb_wrapper {
cursor: pointer;
}
.<API key> .vc_template > .wpb_wrapper:hover {
opacity: 0.7;
filter: alpha(opacity=70);
}
.<API key> #<API key> {
clear: both;
margin: 0 auto 25px !important;
background-image: url("../vc/fe/more_layouts.png");
background-position: 14px center;
background-repeat: no-repeat;
padding-left: 52px;
border: none !important;
font-size: 14px;
background-color: #f8c733;
color: #ffffff !important;
-webkit-transition: all 0.5s;
-o-transition: all 0.5s;
transition: all 0.5s;
}
.<API key> #<API key>:hover {
background-color: #f7bf15;
color: #f7f7f7 !important;
}
.<API key> #<API key>.vc_btn_outlined,
.<API key> #<API key>.<API key> {
color: #f8c733 !important;
}
.<API key> #<API key>.vc_btn_outlined:hover,
.<API key> #<API key>.<API key>:hover {
border-color: #f7bf15;
}
.<API key> #<API key>.vc_btn_3d {
-webkit-box-shadow: 0 5px 0 #ebb208;
box-shadow: 0 5px 0 #ebb208;
margin-bottom: 5px;
}
.<API key> #<API key>.vc_btn_3d.vc_btn_xs {
-webkit-box-shadow: 0 3px 0 #ebb208;
box-shadow: 0 3px 0 #ebb208;
margin-bottom: 3px;
}
.<API key> #<API key>.vc_btn_3d.vc_btn_sm {
-webkit-box-shadow: 0 4px 0 #ebb208;
box-shadow: 0 4px 0 #ebb208;
margin-bottom: 4px;
}
.composer-switch {
cursor: default;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
display: inline-block;
padding: 0;
font-size: 11px;
line-height: 27px;
border-radius: 4px;
margin-bottom: 8px;
}
.composer-switch a,
.composer-switch a:visited {
text-decoration: none;
cursor: pointer;
color: #ffffff;
display: inline-block;
line-height: 28px;
height: 28px;
padding: 4px 10px;
background-color: #114C7F;
}
.composer-switch a.<API key>:hover,
.composer-switch a:visited.<API key>:hover {
background-color: #0d3d63;
}
.composer-switch a.<API key>,
.composer-switch a:visited.<API key> {
background-color: #114C7F;
-<API key>: 4px;
-<API key>: 4px;
-<API key>: 4px;
-<API key>: 4px;
<API key>: 4px;
<API key>: 4px;
}
.composer-switch a.<API key>:hover,
.composer-switch a:visited.<API key>:hover {
background-color: #0d3d63;
}
.composer-switch .logo-icon {
-<API key>: 4px;
-<API key>: 4px;
-<API key>: 4px;
-<API key>: 4px;
<API key>: 4px;
<API key>: 4px;
background: #114c7f url(../vc/visual_composer.png) no-repeat center center;
width: 16px;
height: 28px;
padding: 0;
display: inline-block;
vertical-align: top;
padding: 4px 10px;
}
.composer-switch .vc_spacer {
display: inline-block;
width: 1px;
background-color: #1f5b8c;
margin: 0;
height: 28px;
padding: 4px 0;
vertical-align: top;
position: relative;
}
.vc_properties-list {
overflow-y: auto;
overflow-x: hidden;
}
.vc_edit-form-tab {
padding-top: 5px;
}
.vc_dependent-hidden {
display: none !important;
}
.wpb_element_label,
.vc_element_label {
font-weight: bold;
margin-bottom: 5px;
display: block;
}
.<API key> .vc_column + .vc_column {
padding-top: 15px;
}
.<API key> .quicktags-toolbar input {
width: auto;
padding: 2px 4px;
}
.<API key> input {
padding-bottom: 7px;
}
.<API key> input.wp-color-picker[type="text"] {
width: 90px !important;
padding: 4px 3px 3px;
height: 24px;
float: left;
position: relative;
}
.<API key> .wp-color-result.wp-picker-open:after {
content: "";
}
.<API key> input.wp-picker-clear {
width: auto;
}
.<API key> .<API key> {
cursor: move;
}
.<API key>,
.<API key> {
margin: 0;
}
.<API key> li,
.<API key> li {
position: relative;
background: #F5F5F5;
padding: 4px;
float: left;
margin: 0px 5px 5px 0;
min-height: 75px;
min-width: 75px;
line-height: 70px;
text-align: center;
}
.<API key> li img,
.<API key> li img {
max-height: 75px;
display: inline-block;
vertical-align: middle;
}
.<API key> .<API key>,
.<API key> .<API key> {
margin-top: 0px;
display: block;
float: left;
height: 80px;
width: 80px;
background: #f5f5f5 url("../vc/add.png") no-repeat center center;
border: 1px solid #DFDFDF;
font-size: 0px;
color: #F5F5F5;
}
.<API key> .<API key>:hover,
.<API key> .<API key>:hover {
color: #C8C8C8;
border-color: #C8C8C8;
text-decoration: none;
}
.<API key> .icon-remove,
.<API key> .icon-remove {
background: #f5f5f5 url(../vc/remove.png) center center no-repeat;
width: 16px;
height: 16px;
display: block;
position: absolute;
top: 0;
right: 0;
}
.<API key> .icon-remove:hover,
.<API key> .icon-remove:hover {
opacity: 0.7;
}
.<API key> {
display: none;
}
.wpb_vc_tab,
.<API key> {
display: none;
}
.<API key> {
display: none;
}
#TB_overlay {
z-index: 1055;
}
#TB_window {
z-index: 1060;
}
.vc_colored-dropdown .blue {
background-color: #5472d2 !important;
color: #ffffff !important;
}
.vc_colored-dropdown .turquoise {
background-color: #00c1cf !important;
color: #ffffff !important;
}
.vc_colored-dropdown .pink {
background-color: #fe6c61 !important;
color: #ffffff !important;
}
.vc_colored-dropdown .violet {
background-color: #8d6dc4 !important;
color: #ffffff !important;
}
.vc_colored-dropdown .peacoc {
background-color: #4cadc9 !important;
color: #ffffff !important;
}
.vc_colored-dropdown .chino {
background-color: #cec2ab !important;
color: #ffffff !important;
}
.vc_colored-dropdown .mulled_wine {
background-color: #50485b !important;
color: #ffffff !important;
}
.vc_colored-dropdown .vista_blue {
background-color: #75d69c !important;
color: #ffffff !important;
}
.vc_colored-dropdown .black {
background-color: #2a2a2a !important;
color: #ffffff !important;
}
.vc_colored-dropdown .grey {
background-color: #ebebeb !important;
color: #666666 !important;
}
.vc_colored-dropdown .orange {
background-color: #f7be68 !important;
color: #ffffff !important;
}
.vc_colored-dropdown .sky {
background-color: #5aa1e3 !important;
color: #ffffff !important;
}
.vc_colored-dropdown .green {
background-color: #6dab3c !important;
color: #ffffff !important;
}
.vc_colored-dropdown .juicy_pink {
background-color: #f4524d !important;
color: #ffffff !important;
}
.vc_colored-dropdown .sandy_brown {
background-color: #f79468 !important;
color: #ffffff !important;
}
.vc_colored-dropdown .purple {
background-color: #b97ebb !important;
color: #ffffff !important;
}
.vc_colored-dropdown .white {
background-color: #ffffff !important;
color: #666666 !important;
}
.vc_colored-dropdown .custom {
background-color: #ffffff !important;
color: #000000 !important;
}
option.btn-primary,
select.btn-primary {
border-width: 0;
}
option.btn-info,
select.btn-info {
border-width: 0;
text-shadow: none;
}
option.btn-success,
select.btn-success {
border-width: 0;
}
option.btn-warning,
select.btn-warning {
border-width: 0;
}
option.btn-inverse,
select.btn-inverse {
border-width: 0;
}
option.btn-danger,
select.btn-danger {
border-width: 0;
}
.vc_sorted-list .<API key> li {
border: 1px dashed #CCCCCC;
width: 150px;
clear: both;
padding: 4px;
display: block;
margin-bottom: 2px;
cursor: move;
}
/** Sortable list params */
.<API key> {
display: inline-block;
cursor: pointer;
overflow: hidden;
height: 26px;
margin-right: 4px;
position: relative;
}
.<API key> label {
float: left;
width: auto;
}
.<API key> label input {
margin-right: 0px;
position: absolute;
top: -20px;
}
.<API key> label span {
text-align: center;
display: block;
border: 1px solid #CCCCCC;
padding: 2px 6px 1px;
-<API key>: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
background: #ffffff;
/* Old browsers */
background: -moz-linear-gradient(top, #ffffff 0%, #eaeaea 70%, #f1f1f1 100%, #f6f6f6 100%);
/* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffffff), color-stop(70%, #eaeaea), color-stop(100%, #f1f1f1), color-stop(100%, #f6f6f6));
/* Chrome,Safari4+ */
background: -<API key>(top, #ffffff 0%, #eaeaea 70%, #f1f1f1 100%, #f6f6f6 100%);
/* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #ffffff 0%, #eaeaea 70%, #f1f1f1 100%, #f6f6f6 100%);
/* Opera 11.10+ */
background: -ms-linear-gradient(top, #ffffff 0%, #eaeaea 70%, #f1f1f1 100%, #f6f6f6 100%);
/* IE10+ */
background: linear-gradient(to bottom, #ffffff 0%, #eaeaea 70%, #f1f1f1 100%, #f6f6f6 100%);
/* W3C */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f6f6f6', GradientType=0);
/* IE6-9 */
}
.<API key> label input:checked + span {
background: #FFF;
box-shadow: inset 1px 1px 1px 1px #DDDDDD;
color: #5e5e5e;
}
.vc_css-editor .vc_layout-onion * {
margin: 44px;
position: relative;
}
.vc_css-editor .vc_layout-onion label {
position: absolute;
font-size: 9px;
line-height: 9px;
top: 6px;
left: 5px;
color: #2C2C2C;
margin: 0;
padding: 0;
}
.vc_css-editor .vc_layout-onion input {
position: absolute;
text-align: center;
padding: 3px 0;
height: 24px;
width: 34px;
margin: 0;
border: 1px solid #bdbdbd;
font-size: 11px;
line-height: 11px;
}
.vc_css-editor .vc_layout-onion input.vc_top {
top: 11px;
left: 50%;
margin-left: -17px;
}
.vc_css-editor .vc_layout-onion input.vc_bottom {
bottom: 11px;
left: 50%;
margin-left: -17px;
}
.vc_css-editor .vc_layout-onion input.vc_left {
top: 50%;
left: 5px;
margin-top: -12px;
}
.vc_css-editor .vc_layout-onion input.vc_right {
top: 50%;
right: 5px;
margin-top: -12px;
}
.vc_css-editor .vc_layout-onion .vc_margin {
border: 1px dashed #bababa;
margin: 1px;
}
.vc_css-editor .vc_layout-onion .vc_margin .vc_border {
border: 1px solid #bababa;
background: #f2f2f2;
}
.vc_css-editor .vc_layout-onion .vc_margin .vc_border .vc_padding {
border: 1px solid #bababa;
background: #e7e7e7;
}
.vc_css-editor .vc_layout-onion .vc_margin .vc_border .vc_padding .vc_content {
border: 1px solid #bababa;
height: 50px;
padding: 0px;
text-align: center;
font-size: 10px;
line-height: 11px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.vc_css-editor .vc_layout-onion .vc_margin .vc_border .vc_padding .vc_content i {
margin: 8px auto;
background: transparent url(../vc/logo_ce.png) center center no-repeat;
display: block;
width: 32px;
height: 32px;
}
.vc_css-editor .vc_layout-onion .vc_active {
background-color: #00aef0 !important;
}
.vc_css-editor .vc_settings .vc_background-image {
margin-bottom: 10px;
}
.vc_css-editor .vc_settings .vc_background-image .vc_image .added {
position: relative;
background: #F5F5F5;
padding: 4px;
float: left;
margin: 0px 5px 5px 0;
min-height: 75px;
min-width: 75px;
line-height: 70px;
text-align: center;
}
.vc_css-editor .vc_settings .vc_background-image .vc_image .added img {
width: 100%;
}
.vc_css-editor .vc_settings .vc_background-image .vc_image .added .icon-remove {
background: #f5f5f5 url(../vc/remove.png) center center no-repeat;
width: 16px;
height: 16px;
display: block;
position: absolute;
top: 0;
right: 0;
}
.vc_css-editor .vc_settings .vc_background-image .vc_add-image {
margin-top: 0px;
display: block;
float: left;
height: 80px;
width: 80px;
background: #f5f5f5 url("../vc/add.png") no-repeat center center;
border: 1px solid #DFDFDF;
font-size: 0px;
color: #F5F5F5;
}
.vc_css-editor .vc_settings .vc_background-image .vc_add-image .vc_image img.vc_preview {
width: 16px;
margin: 30px;
}
.vc_css-editor .vc_settings label {
margin-top: 10px;
margin-bottom: 2px;
display: block;
}
.vc_css-editor .vc_settings label.vc_checkbox {
font-weight: normal;
}
.vc_css-editor .vc_settings select {
width: auto;
}
.vc_css-editor .vc_settings .color-group {
margin-top: 5px;
margin-bottom: 6px;
}
.vc_css-editor .vc_settings .color-group .wp-picker-container {
position: relative;
}
.vc_css-editor .vc_settings .color-group .wp-picker-container .wp-picker-holder {
position: absolute;
left: -40px;
z-index: 10;
}
.vc_css-editor .vc_settings > :first-child {
margin-top: 0;
}
.vc_css-editor.vc_simplified .vc_layout-onion .vc_left,
.vc_css-editor.vc_simplified .vc_layout-onion .vc_right,
.vc_css-editor.vc_simplified .vc_layout-onion .vc_bottom {
display: none;
}
.vc_css-editor.vc_simplified .vc_layout-onion .vc_top {
left: 22px;
top: 20px;
}
/** Options field type */
.vc_options-fields {
border: 1px solid #dfdfdf;
padding: 10px;
margin-top: 10px;
background: #f5f5f5 url(../vc/rowbg.png);
position: relative;
display: none;
}
.vc_options-fields:before {
content: "";
display: block;
width: 0;
height: 0;
position: absolute;
top: -8px;
left: 20px;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-bottom: 8px solid #dfdfdf;
}
.vc_options-fields h4 {
font-size: 16px;
padding-bottom: 6px;
margin: 4px 0 10px 0;
border-bottom: 1px double #000;
}
.vc_options-fields .vc_row-fluid {
border-bottom-color: #cccccc;
}
.vc_options-fields .vc_row-fluid .descr {
margin-top: 5px;
}
.wpb_vc_message .messagebox_text {
padding-left: 24px;
}
.wpb_vc_message .alert {
color: #C09853;
background-color: #FCF8E3;
border-color: #FBEED5;
}
.wpb_vc_message .alert .messagebox_text {
background: url(../vc/alert.png) no-repeat left center;
}
.wpb_vc_message .alert-info {
color: #3A87AD;
background-color: #D9EDF7;
border-color: #BCE8F1;
}
.wpb_vc_message .alert-info .messagebox_text {
background: url(../vc/info.png) no-repeat left center;
}
.wpb_vc_message .alert-success {
color: #468847;
background-color: #DFF0D8;
border-color: #D6E9C6;
}
.wpb_vc_message .alert-success .messagebox_text {
background: url(../vc/tick.png) no-repeat left center;
}
.wpb_vc_message .alert-danger {
color: #B94A48;
background-color: #F2DEDE;
border-color: #EED3D7;
}
.wpb_vc_message .alert-danger .messagebox_text {
background: url(../vc/exclamation.png) no-repeat left center;
}
.vc_message-type .alert-success {
background-color: #e6fdf8;
border-color: #cfebfe;
color: #5e7f96;
}
.vc_message-type .alert-success hr {
border-top-color: #b6e1fd;
}
.vc_message-type .alert-success .alert-link {
color: #4a6477;
}
.vc_message-type .alert-info {
background-color: #dff2fe;
border-color: #cfebfe;
color: #5e7f96;
}
.vc_message-type .alert-info hr {
border-top-color: #b6e1fd;
}
.vc_message-type .alert-info .alert-link {
color: #4a6477;
}
.vc_message-type .alert-warning {
background-color: #fff4e2;
border-color: #ffeccc;
color: #9d8967;
}
.vc_message-type .alert-warning hr {
border-top-color: #ffe3b3;
}
.vc_message-type .alert-warning .alert-link {
color: #7f6e52;
}
.vc_message-type .alert-danger {
background-color: #fdeaea;
border-color: #fedede;
color: #a85959;
}
.vc_message-type .alert-danger hr {
border-top-color: #fdc5c5;
}
.vc_message-type .alert-danger .alert-link {
color: #874747;
}
.vc_message-type .info {
background-color: #dff2fe !important;
color: #5e7f96 !important;
}
.vc_message-type .success {
background-color: #e6fdf8 !important;
color: #5e7f96 !important;
}
.vc_message-type .warning {
background-color: #fff4e2 !important;
color: #9d8967 !important;
}
.vc_message-type .danger {
background-color: #fdeaea !important;
color: #a85959 !important;
}
/** Color picker field **/
.<API key> .colorpicker_field,
.<API key> .<API key> .colorpicker_field {
display: inline-block;
width: 90px;
padding: 4px 3px 3px;
margin-right: 4px;
}
.<API key> .wp-picker-clear,
.<API key> .<API key> .wp-picker-clear {
width: auto;
}
.edit_form_line .updated {
margin: 5px 0px 2px;
}
.vc_ui-front {
z-index: 100052 !important;
}
.vc_color-picker {
/*.wp-color-result:after {
line-height: 20px;
}*/
}
.vc_color-picker .wp-picker-clear {
padding: 2px 4px;
}
.vc_color-picker .wp-picker-holder {
position: relative;
}
.vc_color-picker .wp-picker-holder .vc_alpha-container {
border-radius: 0;
border: 1px solid #dfdfdf;
padding: 6px;
background: #ffffff;
position: absolute;
width: 243px;
left: -1px;
z-index: 1000;
bottom: -64px;
}
.vc_color-picker .wp-picker-holder .vc_alpha-container label {
display: block;
}
.vc_color-picker .wp-picker-holder .vc_alpha-container label output {
padding-top: 0px;
display: inline;
vertical-align: top;
}
.vc_color-picker .wp-picker-holder .vc_alpha-container input {
padding: 0;
margin: 0;
width: 100%;
}
/** Link param **/
#wp-link .submitbox {
height: auto;
}
.vc_link .vc_link-build {
margin-bottom: 5px;
}
.vc_link .vc_link_label {
font-weight: bold;
margin-left: 10px;
display: inline-block;
line-height: 28px;
}
/* Auto suggestion in Loop builder **/
.vc_loop-info {
position: relative;
top: 8px;
margin-top: 5px;
}
.loop_params_holder {
border: 1px solid #dfdfdf;
padding: 10px;
margin-top: 10px;
background: #f5f5f5 url(../vc/rowbg.png);
position: relative;
}
.loop_params_holder:before {
content: "";
display: block;
width: 0;
height: 0;
position: absolute;
top: -8px;
left: 20px;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-bottom: 8px solid #dfdfdf;
}
.loop_params_holder .vc_row-fluid {
border-bottom-color: #cccccc;
}
.vc_suggest-field {
clear: both;
}
.vc_suggest-field .vc_suggester {
margin: 0;
background: #ffffff;
border: 1px solid #dfdfdf;
border-radius: 3px;
padding: 2px;
cursor: text;
min-height: 24px;
}
.vc_suggest-field .vc_suggester li {
margin-bottom: 0px;
float: left;
}
.vc_suggest-field .vc_suggester li.exclude {
background: #f2dede;
color: #b94a48;
border: 1px solid #eed3d7;
}
.vc_suggest-field .vc_suggester li.exclude:after {
content: "-";
display: block;
position: absolute;
width: 5px;
height: 5px;
left: 3px;
font-weight: bold;
top: 1px;
}
.vc_suggest-field .vc_suggester li.include {
background: #dff0d8;
color: #468847;
border: 1px solid #d6e9c6;
}
.vc_suggest-field .vc_suggester li.include:after {
content: "+";
display: block;
position: absolute;
width: 5px;
height: 5px;
left: 3px;
font-weight: bold;
top: 2px;
}
.vc_suggest-field .vc_suggester li.vc_suggest-label {
border-radius: 2px;
padding: 0 0 0 8px;
margin: 2px;
position: relative;
cursor: pointer;
}
.vc_suggest-field .vc_suggester li.vc_suggest-label .label {
display: inline-block;
line-height: 18px;
font-size: 11px;
padding: 0 6px 0 5px;
}
.vc_suggest-field .vc_suggester li.vc_suggest-label .remove {
color: #999999;
display: block;
cursor: pointer;
position: absolute;
top: -5px;
right: -3px;
width: 9px;
height: 9px;
background: #F7F7F7;
line-height: 9px;
font-size: 12px;
text-align: center;
}
.vc_suggest-field .vc_suggester li.vc_suggest-label .remove:hover {
color: red;
}
.vc_suggest-field .vc_suggester li.input {
width: 170px;
padding: 0 3px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
}
.vc_suggest-field .vc_suggester li.input input {
width: 100%;
border: 0;
padding: 5px 0px;
margin: 0px;
}
.vc_suggest-field .vc_suggester li.input input:focus {
-webkit-box-shadow: none;
box-shadow: none;
}
.vc_suggest-field .vc_suggester li.clear {
clear: both;
float: none;
}
.vc_ui-front {
z-index: 100052 !important;
}
.<API key> > tbody > tr > th {
border: 0;
text-align: left;
}
.<API key> > tbody > tr > td {
border: 1px solid #dddddd;
padding: 20px;
text-align: center;
}
.<API key> .vc_screen-size {
background-color: #F8F8F8;
}
.<API key> .vc_screen-size .vc_icon {
background: transparent url(../vc/<API key>.png) -21px 0 no-repeat;
width: 21px;
height: 21px;
display: inline-block;
}
.<API key> .vc_screen-size-md .vc_icon {
background-position: -21px -21px;
}
.<API key> .vc_screen-size-sm .vc_icon {
background-position: -21px -42px;
}
.<API key> .vc_screen-size-xs .vc_icon {
background-position: -21px -84px;
}
.<API key> .vc_size-xs,
.<API key> .vc_size-md,
.<API key> .vc_size-lg {
opacity: 0.5;
filter: alpha(opacity=50);
}
.<API key> {
clear: both;
}
.<API key> .vc_autocomplete {
margin: 0;
background: #ffffff;
border: 1px solid #dfdfdf;
padding: 2px;
cursor: text;
min-height: 24px;
}
.<API key> .vc_autocomplete li {
margin-bottom: 0;
}
.<API key> .vc_autocomplete li.vc_data {
background: #0b4b81;
color: #ffffff;
border: 1px solid #0b4b81;
}
.<API key> .vc_autocomplete li.<API key> {
border-radius: 2px;
padding: 0 0 0 8px;
margin: 1px;
position: relative;
cursor: pointer;
}
.<API key> .vc_autocomplete li.<API key> a {
color: #ffffff;
}
.<API key> .vc_autocomplete li.<API key> .vc_label {
display: inline-block;
line-height: 18px;
font-size: 11px;
padding: 0 6px 0 5px;
}
.<API key> .vc_autocomplete li.<API key> .<API key> {
color: #aec4d8;
display: block;
cursor: pointer;
position: absolute;
top: 5px;
right: 7px;
width: 9px;
height: 9px;
line-height: 9px;
font-size: 18px;
text-align: center;
}
.<API key> .vc_autocomplete li.<API key> .<API key>:hover {
color: #ffffff;
}
.<API key> .vc_autocomplete li.<API key> {
padding: 0 3px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
}
.<API key> .vc_autocomplete li.<API key> input {
width: 100%;
border: 0;
padding: 5px 0;
margin: 0;
}
.<API key> .vc_autocomplete li.<API key> input:focus {
-webkit-box-shadow: none;
box-shadow: none;
}
.<API key> .vc_autocomplete li.<API key> {
clear: both;
float: none;
}
.vc_ui-auotocomplete {
max-height: 200px;
overflow-y: auto;
}
.<API key> .wpb_vc_param_value.filter.checkbox {
float: none;
}
.<API key> > li.vc_data.<API key> {
display: inline-block;
padding: 0 20px 0 8px;
}
.<API key> > .<API key> {
display: inline-block;
}
.<API key> {
background-color: #fff;
border-color: #E6E6E6;
border-style: solid solid none;
border-width: 1px 1px medium;
padding: 4px;
}
.<API key> .vc_controls {
background-color: #fff;
height: 20px;
margin-bottom: 15px;
width: 100%;
}
.<API key> .vc_control {
background-color: #fff !important;
}
.<API key> .vc_control.column_toggle .vc_icon {
background-position: -16px -114px;
}
.<API key> .vc_control.column_toggle .vc_icon {
background-position: -16px -96px;
}
.<API key> .controls.<API key>.controls_row.vc_clearfix {
border-bottom: 1px solid #E6E6E6;
}
.<API key> {
border-color: #E6E6E6;
border-style: none solid solid;
border-width: medium 1px 1px;
padding-bottom: 15px;
}
.<API key> .vc_not-for-custom {
display: none;
}
.wpb-select > .fa {
display: block;
}
.wpb-select > .fa:before {
font-size: 15px;
padding-right: 10px;
}
.<API key> {
position: relative;
}
.<API key> .vc_t-grid-controls {
display: block;
line-height: 0;
}
.<API key> .vc_t-grid-control {
display: inline-block;
cursor: pointer;
padding: 4px;
}
.<API key> .<API key> .vc_t-grid-control {
border: 1px solid #CCC;
}
.<API key> .<API key> {
text-align: center;
}
.<API key> .<API key> {
position: absolute;
top: 20px;
left: 0;
display: block;
padding: 10px;
background: #FFF;
border: 1px solid #CCC;
}
.<API key> .<API key> {
font-size: 18px;
}
.<API key> .<API key> {
position: absolute;
padding: 10px;
right: 0;
top: 0;
}
.<API key> .vc_gitem-row {
margin-bottom: 6px;
}
.<API key> .vc_gitem-col > .vc_gitem-wrapper {
background: #f5f5f5;
}
.<API key> .vc_gitem-col > .vc_gitem-wrapper > .vc_gitem-content {
margin: 0 10px;
border: 1px solid #CCC;
min-height: 20px;
}
.vc_t-grid-icon {
width: 16px;
height: 16px;
display: inline-block;
background: transparent url('../vc/controls.png') no-repeat -16px 0px;
font-size: 0;
line-height: 0;
}
.vc_t-grid-icon-move {
background-position: -16px 0;
}
.vc_t-grid-icon-add {
background-position: -16px -16px;
}
.vc_t-grid-icon-edit {
background-position: -16px -32px;
}
.<API key> {
background-position: -16px -64px;
}
.<API key> {
border: 1px solid #CCC;
padding: 2px;
}
.vc_gitem-row,
.vc_gitem-col {
border: 0;
}
.<API key> {
display: none;
}
.<API key> .vc_visible {
display: block;
}
.<API key> .vc-icons-selector .selector-footer .<API key> i {
color: #333;
}
.<API key> .vc-icons-selector .selector-footer .selector-pages {
color: #333;
}
/* Pixel Icons */
.vc_pixel_icon {
display: inline-block;
height: 16px;
width: 16px;
background-position: 0 0;
background-repeat: no-repeat;
}
.vc_pixel_icon-alert {
background-image: url(../vc/alert.png);
}
.vc_pixel_icon-info {
background-image: url(../vc/info.png);
}
.vc_pixel_icon-tick {
background-image: url(../vc/tick.png);
}
.<API key> {
background-image: url(../vc/exclamation.png);
}
.<API key> {
background-image: url(../images/icons/address-book.png);
}
.<API key> {
background-image: url(../images/icons/alarm-clock.png);
}
.<API key> {
background-image: url(../images/icons/anchor.png);
}
.<API key> {
background-image: url(../images/icons/application-image.png);
}
.vc_pixel_icon-arrow {
background-image: url(../images/icons/arrow.png);
}
.<API key> {
background-image: url(../images/icons/asterisk.png);
}
.<API key> {
background-image: url(../images/icons/auction-hammer.png);
}
.<API key> {
background-image: url(../images/icons/balloon.png);
}
.<API key> {
background-image: url(../images/icons/balloon-buzz.png);
}
.<API key> {
background-image: url(../images/icons/balloon-facebook.png);
}
.<API key> {
background-image: url(../images/icons/balloon-twitter.png);
}
.<API key> {
background-image: url(../images/icons/battery-full.png);
}
.<API key> {
background-image: url(../images/icons/binocular.png);
}
.<API key> {
background-image: url(../images/icons/blue-document-excel.png);
}
.<API key> {
background-image: url(../images/icons/blue-document-image.png);
}
.<API key> {
background-image: url(../images/icons/blue-document-music.png);
}
.<API key> {
background-image: url(../images/icons/<API key>.png);
}
.<API key> {
background-image: url(../images/icons/blue-document-pdf.png);
}
.<API key> {
background-image: url(../images/icons/<API key>.png);
}
.<API key> {
background-image: url(../images/icons/blue-document-word.png);
}
.<API key> {
background-image: url(../images/icons/bookmark.png);
}
.<API key> {
background-image: url(../images/icons/camcorder.png);
}
.<API key> {
background-image: url(../images/icons/camera.png);
}
.vc_pixel_icon-chart {
background-image: url(../images/icons/chart.png);
}
.<API key> {
background-image: url(../images/icons/chart-pie.png);
}
.vc_pixel_icon-clock {
background-image: url(../images/icons/clock.png);
}
.vc_pixel_icon-play {
background-image: url(../images/icons/control.png);
}
.vc_pixel_icon-fire {
background-image: url(../images/icons/fire.png);
}
.vc_pixel_icon-heart {
background-image: url(../images/icons/heart.png);
}
.vc_pixel_icon-mail {
background-image: url(../images/icons/mail.png);
}
.<API key> {
background-image: url(../images/icons/plus-shield.png);
}
.vc_pixel_icon-video {
background-image: url(../images/icons/video.png);
}
.vc_templates-editor {
display: none;
position: fixed;
z-index: 100003;
top: 74px;
left: 50%;
}
.vc_templates-editor .vc_title_name {
width: 317px;
}
.vc_templates-editor .wpb_templates_list {
margin-top: 10px;
overflow-y: auto;
height: 234px;
}
.vc_templates-editor .wpb_templates_list .wpb_template_li {
display: block;
margin: 0 0 1px 0;
background: #eeeeee;
padding: 10px;
}
.vc_templates-editor .wpb_templates_list .wpb_template_li a {
color: #1b6bb0;
text-decoration: none;
}
.vc_templates-editor .wpb_templates_list .wpb_template_li a:hover {
text-decoration: underline;
}
.vc_templates-editor .wpb_templates_list .wpb_remove_template {
display: block;
float: right;
cursor: pointer;
}
.vc_templates-editor .wpb_templates_list .wpb_remove_template .icon {
display: inline-block;
background-image: url('../vc/fe/controls.png');
background-repeat: no-repeat;
background-position: -16px -64px;
width: 16px;
height: 16px;
}
.wpb_templates_list .wpb_no_templates {
text-align: center;
line-height: 225px;
}
#<API key> {
z-index: 100002;
top: 74px;
left: 50%;
}
#<API key> .<API key> {
width: 100%;
height: 250px;
}
#<API key> .vc_panel-body {
height: auto;
}
#vc_row-layout-panel {
width: 420px;
z-index: 100001;
top: 90px;
left: 50%;
}
#vc_row-layout-panel .vc_row_layout {
width: 317px;
}
#vc_row-layout-panel .<API key> .vc_layout-btn {
display: inline-block;
background-position: center center;
background-repeat: no-repeat;
background-color: white;
cursor: pointer;
padding: 2px;
margin: 1px 4px 1px 0;
}
#vc_row-layout-panel .<API key> .vc_layout-btn:hover {
background-color: #00aeed;
}
#vc_row-layout-panel .<API key> .vc_layout-btn .icon {
width: 23px;
height: 11px;
background: transparent url('../vc/fe/layout_sprite.png') left top no-repeat;
display: inline-block;
}
#vc_row-layout-panel .<API key> .vc_layout-btn:hover .icon {
background-position: right top;
}
#vc_row-layout-panel .<API key> .vc_layout-btn.l_12_12 .icon {
background-position: left -12px;
}
#vc_row-layout-panel .<API key> .vc_layout-btn.l_12_12:hover .icon {
background-position: right -12px;
}
#vc_row-layout-panel .<API key> .vc_layout-btn.l_23_13 .icon {
background-position: left -24px;
}
#vc_row-layout-panel .<API key> .vc_layout-btn.l_23_13:hover .icon {
background-position: right -24px;
}
#vc_row-layout-panel .<API key> .vc_layout-btn.l_13_13_13 .icon {
background-position: left -36px;
}
#vc_row-layout-panel .<API key> .vc_layout-btn.l_13_13_13:hover .icon {
background-position: right -36px;
}
#vc_row-layout-panel .<API key> .vc_layout-btn.l_14_14_14_14 .icon {
background-position: left -48px;
}
#vc_row-layout-panel .<API key> .vc_layout-btn.l_14_14_14_14:hover .icon {
background-position: right -48px;
}
#vc_row-layout-panel .<API key> .vc_layout-btn.l_14_34 .icon {
background-position: left -60px;
}
#vc_row-layout-panel .<API key> .vc_layout-btn.l_14_34:hover .icon {
background-position: right -60px;
}
#vc_row-layout-panel .<API key> .vc_layout-btn.l_14_12_14 .icon {
background-position: left -72px;
}
#vc_row-layout-panel .<API key> .vc_layout-btn.l_14_12_14:hover .icon {
background-position: right -72px;
}
#vc_row-layout-panel .<API key> .vc_layout-btn.l_56_16 .icon {
background-position: left -84px;
}
#vc_row-layout-panel .<API key> .vc_layout-btn.l_56_16:hover .icon {
background-position: right -84px;
}
#vc_row-layout-panel .<API key> .vc_layout-btn.l_16_16_16_16_16_16 .icon {
background-position: left -96px;
}
#vc_row-layout-panel .<API key> .vc_layout-btn.l_16_16_16_16_16_16:hover .icon {
background-position: right -96px;
}
#vc_row-layout-panel .<API key> .vc_layout-btn.l_16_46_16 .icon {
background-position: left -108px;
}
#vc_row-layout-panel .<API key> .vc_layout-btn.l_16_46_16:hover .icon {
background-position: right -108px;
}
#vc_row-layout-panel .<API key> .vc_layout-btn.l_16_16_16_12 .icon {
background-position: left -120px;
}
#vc_row-layout-panel .<API key> .vc_layout-btn.l_16_16_16_12:hover .icon {
background-position: right -120px;
}
#vc_row-layout-panel .<API key> .<API key> {
background-color: transparent;
display: block;
width: auto;
height: auto;
margin: 4px 0 3px;
font-size: 11px;
text-align: center;
}
#<API key> {
vertical-align: top;
}
#vc_teaser .<API key> {
display: none;
}
#vc_teaser .<API key> .vc_toolbar {
margin-top: 6px;
text-align: center;
}
#vc_teaser .<API key> .vc_toolbar .vc_teaser-checkbox {
display: inline-block;
cursor: pointer;
overflow: hidden;
height: 26px;
margin-right: 4px;
position: relative;
}
#vc_teaser .<API key> .vc_toolbar .vc_teaser-checkbox label {
float: left;
width: auto;
}
#vc_teaser .<API key> .vc_toolbar .vc_teaser-checkbox label input {
margin-right: 0px;
position: absolute;
top: -20px;
}
#vc_teaser .<API key> .vc_toolbar .vc_teaser-checkbox label span {
text-align: center;
display: block;
border: 1px solid #CCCCCC;
padding: 2px 6px 1px;
-<API key>: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
background: #ffffff;
/* Old browsers */
background: -moz-linear-gradient(top, #ffffff 0%, #eaeaea 70%, #f1f1f1 100%, #f6f6f6 100%);
/* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffffff), color-stop(70%, #eaeaea), color-stop(100%, #f1f1f1), color-stop(100%, #f6f6f6));
/* Chrome,Safari4+ */
background: -<API key>(top, #ffffff 0%, #eaeaea 70%, #f1f1f1 100%, #f6f6f6 100%);
/* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #ffffff 0%, #eaeaea 70%, #f1f1f1 100%, #f6f6f6 100%);
/* Opera 11.10+ */
background: -ms-linear-gradient(top, #ffffff 0%, #eaeaea 70%, #f1f1f1 100%, #f6f6f6 100%);
/* IE10+ */
background: linear-gradient(to bottom, #ffffff 0%, #eaeaea 70%, #f1f1f1 100%, #f6f6f6 100%);
/* W3C */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f6f6f6', GradientType=0);
/* IE6-9 */
}
#vc_teaser .<API key> .vc_toolbar .vc_teaser-checkbox label input:checked + span {
background: #FFF;
box-shadow: inset 1px 1px 1px 1px #DDDDDD;
color: #5e5e5e;
}
#vc_teaser .<API key> .<API key> {
position: absolute;
top: 5px;
right: 5px;
}
#vc_teaser .<API key> .vc_teaser-control {
position: relative;
min-height: 20px;
padding: 4px;
border: 1px dashed #CCC;
margin-bottom: 4px;
}
#vc_teaser .<API key> .vc_teaser-control .vc_text {
word-break: break-all;
}
#vc_teaser .<API key> .vc_teaser-control .vc_image-featured {
font-size: 14px;
}
#vc_teaser .<API key> .vc_teaser-control .<API key> img,
#vc_teaser .<API key> .vc_teaser-control .vc_image-featured img {
max-width: 100%;
}
#vc_teaser .<API key> .vc_teaser-control .vc_buttons {
margin-bottom: 4px;
}
#vc_teaser .<API key> .vc_teaser-control .vc_link-controls {
margin-top: 4px;
}
#vc_teaser .<API key> .vc_teaser-control textarea {
width: 100%;
height: 100px;
}
#vc_teaser .<API key> .vc_teaser-control a.vc_active,
#vc_teaser .<API key> .vc_teaser-control a.vc_active-link {
font-weight: bold;
}
#vc_teaser .<API key> .vc_teaser-control .vc_move {
background: url("../vc/drag_handler.gif") no-repeat center center #fcf8e3;
width: 20px;
height: 18px;
position: absolute;
right: 0;
top: 0;
cursor: move;
}
#<API key> {
display: none;
}
.vc_controls {
font-family: "Open Sans", Helvetica, sans-serif;
height: 0;
z-index: 1004;
display: block;
opacity: 0;
filter: alpha(opacity=0);
visibility: hidden;
}
.vc_controls > div {
position: absolute;
white-space: nowrap;
font-size: 0 !important;
}
.vc_controls > div > .vc_parent {
display: inline-block;
}
.vc_controls > div > .vc_element {
margin-left: 1px;
display: inline-block;
}
.vc_controls > .vc_controls-tl {
top: 0;
left: 0;
z-index: 1005;
}
.vc_controls > .vc_controls-tc {
top: 0;
left: 50%;
-webkit-transform: translate(-50%, 0);
-ms-transform: translate(-50%, 0);
-o-transform: translate(-50%, 0);
transform: translate(-50%, 0);
z-index: 1005;
}
.vc_controls > .vc_controls-tr {
top: 0;
right: 0;
direction: rtl;
z-index: 1005;
}
.vc_controls > .vc_controls-bl {
bottom: 0;
left: 0;
height: auto;
z-index: 1005;
}
.vc_controls > .vc_controls-bc {
bottom: 0;
left: 50%;
-webkit-transform: translate(-50%, 0);
-ms-transform: translate(-50%, 0);
-o-transform: translate(-50%, 0);
transform: translate(-50%, 0);
}
.vc_controls > .vc_controls-br {
bottom: 0;
right: 0;
direction: rtl;
z-index: 1005;
}
.vc_controls > .vc_controls-cc {
z-index: 1004;
top: 50%;
left: 50%;
background-color: #afd23e;
border: 0px solid transparent;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
-o-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
<API key>: 3px;
<API key>: 3px;
<API key>: 3px;
<API key>: 3px;
}
.vc_controls > .vc_controls-cc > :first-child .vc_btn-content {
<API key>: 3px;
<API key>: 3px;
}
.vc_controls > .vc_controls-cc > :last-child .vc_btn-content {
<API key>: 3px;
<API key>: 3px;
}
.vc_controls > .vc_controls-out-tc {
left: 50%;
top: -30px;
direction: rtl;
-webkit-transform: translate(-50%, 0);
-ms-transform: translate(-50%, 0);
-o-transform: translate(-50%, 0);
transform: translate(-50%, 0);
}
.vc_controls > .vc_controls-out-l {
left: 0px;
top: 1px;
direction: rtl;
}
.vc_controls > .vc_controls-out-tl {
z-index: 1002;
left: -1px;
top: -30px;
}
.vc_controls > .vc_controls-out-tl > .vc_element > :first-child .vc_btn-content {
<API key>: 3px;
<API key>: 3px;
}
.vc_controls > .vc_controls-out-tr {
z-index: 1003;
right: -1px;
top: -30px;
}
.vc_controls > .vc_controls-out-r {
right: -1px;
top: 1px;
}
.vc_controls > .vc_controls-out-l,
.vc_controls > .vc_controls-out-r {
width: 0;
height: 0;
}
.vc_control-btn {
display: inline-block;
vertical-align: middle !important;
border: none !important;
}
.vc_control-btn .icon,
.vc_control-btn .vc_icon {
display: inline-block !important;
background-image: url('../vc/fe/controls.png');
background-repeat: no-repeat;
width: 16px;
height: 16px;
}
.vc_control-btn .vc_btn-content:hover {
background-color: #669c22;
}
.vc_btn-content {
-webkit-transition: background-color 0.5s;
-o-transition: background-color 0.5s;
transition: background-color 0.5s;
background-color: transparent;
display: inline-block !important;
padding: 7px;
cursor: pointer !important;
line-height: 1px !important;
font-size: 1px !important;
vertical-align: middle !important;
}
.vc_element-name .vc_btn-content {
text-decoration: none !important;
width: auto !important;
font-size: 9px !important;
color: #FFFFFF !important;
line-height: 16px !important;
padding: 7px 12px !important;
cursor: auto !important;
}
.vc_element-name .vc_btn-content:hover {
text-decoration: none !important;
}
.vc_element-move .vc_btn-content {
cursor: move !important;
background-image: url(../vc/fe/move.png) !important;
background-position: 10px center !important;
background-repeat: no-repeat;
padding-left: 29px !important;
}
.vc_element-move .vc_btn-content:hover {
background-color: #669c22;
}
.<API key> .icon,
.<API key> .icon,
.<API key> .vc_icon,
.<API key> .vc_icon {
background-position: 0 -16px;
}
.vc_controls-dark .<API key> .icon,
.vc_controls-dark .<API key> .icon,
.vc_controls-dark .<API key> .vc_icon,
.vc_controls-dark .<API key> .vc_icon {
background-position: -16px -16px;
}
.<API key> .icon,
.<API key> .vc_icon {
background-position: 0 -80px;
}
.vc_controls-dark .<API key> .icon,
.vc_controls-dark .<API key> .vc_icon {
background-position: -16px -80px;
}
.<API key> {
position: relative;
top: 19px;
}
.<API key>:before {
position: relative;
left: 7px;
content: "";
display: block;
width: 0;
height: 0;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-bottom: 4px solid #f9b418;
-webkit-transition: border-color 0.5s;
-o-transition: border-color 0.5s;
transition: border-color 0.5s;
}
.<API key>:hover:before {
border-bottom-color: #e78800;
}
.<API key> .vc_btn-content {
-<API key>: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
padding: 3px;
}
.vc_control-btn-edit .icon,
.vc_control-btn-edit .vc_icon {
background-position: 0 -32px;
}
.vc_controls-dark .vc_control-btn-edit .icon,
.vc_controls-dark .vc_control-btn-edit .vc_icon {
background-position: -16px -32px;
}
.<API key> .icon,
.<API key> .vc_icon {
background-position: 0 -48px;
}
.vc_controls-dark .<API key> .icon,
.vc_controls-dark .<API key> .vc_icon {
background-position: -16px -48px;
}
.<API key> .icon,
.<API key> .vc_icon {
background-position: 0 -64px;
}
.vc_controls-dark .<API key> .icon,
.vc_controls-dark .<API key> .vc_icon {
background-position: -16px -64px;
}
.<API key> {
overflow-x: hidden;
width: 24px;
-webkit-transition: width 0.5s;
-o-transition: width 0.5s;
transition: width 0.5s;
display: inline-block;
}
.<API key> .icon,
.<API key> .vc_icon {
width: 10px;
background-image: url(../vc/fe/expand.gif);
background-position: center center;
}
.vc_control-btn-move {
background-position: 0 0;
}
.<API key> {
position: relative;
}
.vc_controls-row > div .vc_btn-content,
.vc_controls-column > div .vc_btn-content,
.<API key> > div .vc_btn-content {
background-color: #f9b418;
border-color: #f9b418;
}
.vc_controls-row > div .vc_control-btn .vc_btn-content:hover,
.vc_controls-column > div .vc_control-btn .vc_btn-content:hover,
.<API key> > div .vc_control-btn .vc_btn-content:hover {
background-color: #e78800;
border-color: #e78800;
}
.vc_controls-row > div .vc_advanced,
.vc_controls-column > div .vc_advanced,
.<API key> > div .vc_advanced {
overflow: hidden;
height: 30px;
width: 0;
display: inline-block;
vertical-align: middle;
-webkit-transition: width 0.5s;
-o-transition: width 0.5s;
transition: width 0.5s;
}
.vc_controls-row > div > .vc_element,
.vc_controls-column > div > .vc_element,
.<API key> > div > .vc_element {
display: inline-block;
}
.vc_controls-row > div > .vc_element :last-child .vc_btn-content,
.vc_controls-column > div > .vc_element :last-child .vc_btn-content,
.<API key> > div > .vc_element :last-child .vc_btn-content {
<API key>: 3px;
<API key>: 3px;
}
.vc_controls-row > div > .vc_element .<API key> .vc_btn-content,
.vc_controls-column > div > .vc_element .<API key> .vc_btn-content,
.<API key> > div > .vc_element .<API key> .vc_btn-content {
<API key>: 3px;
<API key>: 3px;
}
.vc_controls-row > div > .vc_parent,
.vc_controls-column > div > .vc_parent,
.<API key> > div > .vc_parent {
display: inline-block;
}
.vc_controls-row > div > .vc_parent .vc_btn-content,
.vc_controls-column > div > .vc_parent .vc_btn-content,
.<API key> > div > .vc_parent .vc_btn-content {
background-color: #285a85;
border-color: #285a85;
}
.vc_controls-row > div > .vc_parent .vc_control-btn .vc_btn-content,
.vc_controls-column > div > .vc_parent .vc_control-btn .vc_btn-content,
.<API key> > div > .vc_parent .vc_control-btn .vc_btn-content {
background-color: #285a85;
border-color: #285a85;
}
.vc_controls-row > div > .vc_parent .vc_control-btn .vc_btn-content:hover,
.vc_controls-column > div > .vc_parent .vc_control-btn .vc_btn-content:hover,
.<API key> > div > .vc_parent .vc_control-btn .vc_btn-content:hover {
background-color: #032644;
border-color: #032644;
}
.vc_controls-row > div > .vc_parent > :first-child .vc_btn-content,
.vc_controls-column > div > .vc_parent > :first-child .vc_btn-content,
.<API key> > div > .vc_parent > :first-child .vc_btn-content {
<API key>: 3px;
<API key>: 3px;
}
.vc_controls-row > div > .vc_active .vc_control-btn,
.vc_controls-column > div > .vc_active .vc_control-btn,
.<API key> > div > .vc_active .vc_control-btn {
display: inline-block;
}
.vc_controls-row > div > .vc_active .<API key>,
.vc_controls-column > div > .vc_active .<API key>,
.<API key> > div > .vc_active .<API key> {
width: 0;
}
.vc_controls-row > div > .vc_active.vc_parent .vc_advanced,
.vc_controls-column > div > .vc_active.vc_parent .vc_advanced,
.<API key> > div > .vc_active.vc_parent .vc_advanced,
.vc_controls-row > div > .vc_active.vc_element .vc_advanced,
.vc_controls-column > div > .vc_active.vc_element .vc_advanced,
.<API key> > div > .vc_active.vc_element .vc_advanced {
width: 120px;
}
.vc_controls-row > div > .vc_active.parent-vc_row .vc_advanced,
.vc_controls-column > div > .vc_active.parent-vc_row .vc_advanced,
.<API key> > div > .vc_active.parent-vc_row .vc_advanced,
.vc_controls-row > div > .vc_active.parent-vc_row_inner .vc_advanced,
.vc_controls-column > div > .vc_active.parent-vc_row_inner .vc_advanced,
.<API key> > div > .vc_active.parent-vc_row_inner .vc_advanced {
width: 150px;
}
.vc_controls-row > div > .vc_active.element-vc_column .vc_advanced,
.vc_controls-column > div > .vc_active.element-vc_column .vc_advanced,
.<API key> > div > .vc_active.element-vc_column .vc_advanced,
.vc_controls-row > div > .vc_active.<API key> .vc_advanced,
.vc_controls-column > div > .vc_active.<API key> .vc_advanced,
.<API key> > div > .vc_active.<API key> .vc_advanced {
width: 90px;
}
.vc_controls-row > div > .vc_active.element-vc_tab.vc_element-name .vc_btn-content,
.vc_controls-column > div > .vc_active.element-vc_tab.vc_element-name .vc_btn-content,
.<API key> > div > .vc_active.element-vc_tab.vc_element-name .vc_btn-content {
background-image: none;
padding-right: 6px;
}
.<API key> > div.vc_container:first-of-type {
margin-top: 31px;
}
/** Layout switcher for complex container-container controler **/
.vc_layout-switcher {
background: #94B9C6;
display: block;
height: auto;
width: 100px;
padding: 2px;
position: absolute;
top: 30px;
white-space: normal;
direction: ltr;
opacity: 0;
filter: alpha(opacity=0);
visibility: hidden;
-webkit-transition: opacity 0.5s ease-out;
-o-transition: opacity 0.5s ease-out;
transition: opacity 0.5s ease-out;
}
.vc_layout-switcher:hover .vc_layout-switcher {
opacity: 1;
filter: alpha(opacity=100);
visibility: visible;
}
.vc_layout-switcher .vc_layout-btn {
display: inline-block;
background-position: center center;
background-repeat: no-repeat;
width: 30px;
height: 23px;
background-color: white;
margin: 1px;
}
.vc_layout-switcher .<API key> {
background-color: transparent;
display: block;
width: auto;
height: auto;
margin: 4px 0 3px;
font-size: 11px;
text-align: center;
}
.vc_layout-switcher .l_1 {
background-image: url(../vc/fe/row_layouts/1.gif);
}
.vc_layout-switcher .l_12_12 {
background-image: url(../vc/fe/row_layouts/12_12.gif);
}
.vc_layout-switcher .l_23_13 {
background-image: url(../vc/fe/row_layouts/23_13.gif);
}
.vc_layout-switcher .l_13_13_13 {
background-image: url(../vc/fe/row_layouts/13_13_13.gif);
}
.vc_layout-switcher .l_13_23 {
background-image: url(../vc/fe/row_layouts/13_23.gif);
}
.vc_layout-switcher .l_14_14_14_14 {
background-image: url(../vc/fe/row_layouts/14_14_14_14.gif);
}
.vc_layout-switcher .l_14_34 {
background-image: url(../vc/fe/row_layouts/14_34.gif);
}
.vc_layout-switcher .l_14_12_14 {
background-image: url(../vc/fe/row_layouts/14_12_14.gif);
}
.vc_layout-switcher .l_56_16 {
background-image: url(../vc/fe/row_layouts/56_16.gif);
}
.vc_layout-switcher .l_16_46_16 {
background-image: url(../vc/fe/row_layouts/14_46_16.gif);
}
.vc_layout-switcher .l_16_16_16_12 {
background-image: url(../vc/fe/row_layouts/16_16_16_12.gif);
}
.vc_layout-switcher .l_16_16_16_16_16_16 {
background-image: url(../vc/fe/row_layouts/16_16_16_16_16_16.gif);
}
.vc_controls-visible {
opacity: 1 !important;
filter: alpha(opacity=100) !important;
visibility: visible;
}
.<API key> {
background: #f9b418;
border-color: #f9b418;
}
.<API key> .vc_control-btn .vc_btn-content:hover {
background-color: #e78800;
}
.<API key> {
background: #285a85;
border-color: #285a85;
top: -17px !important;
direction: ltr !important;
}
.<API key> .vc_btn-content:hover {
background-color: #032644;
}
.vc_controls {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.vc_controls > div {
border-radius: 3px;
}
.vc_controls > div > :first-child .vc_btn-content {
<API key>: 3px;
<API key>: 3px;
}
.vc_controls > div > :last-child .vc_btn-content {
<API key>: 3px;
<API key>: 3px;
}
.vc_column_color,
.vc_color-helper {
margin-top: 3px;
width: 16px;
height: 16px;
display: inline-block;
margin-right: 3px;
border-radius: 8px;
}
.vc_column_image,
.vc_image-helper {
margin-top: 3px;
width: 16px;
height: 16px;
display: inline-block;
margin-right: 3px;
background-size: cover;
border-radius: 8px;
}
.vc_icon {
width: 16px;
height: 16px;
display: inline-block;
background: transparent url('../vc/controls.png') no-repeat -16px 0px;
}
.vc_control {
display: inline-block;
border-radius: 2px 2px 0 0;
border: 1px solid transparent;
padding: 0;
cursor: pointer;
}
.vc_control.column_add .vc_icon,
.vc_control .vc-controls-add .vc_icon {
background-position: -16px -16px;
}
.vc_control.column_delete .vc_icon,
.vc_control .vc-controls-delete .vc_icon {
background-position: -16px -64px;
}
.vc_control.column_clone .vc_icon,
.vc_control .vc-controls-clone .vc_icon {
background-position: -16px -48px;
}
.vc_control.column_edit .vc_icon,
.vc_control .vc-controls-edit .vc_icon {
background-position: -16px -32px;
}
.vc_control.column_toggle .vc_icon,
.vc_control .vc-controls-toggle .vc_icon {
background-position: -16px -96px;
}
.vc_control.column_move,
.vc_control .vc-controls-move {
cursor: move;
float: left;
}
.vc_control:hover .vc_icon {
opacity: 0.7;
}
.controls_row,
.vc_controls-row {
text-align: center;
line-height: 1px;
position: relative;
z-index: 1;
visibility: visible;
opacity: 1;
height: auto;
}
.controls_row:hover,
.vc_controls-row:hover {
z-index: 10;
}
.controls_row .vc_control,
.vc_controls-row .vc_control {
background-color: #e6e6e6;
padding: 3px 8px;
}
.controls_row .column_add,
.vc_controls-row .column_add,
.controls_row .<API key>,
.vc_controls-row .<API key> {
float: left;
margin-left: 1px;
}
.controls_row .vc_row_layouts,
.vc_controls-row .vc_row_layouts,
.controls_row .<API key>,
.vc_controls-row .<API key> {
display: block;
height: 16px;
overflow: hidden;
float: left;
padding: 0px 0px 6px 0;
text-align: left;
margin-left: 1px;
background: #e6e6e6;
border: 1px solid transparent;
border-radius: 2px 2px 0 0;
}
.controls_row .vc_row_layouts .vc_active,
.vc_controls-row .vc_row_layouts .vc_active,
.controls_row .<API key> .vc_active,
.vc_controls-row .<API key> .vc_active {
display: inline-block;
}
.controls_row .vc_row_layouts:hover,
.vc_controls-row .vc_row_layouts:hover,
.controls_row .<API key>:hover,
.vc_controls-row .<API key>:hover {
width: auto;
height: auto;
/*max-width: 353px;*/
position: absolute;
left: 34px;
}
.controls_row .vc_row_layouts:hover a,
.vc_controls-row .vc_row_layouts:hover a,
.controls_row .<API key>:hover a,
.vc_controls-row .<API key>:hover a {
display: inline-block;
}
.controls_row .vc_row_layouts:hover a:hover,
.vc_controls-row .vc_row_layouts:hover a:hover,
.controls_row .<API key>:hover a:hover,
.vc_controls-row .<API key>:hover a:hover,
.controls_row .vc_row_layouts:hover a.vc_active,
.vc_controls-row .vc_row_layouts:hover a.vc_active,
.controls_row .<API key>:hover a.vc_active,
.vc_controls-row .<API key>:hover a.vc_active {
background-color: #FBEED5;
}
.controls_row .<API key>,
.vc_controls-row .<API key> {
background-image: url(../vc/row_layouts/1.gif);
background-position: center center;
background-repeat: no-repeat;
display: none;
border: none;
width: 32px;
height: 20px;
background-color: transparent;
cursor: pointer;
}
.controls_row .<API key>:active,
.vc_controls-row .<API key>:active {
outline: none;
}
.controls_row .<API key>.vc_active,
.vc_controls-row .<API key>.vc_active {
background-color: transparent;
}
.controls_row .<API key>.custom_columns,
.vc_controls-row .<API key>.custom_columns {
background-image: none;
border-bottom: 1px dotted;
font-size: 11px;
height: auto;
line-height: 12px;
margin: 0 3px;
padding: 4px 0 0 0;
width: auto;
}
.controls_row .<API key>.l_12_12,
.vc_controls-row .<API key>.l_12_12 {
background-image: url(../vc/row_layouts/12_12.gif);
}
.controls_row .<API key>.l_23_13,
.vc_controls-row .<API key>.l_23_13 {
background-image: url(../vc/row_layouts/23_13.gif);
}
.controls_row .<API key>.l_13_13_13,
.vc_controls-row .<API key>.l_13_13_13 {
background-image: url(../vc/row_layouts/13_13_13.gif);
}
.controls_row .<API key>.l_13_23,
.vc_controls-row .<API key>.l_13_23 {
background-image: url(../vc/row_layouts/13_23.gif);
}
.controls_row .<API key>.l_14_14_14_14,
.vc_controls-row .<API key>.l_14_14_14_14 {
background-image: url(../vc/row_layouts/14_14_14_14.gif);
}
.controls_row .<API key>.l_23_13,
.vc_controls-row .<API key>.l_23_13 {
background-image: url(../vc/row_layouts/23_13.gif);
}
.controls_row .<API key>.l_14_34,
.vc_controls-row .<API key>.l_14_34 {
background-image: url(../vc/row_layouts/14_34.gif);
}
.controls_row .<API key>.l_14_12_14,
.vc_controls-row .<API key>.l_14_12_14 {
background-image: url(../vc/row_layouts/14_12_14.gif);
}
.controls_row .<API key>.l_56_16,
.vc_controls-row .<API key>.l_56_16 {
background-image: url(../vc/row_layouts/56_16.gif);
}
.controls_row .<API key>.l_16_46_16,
.vc_controls-row .<API key>.l_16_46_16 {
background-image: url(../vc/row_layouts/14_46_16.gif);
}
.controls_row .<API key>.l_16_16_16_12,
.vc_controls-row .<API key>.l_16_16_16_12 {
background-image: url(../vc/row_layouts/16_16_16_12.gif);
}
.controls_row .<API key>.l_16_16_16_16_16_16,
.vc_controls-row .<API key>.l_16_16_16_16_16_16 {
background-image: url(../vc/row_layouts/16_16_16_16_16_16.gif);
}
.controls_row .<API key> .vc_control,
.vc_controls-row .<API key> .vc_control {
float: right;
background-position: center center;
background-repeat: no-repeat;
margin-left: 1px;
-webkit-box-shadow: none !important;
-moz-box-shadow: none !important;
box-shadow: none !important;
}
.controls_row .vc_row_color,
.vc_controls-row .vc_row_color {
float: right;
margin-top: 3px;
width: 16px;
height: 16px;
display: block;
margin-right: 3px;
border-radius: 8px;
}
.controls_row .vc_row_image,
.vc_controls-row .vc_row_image {
float: right;
margin-top: 3px;
width: 16px;
height: 16px;
display: block;
margin-right: 3px;
background-size: cover;
border-radius: 8px;
}
.vc_control-align .vc_control {
display: none;
border: 0;
margin: 0;
}
.vc_control-align .vc_control.vc_active {
display: block;
}
.vc_control-align:hover {
position: relative;
height: 15px;
width: 20px;
z-index: 10;
}
.vc_control-align:hover .vc_control-wrap {
position: absolute;
background-color: #e6e6e6;
top: -3px;
padding: 2px;
left: 0;
}
.vc_control-align:hover .vc_control-wrap .vc_control {
display: block;
}
.vc_control-align:hover .vc_control-wrap .vc_control.vc_active {
background-color: lightyellow;
}
.<API key> .vc_icon {
background-position: -16px -143px;
}
.<API key> .vc_icon {
background-position: -16px -159px;
}
.<API key> .vc_icon {
background-position: -16px -175px;
}
.controls_column.bottom-controls .column_edit,
.controls_column.bottom-controls .column_delete,
.controls_column.bottom-controls .column_clone {
display: none;
}
.wpb_content_element:hover > .vc_controls {
opacity: 1 !important;
filter: alpha(opacity=100) !important;
visibility: visible;
}
.<API key> .close,
.<API key> .close {
margin-top: 14px;
}
.vc_wp-pointers-prev {
float: none;
margin-right: 6px !important;
}
.vc_wp-pointers-prev .vc_pointer-icon {
position: relative;
}
.vc_wp-pointers-prev .vc_pointer-icon:before {
content: "\f141";
display: inline-block;
-<API key>: antialiased;
font: normal 26px/1 'dashicons';
vertical-align: middle;
width: 20px;
margin: 0 5px 0 -7px;
}
.vc_wp-pointers-next .vc_pointer-icon:before {
content: "\f139";
display: inline-block;
-<API key>: antialiased;
font: normal 26px/1 'dashicons';
vertical-align: middle;
width: 20px;
margin-left: -2px;
}
.<API key> {
margin-right: 63px;
}
.<API key> h4 {
padding: 0 15px;
}
.<API key> iframe {
padding: 0 15px;
}
.wpb_row_container > .wpb_vc_column {
margin-bottom: 15px;
position: relative;
}
.wpb_row_container > .wpb_vc_column > .vc_controls {
text-align: center;
background: #f5f5f5;
width: 100%;
line-height: 1px;
padding: 2px;
height: 24px;
}
.wpb_row_container > .wpb_vc_column > .vc_controls .vc_control {
padding: 0;
}
.wpb_row_container > .wpb_vc_column > .wpb_element_wrapper {
background: #f5f5f5;
padding: 1px 14px 1px;
}
.wpb_row_container > .wpb_vc_column_inner {
margin-bottom: 15px;
position: relative;
}
.wpb_row_container > .wpb_vc_column_inner > .vc_controls {
text-align: center;
background: #ffffff;
width: 100%;
line-height: 1px;
padding: 2px;
height: 24px;
}
.wpb_row_container > .wpb_vc_column_inner > .vc_controls .vc_control {
padding: 0;
}
.wpb_row_container > .wpb_vc_column_inner > .wpb_element_wrapper {
background: #ffffff;
padding: 1px 14px 1px;
}
.wpb_vc_row,
.wpb_vc_row_inner {
/*
> .wpb_element_wrapper {
> .vc_closed {
height: 24px;
overflow: hidden;
}
}
> .controls {
.column_toggle.vc_inverse {
.vc_icon {
background-position: -16px -112px;
}
}
}
*/
}
.wpb_vc_row > .controls > .column_move,
.wpb_vc_row_inner > .controls > .column_move {
background-color: #f5f5f5;
}
.wpb_vc_row > .controls .column_delete:hover,
.wpb_vc_row_inner > .controls .column_delete:hover {
background-color: #FFE0E0;
}
.vc_collapsed-row > .wpb_element_wrapper > .<API key> {
height: 39px;
overflow: hidden;
}
.vc_collapsed-row > .wpb_element_wrapper > .<API key> > .wpb_vc_column .vc_controls,
.vc_collapsed-row > .wpb_element_wrapper > .<API key> .wpb_vc_column_inner .vc_controls {
border-bottom: 1px solid transparent;
border-left: 1px solid transparent;
border-right: 1px solid transparent;
<API key>: 3px;
<API key>: 3px;
margin-bottom: 15px;
}
.vc_collapsed-row > .controls .column_toggle .vc_icon {
background-position: -16px -112px;
}
.wpb_vc_row_inner > .controls > .column_move {
background-color: #FFFFFF;
}
.wpb_vc_row_inner.wpb_sortable {
margin-bottom: -15px;
}
.vc_empty-container {
outline: 1px dotted #e6e6e6;
background: transparent url('../vc/empty_row.png') no-repeat center center;
min-height: 50px;
cursor: pointer;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.vc_empty-container:hover {
opacity: 0.5;
}
.vc_empty-column > .vc_controls .column_add {
display: none;
}
.<API key> {
margin: 4px 0 0 0;
background-position: 10px 35px;
background-repeat: no-repeat;
background-color: #fff;
}
.<API key> .<API key> {
margin: 0 10px;
}
.<API key> > .controls_column {
text-align: center;
width: 100%;
line-height: 1px;
padding: 2px;
height: 24px;
}
.<API key> > .wpb_element_wrapper {
position: relative;
}
.<API key> > .wpb_element_wrapper > .wpb_element_title {
position: absolute;
top: 11px;
left: 10px;
margin: 0;
}
.<API key> > .wpb_element_wrapper > .<API key> {
margin: 0 10px 0 52px;
outline: 1px dotted #e6e6e6;
min-height: 55px;
}
.wpb_vc_item.wpb_content_element > .wpb_element_wrapper {
background-image: url(../vc/item_icon.png);
background-position: 8px 7px;
min-height: 13px;
height: 13px;
padding-left: 32px;
}
.wpb_content_element,
.wpb_vc_row_inner {
margin: 4px 0 0 0;
}
.<API key> > *:first-child {
margin-top: 0;
}
.wpb_content_element {
position: relative;
/*
> .controls {
color: #ffffff;
opacity: 0;
position: absolute;
top: 5px;
left: -9999px;
z-index: 200;
transition: opacity 0.3s linear;
-moz-transition: opacity 0.3s linear;
-webkit-transition: opacity 0.3s linear;
-o-transition: opacity 0.3s linear;
a {
display: inline-block;
width: 12px;
height: 16px;
&:hover {
opacity: 0.7;
}
}
.column_edit {
background: url(../vc/edit.png) no-repeat center center;
}
.column_clone {
background: url(../vc/clone.png) no-repeat center center;
}
.column_delete {
background: url(../vc/remove.png) no-repeat center center;
}
}
*/
}
.wpb_content_element:hover > div.controls {
opacity: 1;
right: 5px;
left: auto;
}
.wpb_content_element .wpb_element_title {
margin: 0 !important;
}
.wpb_content_element > .wpb_element_wrapper {
padding: 10px;
border: 1px solid transparent;
-<API key>: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
background-color: #ffffff;
background-position: 10px 10px;
background-repeat: no-repeat;
min-height: 33px;
/*overflow: hidden;*/
/* overflow causes controls "cutting" in complex element */
}
.wpb_content_element > .wpb_element_wrapper > .wpb_element_title .vc_element-icon {
float: left;
margin-right: 10px;
}
#poststuff .wpb_vc_accordion > .vc_controls {
opacity: 1 !important;
filter: alpha(opacity=100) !important;
visibility: visible;
position: relative;
height: 23px;
margin: 18px 0 2px 0;
border: 1px dotted #e6e6e6;
border-bottom-width: 0;
}
#poststuff .wpb_vc_accordion > .wpb_element_wrapper {
padding: 0;
height: auto;
background: none;
}
#poststuff .wpb_vc_accordion .ui-icon {
background: transparent url(../vc/controls.png) no-repeat -16px -16px;
width: 16px;
height: 16px;
position: absolute;
left: 19px;
top: 18px;
margin-top: 0;
display: block;
}
#poststuff .wpb_vc_accordion .ui-accordion-header {
-<API key>: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
padding: 16px;
background: #ffffff;
margin-bottom: 3px;
}
#poststuff .wpb_vc_accordion .ui-accordion-header.ui-state-active {
background: #FFFFFF;
border: 1px solid transparent;
<API key>: 0;
<API key>: 0;
margin-bottom: 0;
}
#poststuff .wpb_vc_accordion .ui-accordion-header.ui-state-active .ui-icon {
background-position: -16px -128px;
}
#poststuff .wpb_vc_accordion .tab-label {
margin-left: 23px;
color: #6f777d;
font-size: 14px;
}
#poststuff .wpb_vc_accordion .<API key>.<API key> {
overflow: visible;
margin-bottom: 3px;
}
#poststuff .wpb_vc_accordion .tab_controls {
-<API key>: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
background: #ffffff;
}
#poststuff .wpb_vc_accordion .tab_controls .add_tab {
opacity: 0.7;
cursor: pointer;
color: #b0b4b8;
padding: 16px;
position: relative;
width: 100%;
height: 16px;
display: block;
}
#poststuff .wpb_vc_accordion .tab_controls .add_tab .vc_icon {
background-position: -16px -16px;
position: absolute;
left: 19px;
top: 18px;
}
.wpb_vc_button .wpb_element_wrapper {
background-image: none;
padding-left: 10px;
height: auto;
min-height: inherit;
}
.wpb_vc_button .wpb_button {
display: inline-block;
position: relative;
padding: 5px 10px 4px;
margin-bottom: 0;
color: #333333;
text-align: center;
vertical-align: middle;
cursor: default;
background-color: #f5f5f5;
background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
background-image: -ms-linear-gradient(top, #ffffff, #e6e6e6);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
background-image: -<API key>(top, #ffffff, #e6e6e6);
background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
background-image: linear-gradient(top, #ffffff, #e6e6e6);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#e6e6e6', GradientType=0);
border-color: #e6e6e6 #e6e6e6 #bfbfbf;
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
border: 1px solid #cccccc;
border-bottom-color: #b3b3b3;
-<API key>: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}
.wpb_vc_button .wpb_button i.icon {
margin-bottom: -3px;
margin-left: 10px;
top: -2px;
position: relative;
width: 16px;
height: 16px;
}
.wpb_vc_button .btn-large {
padding: 9px 14px 7px;
font-size: 110%;
-<API key>: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
.wpb_vc_button .btn-large i.icon {
margin-bottom: -3px;
margin-left: 14px;
top: -1px;
}
.wpb_vc_button .btn-small {
padding: 5px 9px 3px;
font-size: 90%;
}
.wpb_vc_button .btn-small i.icon {
margin-left: 8px;
margin-bottom: -4px;
top: -3px;
}
.wpb_vc_button .btn-mini {
padding: 3px 6px 2px;
font-size: 85%;
}
.wpb_vc_button .btn-mini i.icon {
display: none !important;
}
.wpb_vc_button .btn-primary,
.wpb_vc_button .btn-warning,
.wpb_vc_button .btn-danger,
.wpb_vc_button .btn-success,
.wpb_vc_button .btn-info,
.wpb_vc_button .btn-inverse,
option.btn-primary,
select.btn-primary,
option.btn-info,
select.btn-info,
option.btn-success,
select.btn-success,
option.btn-warning,
select.btn-warning,
option.btn-inverse,
select.btn-inverse,
option.btn-danger,
select.btn-danger {
color: #ffffff;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.wpb_vc_button .btn-primary,
option.btn-primary,
select.btn-primary {
background-color: #0074cc;
background-image: -moz-linear-gradient(top, #0088cc, #0055cc);
background-image: -ms-linear-gradient(top, #0088cc, #0055cc);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0055cc));
background-image: -<API key>(top, #0088cc, #0055cc);
background-image: -o-linear-gradient(top, #0088cc, #0055cc);
background-image: linear-gradient(top, #0088cc, #0055cc);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0055cc', GradientType=0);
border-color: #0055cc #0055cc #003580;
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
*background-color: #0055cc;
/* Darken IE7 buttons by default so they stand out more given they won't have borders */
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}
.wpb_vc_button .btn-info,
option.btn-info,
select.btn-info {
background-color: #49afcd;
background-image: -moz-linear-gradient(top, #5bc0de, #2f96b4);
background-image: -ms-linear-gradient(top, #5bc0de, #2f96b4);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#2f96b4));
background-image: -<API key>(top, #5bc0de, #2f96b4);
background-image: -o-linear-gradient(top, #5bc0de, #2f96b4);
background-image: linear-gradient(top, #5bc0de, #2f96b4);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#5bc0de', endColorstr='#2f96b4', GradientType=0);
border-color: #2f96b4 #2f96b4 #1f6377;
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
*background-color: #2f96b4;
/* Darken IE7 buttons by default so they stand out more given they won't have borders */
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}
.wpb_vc_button .btn-success,
option.btn-success,
select.btn-success {
background-color: #5bb75b;
background-image: -moz-linear-gradient(top, #62c462, #51a351);
background-image: -ms-linear-gradient(top, #62c462, #51a351);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351));
background-image: -<API key>(top, #62c462, #51a351);
background-image: -o-linear-gradient(top, #62c462, #51a351);
background-image: linear-gradient(top, #62c462, #51a351);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#62c462', endColorstr='#51a351', GradientType=0);
border-color: #51a351 #51a351 #387038;
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
*background-color: #51a351;
/* Darken IE7 buttons by default so they stand out more given they won't have borders */
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}
.wpb_vc_button .btn-warning,
option.btn-warning,
select.btn-warning {
background-color: #faa732;
background-image: -moz-linear-gradient(top, #fbb450, #f89406);
background-image: -ms-linear-gradient(top, #fbb450, #f89406);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406));
background-image: -<API key>(top, #fbb450, #f89406);
background-image: -o-linear-gradient(top, #fbb450, #f89406);
background-image: linear-gradient(top, #fbb450, #f89406);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fbb450', endColorstr='#f89406', GradientType=0);
border-color: #f89406 #f89406 #ad6704;
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
*background-color: #f89406;
/* Darken IE7 buttons by default so they stand out more given they won't have borders */
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}
.wpb_vc_button .btn-inverse,
option.btn-inverse,
select.btn-inverse {
background-color: #414141;
background-image: -moz-linear-gradient(top, #555555, #222222);
background-image: -ms-linear-gradient(top, #555555, #222222);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#555555), to(#222222));
background-image: -<API key>(top, #555555, #222222);
background-image: -o-linear-gradient(top, #555555, #222222);
background-image: linear-gradient(top, #555555, #222222);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#555555', endColorstr='#222222', GradientType=0);
border-color: #222222 #222222 #000000;
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
*background-color: #222222;
/* Darken IE7 buttons by default so they stand out more given they won't have borders */
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}
.wpb_vc_button .btn-danger,
option.btn-danger,
select.btn-danger {
background-color: #da4f49;
background-image: -moz-linear-gradient(top, #ee5f5b, #bd362f);
background-image: -ms-linear-gradient(top, #ee5f5b, #bd362f);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f));
background-image: -<API key>(top, #ee5f5b, #bd362f);
background-image: -o-linear-gradient(top, #ee5f5b, #bd362f);
background-image: linear-gradient(top, #ee5f5b, #bd362f);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#bd362f', GradientType=0);
border-color: #bd362f #bd362f #802420;
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
*background-color: #bd362f;
/* Darken IE7 buttons by default so they stand out more given they won't have borders */
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}
.wpb_vc_column_text > .wpb_element_wrapper,
.wpb_vc_message > .wpb_element_wrapper,
.wpb_vc_toggle > .wpb_element_wrapper {
height: auto;
min-height: 1px;
background-image: none;
padding-left: 10px;
}
.wpb_vc_column_text > .wpb_element_wrapper p:first-child,
.wpb_vc_message > .wpb_element_wrapper p:first-child,
.wpb_vc_toggle > .wpb_element_wrapper p:first-child {
margin-top: 0;
}
.wpb_vc_column_text > .wpb_element_wrapper p:last-child,
.wpb_vc_message > .wpb_element_wrapper p:last-child,
.wpb_vc_toggle > .wpb_element_wrapper p:last-child {
margin-bottom: 0;
}
.wpb_vc_column_text > .wpb_element_wrapper > .wpb_vc_param_value.textarea_html,
.wpb_vc_message > .wpb_element_wrapper > .wpb_vc_param_value.textarea_html,
.wpb_vc_toggle > .wpb_element_wrapper > .wpb_vc_param_value.textarea_html {
overflow: hidden;
}
.wpb_vc_column_text > .wpb_element_wrapper > .wpb_vc_param_value.textarea_html img,
.wpb_vc_message > .wpb_element_wrapper > .wpb_vc_param_value.textarea_html img,
.wpb_vc_toggle > .wpb_element_wrapper > .wpb_vc_param_value.textarea_html img {
max-width: 100%;
height: auto;
}
/*
.wpb_vc_cta_button {
> .wpb_element_wrapper {
background-image: url(../vc/elements_icons/cta_align_right.png);
}
> .cta_align_left.wpb_element_wrapper {
background-image: url(../vc/elements_icons/cta_align_left.png);
}
> .cta_align_bottom.wpb_element_wrapper {
background-image: url(../vc/elements_icons/cta_align_bottom.png);
}
}
*/
.wpb_vc_gallery .column_edit_trigger,
.<API key> .column_edit_trigger {
margin-top: 2px;
}
.wpb_vc_gallery .<API key>,
.<API key> .<API key> {
overflow: hidden;
height: 20px;
padding: 0px;
margin: 0;
}
.wpb_vc_gallery .<API key> li,
.<API key> .<API key> li {
height: 20px;
width: 20px;
overflow: hidden;
margin-right: 1px;
margin-bottom: 0;
display: inline-block;
}
.wpb_vc_gallery .<API key> li .icon-remove,
.<API key> .<API key> li .icon-remove {
display: none;
}
.wpb_vc_gallery .<API key> img,
.<API key> .<API key> img {
height: 20px;
width: auto;
}
.wpb_vc_message .messagebox_text {
padding-left: 24px;
}
.wpb_vc_message .alert {
color: #C09853;
background-color: #FCF8E3;
border-color: #FBEED5;
}
.wpb_vc_message .alert .messagebox_text {
background: url(../vc/alert.png) no-repeat left center;
}
.wpb_vc_message .alert-info {
color: #3A87AD;
background-color: #D9EDF7;
border-color: #BCE8F1;
}
.wpb_vc_message .alert-info .messagebox_text {
background: url(../vc/info.png) no-repeat left center;
}
.wpb_vc_message .alert-success {
color: #468847;
background-color: #DFF0D8;
border-color: #D6E9C6;
}
.wpb_vc_message .alert-success .messagebox_text {
background: url(../vc/tick.png) no-repeat left center;
}
.wpb_vc_message .alert-danger {
color: #B94A48;
background-color: #F2DEDE;
border-color: #EED3D7;
}
.wpb_vc_message .alert-danger .messagebox_text {
background: url(../vc/exclamation.png) no-repeat left center;
}
.wpb_element_wrapper {
}
.wpb_element_wrapper .vc_message_box {
border: 1px solid transparent;
display: block;
overflow: hidden;
margin: 0 0 21.73913043px 0;
padding: 1em 1em 1em 4em;
position: relative;
font-size: 1em;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.wpb_element_wrapper .vc_message_box > p:first-child {
margin-top: 0;
}
.wpb_element_wrapper .vc_message_box > p:last-child {
margin-bottom: 0;
}
.wpb_element_wrapper .vc_message_box-icon {
bottom: 0;
font-size: 1em;
font-style: normal;
font-weight: normal;
left: 0;
position: absolute;
top: 0;
width: 4em;
}
.wpb_element_wrapper .vc_message_box-icon > * {
font-size: 1.7em;
line-height: 1;
font-weight: normal;
font-style: normal;
left: 50%;
position: absolute;
top: 50%;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
-o-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
.wpb_element_wrapper .vc_message_box-icon > .fa {
font-size: 1.7em;
line-height: 1;
}
.wpb_element_wrapper .vc_color-blue.vc_message_box {
color: #364a8a;
border-color: #c5cff0;
background-color: #edf1fa;
}
.wpb_element_wrapper .vc_color-blue.vc_message_box .vc_message_box-icon {
color: #5472d2;
}
.wpb_element_wrapper .vc_color-blue.<API key> {
color: #ffffff;
border-color: transparent;
background-color: #5472d2;
}
.wpb_element_wrapper .vc_color-blue.<API key> .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .vc_color-blue.<API key>,
.wpb_element_wrapper .vc_color-blue.<API key> {
color: #364a8a;
border-color: #5472d2;
background-color: transparent;
}
.wpb_element_wrapper .vc_color-blue.<API key> .vc_message_box-icon,
.wpb_element_wrapper .vc_color-blue.<API key> .vc_message_box-icon {
color: #5472d2;
}
.wpb_element_wrapper .vc_color-blue.<API key> .vc_message_box-icon {
color: #ffffff;
background-color: #5472d2;
}
.wpb_element_wrapper .vc_color-blue.vc_message_box-3d {
box-shadow: 0 5px 0 #9daee5;
}
.wpb_element_wrapper .vc_color-turquoise.vc_message_box {
color: #085b61;
border-color: #c6ecee;
background-color: #ebfcfd;
}
.wpb_element_wrapper .vc_color-turquoise.vc_message_box .vc_message_box-icon {
color: #00c1cf;
}
.wpb_element_wrapper .vc_color-turquoise.<API key> {
color: #ffffff;
border-color: transparent;
background-color: #00c1cf;
}
.wpb_element_wrapper .vc_color-turquoise.<API key> .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .vc_color-turquoise.<API key>,
.wpb_element_wrapper .vc_color-turquoise.<API key> {
color: #085b61;
border-color: #00c1cf;
background-color: transparent;
}
.wpb_element_wrapper .vc_color-turquoise.<API key> .vc_message_box-icon,
.wpb_element_wrapper .vc_color-turquoise.<API key> .vc_message_box-icon {
color: #00c1cf;
}
.wpb_element_wrapper .vc_color-turquoise.<API key> .vc_message_box-icon {
color: #ffffff;
background-color: #00c1cf;
}
.wpb_element_wrapper .vc_color-turquoise.vc_message_box-3d {
box-shadow: 0 5px 0 #9fdee3;
}
.wpb_element_wrapper .vc_color-pink.vc_message_box {
color: #d82e21;
border-color: #ffd8d6;
background-color: #fff0ef;
}
.wpb_element_wrapper .vc_color-pink.vc_message_box .vc_message_box-icon {
color: #fe6c61;
}
.wpb_element_wrapper .vc_color-pink.<API key> {
color: #ffffff;
border-color: transparent;
background-color: #fe6c61;
}
.wpb_element_wrapper .vc_color-pink.<API key> .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .vc_color-pink.<API key>,
.wpb_element_wrapper .vc_color-pink.<API key> {
color: #d82e21;
border-color: #fe6c61;
background-color: transparent;
}
.wpb_element_wrapper .vc_color-pink.<API key> .vc_message_box-icon,
.wpb_element_wrapper .vc_color-pink.<API key> .vc_message_box-icon {
color: #fe6c61;
}
.wpb_element_wrapper .vc_color-pink.<API key> .vc_message_box-icon {
color: #ffffff;
background-color: #fe6c61;
}
.wpb_element_wrapper .vc_color-pink.vc_message_box-3d {
box-shadow: 0 5px 0 #fea9a3;
}
.wpb_element_wrapper .vc_color-violet.vc_message_box {
color: #5e4a81;
border-color: #d4c8e9;
background-color: #f0ecf7;
}
.wpb_element_wrapper .vc_color-violet.vc_message_box .vc_message_box-icon {
color: #8d6dc4;
}
.wpb_element_wrapper .vc_color-violet.<API key> {
color: #ffffff;
border-color: transparent;
background-color: #8d6dc4;
}
.wpb_element_wrapper .vc_color-violet.<API key> .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .vc_color-violet.<API key>,
.wpb_element_wrapper .vc_color-violet.<API key> {
color: #5e4a81;
border-color: #8d6dc4;
background-color: transparent;
}
.wpb_element_wrapper .vc_color-violet.<API key> .vc_message_box-icon,
.wpb_element_wrapper .vc_color-violet.<API key> .vc_message_box-icon {
color: #8d6dc4;
}
.wpb_element_wrapper .vc_color-violet.<API key> .vc_message_box-icon {
color: #ffffff;
background-color: #8d6dc4;
}
.wpb_element_wrapper .vc_color-violet.vc_message_box-3d {
box-shadow: 0 5px 0 #b8a3da;
}
.wpb_element_wrapper .vc_color-peacoc.vc_message_box {
color: #366a79;
border-color: #c2e3ec;
background-color: #e9f5f8;
}
.wpb_element_wrapper .vc_color-peacoc.vc_message_box .vc_message_box-icon {
color: #4cadc9;
}
.wpb_element_wrapper .vc_color-peacoc.<API key> {
color: #ffffff;
border-color: transparent;
background-color: #4cadc9;
}
.wpb_element_wrapper .vc_color-peacoc.<API key> .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .vc_color-peacoc.<API key>,
.wpb_element_wrapper .vc_color-peacoc.<API key> {
color: #366a79;
border-color: #4cadc9;
background-color: transparent;
}
.wpb_element_wrapper .vc_color-peacoc.<API key> .vc_message_box-icon,
.wpb_element_wrapper .vc_color-peacoc.<API key> .vc_message_box-icon {
color: #4cadc9;
}
.wpb_element_wrapper .vc_color-peacoc.<API key> .vc_message_box-icon {
color: #ffffff;
background-color: #4cadc9;
}
.wpb_element_wrapper .vc_color-peacoc.vc_message_box-3d {
box-shadow: 0 5px 0 #9ad1e1;
}
.wpb_element_wrapper .vc_color-chino.vc_message_box {
color: #978258;
border-color: #e5ded2;
background-color: #f7f5f2;
}
.wpb_element_wrapper .vc_color-chino.vc_message_box .vc_message_box-icon {
color: #cec2ab;
}
.wpb_element_wrapper .vc_color-chino.<API key> {
color: #ffffff;
border-color: transparent;
background-color: #cec2ab;
}
.wpb_element_wrapper .vc_color-chino.<API key> .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .vc_color-chino.<API key>,
.wpb_element_wrapper .vc_color-chino.<API key> {
color: #978258;
border-color: #cec2ab;
background-color: transparent;
}
.wpb_element_wrapper .vc_color-chino.<API key> .vc_message_box-icon,
.wpb_element_wrapper .vc_color-chino.<API key> .vc_message_box-icon {
color: #cec2ab;
}
.wpb_element_wrapper .vc_color-chino.<API key> .vc_message_box-icon {
color: #ffffff;
background-color: #cec2ab;
}
.wpb_element_wrapper .vc_color-chino.vc_message_box-3d {
box-shadow: 0 5px 0 #d2c7b1;
}
.wpb_element_wrapper .<API key>.vc_message_box {
color: #1e1b22;
border-color: #d0ccd6;
background-color: #eae8ed;
}
.wpb_element_wrapper .<API key>.vc_message_box .vc_message_box-icon {
color: #50485b;
}
.wpb_element_wrapper .<API key>.<API key> {
color: #ffffff;
border-color: transparent;
background-color: #50485b;
}
.wpb_element_wrapper .<API key>.<API key> .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .<API key>.<API key>,
.wpb_element_wrapper .<API key>.<API key> {
color: #1e1b22;
border-color: #50485b;
background-color: transparent;
}
.wpb_element_wrapper .<API key>.<API key> .vc_message_box-icon,
.wpb_element_wrapper .<API key>.<API key> .vc_message_box-icon {
color: #50485b;
}
.wpb_element_wrapper .<API key>.<API key> .vc_message_box-icon {
color: #ffffff;
background-color: #50485b;
}
.wpb_element_wrapper .<API key>.vc_message_box-3d {
box-shadow: 0 5px 0 #b6afc0;
}
.wpb_element_wrapper .vc_color-vista_blue.vc_message_box {
color: #3e8e5e;
border-color: #bcebcf;
background-color: #e3f7eb;
}
.wpb_element_wrapper .vc_color-vista_blue.vc_message_box .vc_message_box-icon {
color: #75d69c;
}
.wpb_element_wrapper .vc_color-vista_blue.<API key> {
color: #ffffff;
border-color: transparent;
background-color: #75d69c;
}
.wpb_element_wrapper .vc_color-vista_blue.<API key> .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .vc_color-vista_blue.<API key>,
.wpb_element_wrapper .vc_color-vista_blue.<API key> {
color: #3e8e5e;
border-color: #75d69c;
background-color: transparent;
}
.wpb_element_wrapper .vc_color-vista_blue.<API key> .vc_message_box-icon,
.wpb_element_wrapper .vc_color-vista_blue.<API key> .vc_message_box-icon {
color: #75d69c;
}
.wpb_element_wrapper .vc_color-vista_blue.<API key> .vc_message_box-icon {
color: #ffffff;
background-color: #75d69c;
}
.wpb_element_wrapper .vc_color-vista_blue.vc_message_box-3d {
box-shadow: 0 5px 0 #94dfb3;
}
.wpb_element_wrapper .vc_color-orange.vc_message_box {
color: #c3811c;
border-color: #fbe1ba;
background-color: #fef6eb;
}
.wpb_element_wrapper .vc_color-orange.vc_message_box .vc_message_box-icon {
color: #f7be68;
}
.wpb_element_wrapper .vc_color-orange.<API key> {
color: #ffffff;
border-color: transparent;
background-color: #f7be68;
}
.wpb_element_wrapper .vc_color-orange.<API key> .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .vc_color-orange.<API key>,
.wpb_element_wrapper .vc_color-orange.<API key> {
color: #c3811c;
border-color: #f7be68;
background-color: transparent;
}
.wpb_element_wrapper .vc_color-orange.<API key> .vc_message_box-icon,
.wpb_element_wrapper .vc_color-orange.<API key> .vc_message_box-icon {
color: #f7be68;
}
.wpb_element_wrapper .vc_color-orange.<API key> .vc_message_box-icon {
color: #ffffff;
background-color: #f7be68;
}
.wpb_element_wrapper .vc_color-orange.vc_message_box-3d {
box-shadow: 0 5px 0 #f9cd8a;
}
.wpb_element_wrapper .vc_color-sky.vc_message_box {
color: #2a6194;
border-color: #bedaf4;
background-color: #eaf3fb;
}
.wpb_element_wrapper .vc_color-sky.vc_message_box .vc_message_box-icon {
color: #5aa1e3;
}
.wpb_element_wrapper .vc_color-sky.<API key> {
color: #ffffff;
border-color: transparent;
background-color: #5aa1e3;
}
.wpb_element_wrapper .vc_color-sky.<API key> .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .vc_color-sky.<API key>,
.wpb_element_wrapper .vc_color-sky.<API key> {
color: #2a6194;
border-color: #5aa1e3;
background-color: transparent;
}
.wpb_element_wrapper .vc_color-sky.<API key> .vc_message_box-icon,
.wpb_element_wrapper .vc_color-sky.<API key> .vc_message_box-icon {
color: #5aa1e3;
}
.wpb_element_wrapper .vc_color-sky.<API key> .vc_message_box-icon {
color: #ffffff;
background-color: #5aa1e3;
}
.wpb_element_wrapper .vc_color-sky.vc_message_box-3d {
box-shadow: 0 5px 0 #93c1ed;
}
.wpb_element_wrapper .vc_color-green.vc_message_box {
color: #3e562b;
border-color: #c2e1a9;
background-color: #eaf5e2;
}
.wpb_element_wrapper .vc_color-green.vc_message_box .vc_message_box-icon {
color: #6dab3c;
}
.wpb_element_wrapper .vc_color-green.<API key> {
color: #ffffff;
border-color: transparent;
background-color: #6dab3c;
}
.wpb_element_wrapper .vc_color-green.<API key> .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .vc_color-green.<API key>,
.wpb_element_wrapper .vc_color-green.<API key> {
color: #3e562b;
border-color: #6dab3c;
background-color: transparent;
}
.wpb_element_wrapper .vc_color-green.<API key> .vc_message_box-icon,
.wpb_element_wrapper .vc_color-green.<API key> .vc_message_box-icon {
color: #6dab3c;
}
.wpb_element_wrapper .vc_color-green.<API key> .vc_message_box-icon {
color: #ffffff;
background-color: #6dab3c;
}
.wpb_element_wrapper .vc_color-green.vc_message_box-3d {
box-shadow: 0 5px 0 #a7d484;
}
.wpb_element_wrapper .vc_color-juicy_pink.vc_message_box {
color: #a3231f;
border-color: #fbc7c5;
background-color: #fef5f5;
}
.wpb_element_wrapper .vc_color-juicy_pink.vc_message_box .vc_message_box-icon {
color: #f4524d;
}
.wpb_element_wrapper .vc_color-juicy_pink.<API key> {
color: #ffffff;
border-color: transparent;
background-color: #f4524d;
}
.wpb_element_wrapper .vc_color-juicy_pink.<API key> .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .vc_color-juicy_pink.<API key>,
.wpb_element_wrapper .vc_color-juicy_pink.<API key> {
color: #a3231f;
border-color: #f4524d;
background-color: transparent;
}
.wpb_element_wrapper .vc_color-juicy_pink.<API key> .vc_message_box-icon,
.wpb_element_wrapper .vc_color-juicy_pink.<API key> .vc_message_box-icon {
color: #f4524d;
}
.wpb_element_wrapper .vc_color-juicy_pink.<API key> .vc_message_box-icon {
color: #ffffff;
background-color: #f4524d;
}
.wpb_element_wrapper .vc_color-juicy_pink.vc_message_box-3d {
box-shadow: 0 5px 0 #f89895;
}
.wpb_element_wrapper .<API key>.vc_message_box {
color: #c3501c;
border-color: #fbceba;
background-color: #fef1eb;
}
.wpb_element_wrapper .<API key>.vc_message_box .vc_message_box-icon {
color: #f79468;
}
.wpb_element_wrapper .<API key>.<API key> {
color: #ffffff;
border-color: transparent;
background-color: #f79468;
}
.wpb_element_wrapper .<API key>.<API key> .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .<API key>.<API key>,
.wpb_element_wrapper .<API key>.<API key> {
color: #c3501c;
border-color: #f79468;
background-color: transparent;
}
.wpb_element_wrapper .<API key>.<API key> .vc_message_box-icon,
.wpb_element_wrapper .<API key>.<API key> .vc_message_box-icon {
color: #f79468;
}
.wpb_element_wrapper .<API key>.<API key> .vc_message_box-icon {
color: #ffffff;
background-color: #f79468;
}
.wpb_element_wrapper .<API key>.vc_message_box-3d {
box-shadow: 0 5px 0 #f9ac8a;
}
.wpb_element_wrapper .vc_color-purple.vc_message_box {
color: #886389;
border-color: #e3cbe3;
background-color: #f5ecf5;
}
.wpb_element_wrapper .vc_color-purple.vc_message_box .vc_message_box-icon {
color: #b97ebb;
}
.wpb_element_wrapper .vc_color-purple.<API key> {
color: #ffffff;
border-color: transparent;
background-color: #b97ebb;
}
.wpb_element_wrapper .vc_color-purple.<API key> .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .vc_color-purple.<API key>,
.wpb_element_wrapper .vc_color-purple.<API key> {
color: #886389;
border-color: #b97ebb;
background-color: transparent;
}
.wpb_element_wrapper .vc_color-purple.<API key> .vc_message_box-icon,
.wpb_element_wrapper .vc_color-purple.<API key> .vc_message_box-icon {
color: #b97ebb;
}
.wpb_element_wrapper .vc_color-purple.<API key> .vc_message_box-icon {
color: #ffffff;
background-color: #b97ebb;
}
.wpb_element_wrapper .vc_color-purple.vc_message_box-3d {
box-shadow: 0 5px 0 #d1a9d2;
}
.wpb_element_wrapper .vc_color-grace.vc_message_box {
color: #687a2c;
border-color: #b7d650;
background-color: #eaf3cc;
}
.wpb_element_wrapper .vc_color-grace.vc_message_box .vc_message_box-icon {
color: #aed13b;
}
.wpb_element_wrapper .vc_color-grace.<API key> {
color: #ffffff;
border-color: transparent;
background-color: #aed13b;
}
.wpb_element_wrapper .vc_color-grace.<API key> .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .vc_color-grace.<API key>,
.wpb_element_wrapper .vc_color-grace.<API key> {
color: #687a2c;
border-color: #aed13b;
background-color: transparent;
}
.wpb_element_wrapper .vc_color-grace.<API key> .vc_message_box-icon,
.wpb_element_wrapper .vc_color-grace.<API key> .vc_message_box-icon {
color: #aed13b;
}
.wpb_element_wrapper .vc_color-grace.<API key> .vc_message_box-icon {
color: #ffffff;
background-color: #aed13b;
}
.wpb_element_wrapper .vc_color-grace.vc_message_box-3d {
box-shadow: 0 5px 0 #a1c42e;
}
.wpb_element_wrapper .vc_color-black.vc_message_box {
color: #ffffff;
border-color: #2a2a2a;
background-color: #3c3c3c;
}
.wpb_element_wrapper .vc_color-black.vc_message_box .vc_message_box-icon {
color: #2a2a2a;
}
.wpb_element_wrapper .vc_color-black.<API key> {
color: #ffffff;
border-color: transparent;
background-color: #2a2a2a;
}
.wpb_element_wrapper .vc_color-black.<API key> .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .vc_color-black.<API key>,
.wpb_element_wrapper .vc_color-black.<API key> {
color: #ffffff;
border-color: #2a2a2a;
background-color: transparent;
}
.wpb_element_wrapper .vc_color-black.<API key> .vc_message_box-icon,
.wpb_element_wrapper .vc_color-black.<API key> .vc_message_box-icon {
color: #2a2a2a;
}
.wpb_element_wrapper .vc_color-black.<API key> .vc_message_box-icon {
color: #ffffff;
background-color: #2a2a2a;
}
.wpb_element_wrapper .vc_color-black.vc_message_box-3d {
box-shadow: 0 5px 0 #101010;
}
.wpb_element_wrapper .vc_color-grey.vc_message_box {
color: #858585;
border-color: #d2d2d2;
background-color: #ebebeb;
}
.wpb_element_wrapper .vc_color-grey.vc_message_box .vc_message_box-icon {
color: #ebebeb;
}
.wpb_element_wrapper .vc_color-grey.<API key> {
color: #858585;
border-color: transparent;
background-color: #ebebeb;
}
.wpb_element_wrapper .vc_color-grey.<API key> .vc_message_box-icon {
color: #858585;
}
.wpb_element_wrapper .vc_color-grey.<API key>,
.wpb_element_wrapper .vc_color-grey.<API key> {
color: #858585;
border-color: #ebebeb;
background-color: transparent;
}
.wpb_element_wrapper .vc_color-grey.<API key> .vc_message_box-icon,
.wpb_element_wrapper .vc_color-grey.<API key> .vc_message_box-icon {
color: #ebebeb;
}
.wpb_element_wrapper .vc_color-grey.<API key> .vc_message_box-icon {
color: #858585;
background-color: #ebebeb;
}
.wpb_element_wrapper .vc_color-grey.vc_message_box-3d {
box-shadow: 0 5px 0 #b8b8b8;
}
.wpb_element_wrapper .vc_color-white.vc_message_box {
color: #b3b3b3;
border-color: #e6e6e6;
background-color: #ffffff;
}
.wpb_element_wrapper .vc_color-white.vc_message_box .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .vc_color-white.<API key> {
color: #b3b3b3;
border-color: transparent;
background-color: #ffffff;
}
.wpb_element_wrapper .vc_color-white.<API key> .vc_message_box-icon {
color: #b3b3b3;
}
.wpb_element_wrapper .vc_color-white.<API key>,
.wpb_element_wrapper .vc_color-white.<API key> {
color: #b3b3b3;
border-color: #ffffff;
background-color: transparent;
}
.wpb_element_wrapper .vc_color-white.<API key> .vc_message_box-icon,
.wpb_element_wrapper .vc_color-white.<API key> .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .vc_color-white.<API key> .vc_message_box-icon {
color: #b3b3b3;
background-color: #ffffff;
}
.wpb_element_wrapper .vc_color-white.vc_message_box-3d {
box-shadow: 0 5px 0 #cccccc;
}
.wpb_element_wrapper .vc_color-info.vc_message_box {
color: #5e7f96;
border-color: #cfebfe;
background-color: #dff2fe;
}
.wpb_element_wrapper .vc_color-info.vc_message_box .vc_message_box-icon {
color: #56b0ee;
}
.wpb_element_wrapper .vc_color-info.<API key> {
color: #ffffff;
border-color: transparent;
background-color: #56b0ee;
}
.wpb_element_wrapper .vc_color-info.<API key> .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .vc_color-info.<API key>,
.wpb_element_wrapper .vc_color-info.<API key> {
color: #5e7f96;
border-color: #56b0ee;
background-color: transparent;
}
.wpb_element_wrapper .vc_color-info.<API key> .vc_message_box-icon,
.wpb_element_wrapper .vc_color-info.<API key> .vc_message_box-icon {
color: #56b0ee;
}
.wpb_element_wrapper .vc_color-info.<API key> .vc_message_box-icon {
color: #ffffff;
background-color: #56b0ee;
}
.wpb_element_wrapper .vc_color-info.vc_message_box-3d {
box-shadow: 0 5px 0 #9dd6fd;
}
.wpb_element_wrapper .vc_color-success.vc_message_box {
color: #5e7f96;
border-color: #cfebfe;
background-color: #e6fdf8;
}
.wpb_element_wrapper .vc_color-success.vc_message_box .vc_message_box-icon {
color: #1bbc9b;
}
.wpb_element_wrapper .vc_color-success.<API key> {
color: #ffffff;
border-color: transparent;
background-color: #1bbc9b;
}
.wpb_element_wrapper .vc_color-success.<API key> .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .vc_color-success.<API key>,
.wpb_element_wrapper .vc_color-success.<API key> {
color: #5e7f96;
border-color: #1bbc9b;
background-color: transparent;
}
.wpb_element_wrapper .vc_color-success.<API key> .vc_message_box-icon,
.wpb_element_wrapper .vc_color-success.<API key> .vc_message_box-icon {
color: #1bbc9b;
}
.wpb_element_wrapper .vc_color-success.<API key> .vc_message_box-icon {
color: #ffffff;
background-color: #1bbc9b;
}
.wpb_element_wrapper .vc_color-success.vc_message_box-3d {
box-shadow: 0 5px 0 #9dd6fd;
}
.wpb_element_wrapper .vc_color-warning.vc_message_box {
color: #9d8967;
border-color: #ffeccc;
background-color: #fff4e2;
}
.wpb_element_wrapper .vc_color-warning.vc_message_box .vc_message_box-icon {
color: #fcb53f;
}
.wpb_element_wrapper .vc_color-warning.<API key> {
color: #ffffff;
border-color: transparent;
background-color: #fcb53f;
}
.wpb_element_wrapper .vc_color-warning.<API key> .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .vc_color-warning.<API key>,
.wpb_element_wrapper .vc_color-warning.<API key> {
color: #9d8967;
border-color: #fcb53f;
background-color: transparent;
}
.wpb_element_wrapper .vc_color-warning.<API key> .vc_message_box-icon,
.wpb_element_wrapper .vc_color-warning.<API key> .vc_message_box-icon {
color: #fcb53f;
}
.wpb_element_wrapper .vc_color-warning.<API key> .vc_message_box-icon {
color: #ffffff;
background-color: #fcb53f;
}
.wpb_element_wrapper .vc_color-warning.vc_message_box-3d {
box-shadow: 0 5px 0 #ffd999;
}
.wpb_element_wrapper .vc_color-danger.vc_message_box {
color: #a85959;
border-color: #fedede;
background-color: #fdeaea;
}
.wpb_element_wrapper .vc_color-danger.vc_message_box .vc_message_box-icon {
color: #ff7877;
}
.wpb_element_wrapper .vc_color-danger.<API key> {
color: #ffffff;
border-color: transparent;
background-color: #ff7877;
}
.wpb_element_wrapper .vc_color-danger.<API key> .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .vc_color-danger.<API key>,
.wpb_element_wrapper .vc_color-danger.<API key> {
color: #a85959;
border-color: #ff7877;
background-color: transparent;
}
.wpb_element_wrapper .vc_color-danger.<API key> .vc_message_box-icon,
.wpb_element_wrapper .vc_color-danger.<API key> .vc_message_box-icon {
color: #ff7877;
}
.wpb_element_wrapper .vc_color-danger.<API key> .vc_message_box-icon {
color: #ffffff;
background-color: #ff7877;
}
.wpb_element_wrapper .vc_color-danger.vc_message_box-3d {
box-shadow: 0 5px 0 #fdacac;
}
.wpb_element_wrapper .vc_color-alert-info.vc_message_box {
color: #31708f;
border-color: #bce8f1;
background-color: #d9edf7;
}
.wpb_element_wrapper .vc_color-alert-info.vc_message_box .vc_message_box-icon {
color: #31708f;
}
.wpb_element_wrapper .vc_color-alert-info.<API key> {
color: #ffffff;
border-color: transparent;
background-color: #31708f;
}
.wpb_element_wrapper .vc_color-alert-info.<API key> .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .vc_color-alert-info.<API key>,
.wpb_element_wrapper .vc_color-alert-info.<API key> {
color: #31708f;
border-color: #31708f;
background-color: transparent;
}
.wpb_element_wrapper .vc_color-alert-info.<API key> .vc_message_box-icon,
.wpb_element_wrapper .vc_color-alert-info.<API key> .vc_message_box-icon {
color: #31708f;
}
.wpb_element_wrapper .vc_color-alert-info.<API key> .vc_message_box-icon {
color: #ffffff;
background-color: #31708f;
}
.wpb_element_wrapper .vc_color-alert-info.vc_message_box-3d {
box-shadow: 0 5px 0 #91d9e8;
}
.wpb_element_wrapper .vc_color-alert-info.<API key>,
.wpb_element_wrapper .vc_color-alert-info.<API key> {
border-color: #bce8f1;
}
.wpb_element_wrapper .vc_color-alert-info.<API key> .vc_message_box-icon {
background-color: #bce8f1;
}
.wpb_element_wrapper .<API key>.vc_message_box {
color: #3c763d;
border-color: #d6e9c6;
background-color: #dff0d8;
}
.wpb_element_wrapper .<API key>.vc_message_box .vc_message_box-icon {
color: #3c763d;
}
.wpb_element_wrapper .<API key>.<API key> {
color: #ffffff;
border-color: transparent;
background-color: #3c763d;
}
.wpb_element_wrapper .<API key>.<API key> .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .<API key>.<API key>,
.wpb_element_wrapper .<API key>.<API key> {
color: #3c763d;
border-color: #3c763d;
background-color: transparent;
}
.wpb_element_wrapper .<API key>.<API key> .vc_message_box-icon,
.wpb_element_wrapper .<API key>.<API key> .vc_message_box-icon {
color: #3c763d;
}
.wpb_element_wrapper .<API key>.<API key> .vc_message_box-icon {
color: #ffffff;
background-color: #3c763d;
}
.wpb_element_wrapper .<API key>.vc_message_box-3d {
box-shadow: 0 5px 0 #bbdba1;
}
.wpb_element_wrapper .<API key>.<API key>,
.wpb_element_wrapper .<API key>.<API key> {
border-color: #d6e9c6;
}
.wpb_element_wrapper .<API key>.<API key> .vc_message_box-icon {
background-color: #d6e9c6;
}
.wpb_element_wrapper .<API key>.vc_message_box {
color: #8a6d3b;
border-color: #faebcc;
background-color: #fcf8e3;
}
.wpb_element_wrapper .<API key>.vc_message_box .vc_message_box-icon {
color: #8a6d3b;
}
.wpb_element_wrapper .<API key>.<API key> {
color: #ffffff;
border-color: transparent;
background-color: #8a6d3b;
}
.wpb_element_wrapper .<API key>.<API key> .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .<API key>.<API key>,
.wpb_element_wrapper .<API key>.<API key> {
color: #8a6d3b;
border-color: #8a6d3b;
background-color: transparent;
}
.wpb_element_wrapper .<API key>.<API key> .vc_message_box-icon,
.wpb_element_wrapper .<API key>.<API key> .vc_message_box-icon {
color: #8a6d3b;
}
.wpb_element_wrapper .<API key>.<API key> .vc_message_box-icon {
color: #ffffff;
background-color: #8a6d3b;
}
.wpb_element_wrapper .<API key>.vc_message_box-3d {
box-shadow: 0 5px 0 #f5d89e;
}
.wpb_element_wrapper .<API key>.<API key>,
.wpb_element_wrapper .<API key>.<API key> {
border-color: #faebcc;
}
.wpb_element_wrapper .<API key>.<API key> .vc_message_box-icon {
background-color: #faebcc;
}
.wpb_element_wrapper .<API key>.vc_message_box {
color: #a94442;
border-color: #ebccd1;
background-color: #f2dede;
}
.wpb_element_wrapper .<API key>.vc_message_box .vc_message_box-icon {
color: #a94442;
}
.wpb_element_wrapper .<API key>.<API key> {
color: #ffffff;
border-color: transparent;
background-color: #a94442;
}
.wpb_element_wrapper .<API key>.<API key> .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .<API key>.<API key>,
.wpb_element_wrapper .<API key>.<API key> {
color: #a94442;
border-color: #a94442;
background-color: transparent;
}
.wpb_element_wrapper .<API key>.<API key> .vc_message_box-icon,
.wpb_element_wrapper .<API key>.<API key> .vc_message_box-icon {
color: #a94442;
}
.wpb_element_wrapper .<API key>.<API key> .vc_message_box-icon {
color: #ffffff;
background-color: #a94442;
}
.wpb_element_wrapper .<API key>.vc_message_box-3d {
box-shadow: 0 5px 0 #dca7b0;
}
.wpb_element_wrapper .<API key>.<API key>,
.wpb_element_wrapper .<API key>.<API key> {
border-color: #ebccd1;
}
.wpb_element_wrapper .<API key>.<API key> .vc_message_box-icon {
background-color: #ebccd1;
}
.wpb_element_wrapper .vc_color-black.vc_message_box .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .vc_color-black.<API key>,
.wpb_element_wrapper .vc_color-black.<API key> .vc_message_box-icon {
color: #2a2a2a;
}
.wpb_element_wrapper .vc_color-black.<API key> {
color: #2a2a2a;
}
.wpb_element_wrapper .vc_color-grey.vc_message_box .vc_message_box-icon {
color: #858585;
}
.wpb_element_wrapper .vc_color-white.vc_message_box .vc_message_box-icon {
color: #b3b3b3;
}
.wpb_element_wrapper .vc_color-white.<API key>,
.wpb_element_wrapper .vc_color-white.<API key> .vc_message_box-icon {
color: #ffffff;
}
.wpb_element_wrapper .vc_color-white.<API key> {
color: #ffffff;
}
.wpb_element_wrapper .<API key> {
border-width: 2px;
}
.wpb_element_wrapper .<API key> .vc_message_box-icon {
width: 3.25em;
}
.wpb_element_wrapper .<API key> {
border-radius: 5px;
}
.wpb_element_wrapper .<API key> {
border-radius: 4em;
}
.wpb_element_wrapper .vc_message_box p {
font-size: 12px;
padding: 0;
margin: 0;
}
.wpb_element_wrapper .vc_message_box {
margin: 0;
}
.vc_shortcode-param[data-param_name="icon_pixelicons"] .vc-icons-selector .selected-icon {
line-height: 40px;
}
.vc_shortcode-param[data-param_name="icon_pixelicons"] .vc-icons-selector .selected-icon i.vc_pixel_icon {
position: relative;
top: 3px;
}
.wpb_element_wrapper .textarea_raw_html,
.<API key> .textarea_raw_html {
font-family: "Courier New";
color: #AAAAAA;
font-size: 11px;
word-break: break-all;
}
.wpb_element_wrapper .vc_row-fluid .quicktags-toolbar input,
.<API key> .vc_row-fluid .quicktags-toolbar input {
width: auto;
}
.wpb_element_wrapper .vc_dependent-hidden,
.<API key> .vc_dependent-hidden {
display: none !important;
}
.wpb_vc_separator > .wpb_element_wrapper,
.<API key> > .wpb_element_wrapper {
background-image: url(../vc/separator.gif);
background-repeat: repeat-x;
background-position: center center;
padding: 0;
height: 31px;
min-height: 31px;
}
.wpb_vc_separator .textfield,
.<API key> .textfield {
background-color: #FFFFFF;
font-size: 11px;
display: inline-block;
position: relative;
top: 6px;
padding: 0px 10px;
}
.wpb_vc_separator .<API key>,
.<API key> .<API key> {
text-align: center;
}
.wpb_vc_separator .<API key>,
.<API key> .<API key> {
text-align: right;
}
.wpb_vc_separator .<API key> .textfield,
.<API key> .<API key> .textfield {
margin-right: 10px;
}
.wpb_vc_separator .<API key>,
.<API key> .<API key> {
text-align: left;
}
.wpb_vc_separator .<API key> .textfield,
.<API key> .<API key> .textfield {
margin-left: 10px;
}
.wpb_vc_single_image .column_edit_trigger,
.wpb_vc_gallery .column_edit_trigger,
.<API key> .column_edit_trigger {
font-size: 11px;
line-height: 12px;
text-decoration: none;
border-bottom: 1px dotted;
margin-top: 7px;
margin-left: 5px;
}
.wpb_vc_single_image > .wpb_element_wrapper {
height: auto;
}
.wpb_vc_single_image .<API key> {
/*
margin: -18px -48px;
display: block;
width: auto;
height: 32px;
*/
max-width: 32px;
background-image: none;
}
.wpb_vc_single_image .vc_element-icon {
float: left;
margin-right: 10px;
}
.image-exists {
display: none !important;
}
.wpb_vc_tabs > .vc_controls {
opacity: 1 !important;
filter: alpha(opacity=100) !important;
visibility: visible;
position: relative;
height: 23px;
margin: 18px 0 2px 0;
border: 1px dotted #e6e6e6;
border-bottom-width: 0;
}
.wpb_vc_tabs > .wpb_element_wrapper {
padding: 0px;
background: none;
border: none;
height: auto;
}
.wpb_vc_tabs > .wpb_element_wrapper .wpb_tabs_holder,
.wpb_vc_tabs > .wpb_element_wrapper .tabs_controls {
padding: 0;
}
.wpb_vc_tabs > .wpb_element_wrapper .ui-tabs .ui-tabs-nav {
position: relative;
top: 1px;
z-index: 2;
}
.wpb_vc_tabs > .wpb_element_wrapper .ui-tabs .ui-tabs-nav li {
top: -1px;
background: #e6e6e6;
border: 1px solid transparent;
<API key>: 3px;
<API key>: 3px;
margin-right: 3px;
padding: 0;
}
.wpb_vc_tabs > .wpb_element_wrapper .ui-tabs .ui-tabs-nav li a {
color: #848c91;
padding: 10px 16px;
}
.wpb_vc_tabs > .wpb_element_wrapper .ui-tabs .ui-tabs-nav li.add_tab_block {
padding: 11px;
}
.wpb_vc_tabs > .wpb_element_wrapper .ui-tabs .ui-tabs-nav li.add_tab_block a {
padding: 0;
width: 16px;
height: 16px;
display: inline-block;
background: transparent url('../vc/controls.png') no-repeat -16px -16px;
}
.wpb_vc_tabs > .wpb_element_wrapper .ui-tabs .ui-tabs-nav li.ui-tabs-active {
background: #ffffff;
}
.wpb_content_element .ui-tabs .ui-tabs-panel.wpb_vc_tab {
background-color: #ffffff;
}
.wpb_content_element .ui-tabs .ui-tabs-panel.wpb_vc_tab > .vc_controls {
opacity: 1 !important;
filter: alpha(opacity=100) !important;
visibility: visible;
height: 35px;
background: transparent;
position: relative;
}
.wpb_content_element .ui-tabs .ui-tabs-panel.wpb_vc_tab > .bottom-controls {
top: auto;
display: none;
}
.wpb_content_element .ui-tabs .ui-tabs-panel.wpb_vc_tab > .wpb_element_wrapper > .<API key>.empty_container {
height: 80px;
background-position: center center;
}
.wpb_content_element .ui-tabs .ui-tabs-panel.wpb_vc_tab > .wpb_element_wrapper > .<API key> .wpb_vc_column_inner > .controls {
background-color: #f5f5f5;
}
.wpb_content_element .ui-tabs .ui-tabs-panel.wpb_vc_tab > .wpb_element_wrapper > .<API key> .wpb_vc_column_inner > .wpb_element_wrapper {
background-color: #f5f5f5;
padding: 14px;
}
.wpb_content_element .ui-tabs .ui-tabs-panel.wpb_vc_tab > .wpb_element_wrapper > .<API key> .wpb_vc_row_inner > .controls > .column_move {
background-color: #f5f5f5;
}
.<API key> {
background-color: #ffffff;
<API key>: 3px;
<API key>: 3px;
padding: 6px 14px 14px;
}
.<API key> > .vc_controls {
opacity: 1 !important;
filter: alpha(opacity=100) !important;
visibility: visible;
height: 35px;
background: transparent;
}
.<API key> > .bottom-controls {
top: auto;
display: none;
}
.<API key> > .wpb_element_wrapper > .<API key>.empty_container {
height: 80px;
background-position: center center;
}
.<API key> > .wpb_element_wrapper > .<API key> .wpb_vc_column_inner > .controls {
background-color: #f5f5f5;
}
.<API key> > .wpb_element_wrapper > .<API key> .wpb_vc_column_inner > .wpb_element_wrapper {
background-color: #f5f5f5;
padding: 14px;
}
.<API key> > .wpb_element_wrapper > .<API key> .wpb_vc_row_inner > .controls > .column_move {
background-color: #f5f5f5;
}
.wpb_vc_toggle .wpb_element_wrapper {
min-height: 1px;
}
.wpb_vc_toggle .wpb_element_wrapper .vc_toggle_title {
font-size: 1em;
margin: 0 !important;
line-height: inherit;
cursor: pointer;
background: url(../vc/plus.png) left 3px no-repeat;
padding-left: 20px !important;
}
.wpb_vc_toggle .wpb_element_wrapper .<API key> {
background-image: url(../vc/minus.png);
}
.wpb_vc_toggle .wpb_element_wrapper .vc_toggle_content {
display: none;
margin-top: 0.8em;
}
.wpb_vc_toggle .vc_admin_label {
display: none !important;
}
.wpb_vc_tour > .vc_controls {
opacity: 1 !important;
filter: alpha(opacity=100) !important;
visibility: visible;
position: relative;
height: 23px;
margin: 18px 0 2px 0;
border: 1px dotted #e6e6e6;
border-bottom-width: 0;
}
.wpb_vc_tour > .wpb_element_wrapper {
padding: 0px;
background: none;
border: none;
height: auto;
}
.wpb_vc_tour > .wpb_element_wrapper .wpb_tabs_holder,
.wpb_vc_tour > .wpb_element_wrapper .tabs_controls {
padding: 0;
}
.wpb_vc_tour > .wpb_element_wrapper .ui-tabs .ui-tabs-nav {
float: left;
width: 30%;
position: relative;
left: 1px;
z-index: 2;
}
.wpb_vc_tour > .wpb_element_wrapper .ui-tabs .ui-tabs-nav li {
float: none;
background: #e6e6e6;
border: 1px solid transparent;
<API key>: 3px;
<API key>: 3px;
padding: 0;
margin: 0;
}
.wpb_vc_tour > .wpb_element_wrapper .ui-tabs .ui-tabs-nav li a {
float: none;
display: block;
color: #848c91;
padding: 10px 16px;
margin: 0 0 2px;
}
.wpb_vc_tour > .wpb_element_wrapper .ui-tabs .ui-tabs-nav li.add_tab_block {
padding: 11px;
}
.wpb_vc_tour > .wpb_element_wrapper .ui-tabs .ui-tabs-nav li.add_tab_block a {
padding: 0;
width: 100%;
height: 16px;
display: block;
background: transparent url('../vc/controls.png') no-repeat -16px -16px;
}
.wpb_vc_tour > .wpb_element_wrapper .ui-tabs .ui-tabs-nav li.ui-tabs-active {
background: #ffffff;
}
.wpb_vc_tour > .wpb_element_wrapper .wpb_vc_tab {
float: right;
width: 70%;
}
.wpb_vc_tour > .wpb_element_wrapper .wpb_vc_tab > .vc_controls {
position: relative;
}
.wpb_vc_tour > .wpb_element_wrapper .ui-tabs .ui-tabs-nav li,
.wpb_vc_tour > .wpb_element_wrapper .wpb_vc_tab {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
/* <TwitterConsumerkey> */
.vc_gitem-shortcode {
margin: 10px auto 0;
width: 96%;
}
.vc_gitem-shortcode > .vc-controls .vc-icon {
background-image: url('../vc/fe/controls.png');
background-repeat: no-repeat;
}
.vc_gitem-shortcode .<API key> {
background: transparent;
}
.vc_gitem-shortcode .<API key> > .wpb_element_wrapper > .<API key> {
outline: 0;
}
.vc_gitem-shortcode .wpb_content_element > .vc_controls {
display: block;
height: auto;
visibility: visible;
opacity: 1;
-webkit-transform: none;
-moz-transform: none;
transform: none;
}
.vc_gitem-shortcode .wpb_content_element > .vc_controls > div {
white-space: normal;
}
.vc_gitem-shortcode .wpb_content_element > .vc_controls > .vc_controls-cc {
transform: none;
position: static;
}
.vc_gitem-shortcode .wpb_content_element > .vc_controls .<API key> {
display: none;
}
.vc_gitem-shortcode .wpb_content_element > .vc_controls .<API key> .vc_btn-content {
<API key>: 3px;
<API key>: 3px;
}
.vc_gitem-shortcode .wpb_content_element > .vc_controls .<API key>,
.vc_gitem-shortcode .wpb_content_element > .vc_controls .vc_control-btn-edit {
display: block;
float: right;
margin: 0px;
}
.vc_gitem-shortcode .wpb_content_element > .wpb_element_wrapper {
display: none;
}
.vc_gitem-shortcode .vc_controls {
min-height: 24px;
}
.vc_gitem-shortcode .vc_controls > div > :last-child .vc_btn-content {
border-radius: 0;
}
.vc_gitem-shortcode .vc_btn-content {
padding: 6px 3px;
}
.vc_gitem-shortcode .wpb_row_container > .wpb_vc_column {
margin-bottom: 4px;
}
.vc_gitem-shortcode .<API key> .wpb_vc_gitem_col .<API key> {
margin: 0;
}
.vc_gitem-shortcode .wpb_row_container > .wpb_vc_gitem_col > .wpb_element_wrapper {
padding: 1px 4px;
}
.vc_gitem-shortcode .vc_empty-container {
min-height: 32px;
}
.vc_gitem-shortcode .vc_element-name .vc_btn-content {
padding: 6px 6px !important;
}
.vc_gitem-shortcode .vc_element-move .vc_btn-content {
cursor: move !important;
background-image: url(../vc/fe/move.png) !important;
background-position: 6px center !important;
background-repeat: no-repeat;
padding-left: 21px !important;
}
.vc_gitem-add-c-col {
vertical-align: top;
margin: 10px;
outline: 1px dotted #e6e6e6;
min-height: 50px;
cursor: pointer;
box-sizing: border-box;
background: transparent url('../vc/empty_row.png') no-repeat center center;
}
.vc_gitem-add-c-left .vc_gitem-add-c-col,
.<API key> .vc_gitem-add-c-col {
padding-top: 25px;
}
.vc_gitem-add-c-col:hover {
opacity: 0.5;
}
.vc_gitem-add-c-col.vc_zone-added {
outline: 0;
background: none;
}
.<API key> .vc_gitem-add-c-col.vc_zone-added {
margin-top: 30px;
}
.vc_gitem-add-c-col.vc_zone-added:hover {
opacity: 1;
}
.<API key> {
padding: 15px;
}
.vc_gitem-preview iframe {
width: 100%;
height: 600px;
}
.<API key> {
display: none;
}
.vc_gitem-tabs {
margin: 0;
}
.vc_gitem-tabs .<API key> {
display: block;
float: left;
margin: 0 2px 0 0;
<API key>: 3px;
<API key>: 3px;
background-color: #e6e6e6;
border: 1px solid transparent;
}
.vc_gitem-tabs .<API key> a {
margin: 0;
display: inline-block;
padding: 4px;
color: #444;
text-decoration: none;
}
.vc_gitem-tabs .<API key> a .vc_label {
display: inline-block;
line-height: 16px;
height: 16px;
text-align: center;
box-sizing: border-box;
margin: 0 3px;
}
.vc_gitem-tabs .<API key>.vc_active {
background-color: #f5f5f5;
}
.<API key> .vc_gitem-animation {
margin: 0 0 6px;
}
.<API key> .vc_gitem-animation select {
margin: 0 auto;
display: block;
}
.vc_gitem-zone-tab {
min-height: 50px;
display: none;
}
.vc_gitem-zone-tab.vc_active {
display: block;
}
.<API key> {
margin: 10px;
box-sizing: border-box;
}
.<API key> > .vc_controls {
display: block;
float: right;
}
.<API key> > .vc_controls .vc_control-btn-edit {
border: 1px solid #f5f5f5;
<API key>: 3px;
<API key>: 3px;
<API key>: 3px;
<API key>: 3px;
padding: 2px;
width: 20px;
text-align: center;
}
.<API key> .vc_gitem-tab-b {
display: none;
}
.vc_gitem-shortcode .wpb_vc_gitem_zone_c,
.vc_gitem-shortcode .wpb_vc_gitem_zone_a,
.vc_gitem-shortcode .wpb_vc_gitem_zone_b {
background-color: #f5f5f5;
padding: 4px;
margin: 0;
}
.vc_gitem-shortcode .wpb_vc_gitem_zone_c .vc_element-icon,
.vc_gitem-shortcode .wpb_vc_gitem_zone_a .vc_element-icon,
.vc_gitem-shortcode .wpb_vc_gitem_zone_b .vc_element-icon {
background: transparent;
}
.vc_gitem-shortcode .wpb_vc_gitem_zone_c > .wpb_element_wrapper > .<API key>,
.vc_gitem-shortcode .wpb_vc_gitem_zone_a > .wpb_element_wrapper > .<API key>,
.vc_gitem-shortcode .wpb_vc_gitem_zone_b > .wpb_element_wrapper > .<API key> {
margin: 0;
}
.wpb_vc_gitem_zone_c {
position: relative;
margin-top: 24px;
min-height: 100%;
box-sizing: border-box;
}
.wpb_vc_gitem_zone_c > .vc_controls {
position: absolute;
top: -24px;
left: 0;
padding: 0;
margin: 0;
}
.wpb_vc_gitem_zone_c > .vc_controls .vc_control {
background-color: #f5f5f5;
padding: 4px;
<API key>: 3px;
<API key>: 3px;
}
.wpb_vc_gitem_zone_c > .vc_controls .column_edit,
.wpb_vc_gitem_zone_c > .vc_controls .column_delete {
float: right;
}
.wpb_vc_gitem_zone_c > .vc_controls.bottom-controls {
position: static;
}
.wpb_vc_gitem_zone_c > .vc_css-helper {
position: absolute;
top: -25px;
right: 55px;
}
.wpb_vc_gitem_zone_c > .vc_css-helper.vc_featured {
background-image: url('../vc/vc_gitem_image.png');
background-size: cover;
margin-top: 3px;
width: 16px;
height: 16px;
display: inline-block;
margin-right: 3px;
border-radius: 8px;
right: 95px;
}
.wpb_vc_gitem_zone_c > .vc_css-helper + .vc_css-helper {
right: 75px;
}
.wpb_vc_gitem_zone_c > .vc_color-helper {
position: absolute;
top: -25px;
right: 55px;
}
.wpb_vc_gitem_zone_a,
.wpb_vc_gitem_zone_b {
position: relative;
<API key>: 3px;
<API key>: 3px;
<API key>: 3px;
<API key>: 3px;
}
.wpb_vc_gitem_zone_a > .vc_css-helper,
.wpb_vc_gitem_zone_b > .vc_css-helper {
position: absolute;
top: -25px;
right: 0px;
}
.wpb_vc_gitem_zone_a > .vc_css-helper.vc_featured,
.wpb_vc_gitem_zone_b > .vc_css-helper.vc_featured {
background-image: url('../vc/vc_gitem_image.png');
background-size: cover;
margin-top: 3px;
width: 16px;
height: 16px;
display: inline-block;
margin-right: 3px;
border-radius: 8px;
}
.wpb_vc_gitem_zone_a > .vc_css-helper + .vc_css-helper,
.wpb_vc_gitem_zone_b > .vc_css-helper + .vc_css-helper {
right: 20px;
}
.wpb_vc_gitem_zone_a > .vc_css-helper + .vc_featured,
.wpb_vc_gitem_zone_b > .vc_css-helper + .vc_featured {
right: 40px;
}
.wpb_vc_gitem_zone_a > .vc_controls,
.wpb_vc_gitem_zone_b > .vc_controls {
display: none;
}
.wpb_vc_gitem_zone_a > .wpb_element_wrapper > .<API key>,
.wpb_vc_gitem_zone_b > .wpb_element_wrapper > .<API key> {
margin: 0;
}
.wpb_vc_gitem_row {
margin: 0 auto 5px;
}
.wpb_vc_gitem_row .vc_controls-row .vc_column-delete {
float: right;
display: block;
background: #ffffff;
}
.wpb_vc_gitem_zone_a .wpb_vc_gitem_row .vc_controls-row .vc_column-delete,
.wpb_vc_gitem_zone_b .wpb_vc_gitem_row .vc_controls-row .vc_column-delete {
display: none;
}
.wpb_vc_gitem_row .vc_controls-row .vc_row_layouts {
background: #ffffff;
}
.wpb_vc_gitem_row .vc_controls-row .vc_row_layouts {
margin-left: 0;
}
.wpb_vc_gitem_row .vc_controls-row .vc_row_layouts:hover {
left: 0;
height: 24px;
}
.wpb_row_container > .wpb_vc_gitem_col > .vc_controls,
.wpb_row_container > .wpb_vc_gitem_col > .wpb_element_wrapper {
background-color: #ffffff;
}
.wpb_vc_gitem_col.vc_col-sm-4 .wpb_content_element > .vc_controls .vc_controls-cc {
*zoom: 1;
}
.wpb_vc_gitem_col.vc_col-sm-4 .wpb_content_element > .vc_controls .vc_controls-cc:before,
.wpb_vc_gitem_col.vc_col-sm-4 .wpb_content_element > .vc_controls .vc_controls-cc:after {
display: table;
content: "";
}
.wpb_vc_gitem_col.vc_col-sm-4 .wpb_content_element > .vc_controls .vc_controls-cc:after {
clear: both;
}
.wpb_vc_gitem_col.vc_col-sm-4 .wpb_content_element > .vc_controls .vc_controls-cc:before,
.wpb_vc_gitem_col.vc_col-sm-4 .wpb_content_element > .vc_controls .vc_controls-cc:after {
content: " ";
display: table;
}
.wpb_vc_gitem_col.vc_col-sm-4 .wpb_content_element > .vc_controls .vc_controls-cc:after {
clear: both;
}
.wpb_vc_gitem_col.vc_col-sm-4 .wpb_content_element > .vc_controls .vc_controls-cc:before,
.wpb_vc_gitem_col.vc_col-sm-4 .wpb_content_element > .vc_controls .vc_controls-cc:after {
content: " ";
display: table;
}
.wpb_vc_gitem_col.vc_col-sm-4 .wpb_content_element > .vc_controls .vc_controls-cc:after {
clear: both;
}
.wpb_vc_gitem_col.vc_col-sm-4 .wpb_content_element > .vc_controls .vc_element-name {
float: none;
display: block;
}
.wpb_vc_gitem_col.vc_col-sm-4 .wpb_content_element > .vc_controls .vc_element-name .vc_btn-content {
overflow: hidden;
}
.vc_admin_label {
font-size: 11px;
font-style: italic;
color: #999999;
margin-right: 5px;
line-height: 1;
}
.vc_admin_label label {
vertical-align: inherit;
}
.<API key> {
background-position: 0 -832px;
}
.<API key> {
background-position: 0 -864px;
}
.<API key> {
background-position: 0 -896px;
}
.icon-wpb-revslider {
background-position: 0 -928px;
}
@font-face {
font-family: 'vc_grid_v1';
src: url('../fonts/vc_grid/vc_grid_v1.eot?-9hbgac');
src: url('../fonts/vc_grid/vc_grid_v1.eot?#iefix-9hbgac') format('embedded-opentype'), url('../fonts/vc_grid/vc_grid_v1.woff?-9hbgac') format('woff'), url('../fonts/vc_grid/vc_grid_v1.ttf?-9hbgac') format('truetype'), url('../fonts/vc_grid/vc_grid_v1.svg?-9hbgac#vc_grid_v1') format('svg');
font-weight: normal;
font-style: normal;
}
[class^="vc_arrow-icon-"],
[class*=" vc_arrow-icon-"] {
font-family: 'vc_grid_v1';
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
-<API key>: antialiased;
-<API key>: grayscale;
}
.vc_arrow-icon-minus:before {
content: "\e61c";
}
.vc_arrow-icon-plus:before {
content: "\e61d";
}
.<API key>:before {
content: "\e61e";
}
.<API key>:before {
content: "\e61f";
}
.<API key>:before {
content: "\e600";
}
.<API key>:before {
content: "\e601";
}
.<API key>:before {
content: "\e602";
}
.<API key>:before {
content: "\e603";
}
.<API key>:before {
content: "\e604";
}
.<API key>:before {
content: "\e605";
}
.<API key>:before {
content: "\e606";
}
.<API key>:before {
content: "\e607";
}
.<API key>:before {
content: "\e608";
}
.<API key>:before {
content: "\e609";
}
.<API key>:before {
content: "\e60a";
}
.<API key>:before {
content: "\e60b";
}
.<API key>:before {
content: "\e60c";
}
.<API key>:before {
content: "\e60d";
}
.<API key>:before {
content: "\e60e";
}
.<API key>:before {
content: "\e60f";
}
.<API key>:before {
content: "\e610";
}
.<API key>:before {
content: "\e611";
}
.<API key>:before {
content: "\e612";
}
.<API key>:before {
content: "\e613";
}
.<API key>:before {
content: "\e614";
}
.<API key>:before {
content: "\e615";
}
.<API key>:before {
content: "\e616";
}
.<API key>:before {
content: "\e617";
}
.<API key>:before {
content: "\f0c9";
}
#wpb_visual_composer {
display: none;
}
#wpb_visual_composer > .inside {
margin: 0;
padding: 0;
}
#wpb_visual_composer .vc_navbar {
border-bottom: 1px solid #f5f5f5;
}
@media (max-width: 767px) {
.vc_hidden-xs {
display: block !important;
}
.vc_hidden-xs .vc_controls .vc_btn-content {
background-color: #CCC !important;
border-color: #CCC !important;
}
.vc_hidden-xs .vc_controls .vc_btn-content:hover {
background-color: #b3b3b3 !important;
border-color: #b3b3b3 !important;
}
.vc_hidden-xs > * {
opacity: 0.5 !important;
filter: alpha(opacity=50) !important;
}
}
@media (min-width: 768px) and (max-width: 991px) {
.vc_hidden-sm {
display: block !important;
}
.vc_hidden-sm .vc_controls .vc_btn-content {
background-color: #CCC !important;
border-color: #CCC !important;
}
.vc_hidden-sm .vc_controls .vc_btn-content:hover {
background-color: #b3b3b3 !important;
border-color: #b3b3b3 !important;
}
.vc_hidden-sm > * {
opacity: 0.5 !important;
filter: alpha(opacity=50) !important;
}
}
@media (min-width: 992px) and (max-width: 1199px) {
.vc_hidden-md {
display: block !important;
}
.vc_hidden-md .vc_controls .vc_btn-content {
background-color: #CCC !important;
border-color: #CCC !important;
}
.vc_hidden-md .vc_controls .vc_btn-content:hover {
background-color: #b3b3b3 !important;
border-color: #b3b3b3 !important;
}
.vc_hidden-md > * {
opacity: 0.5 !important;
filter: alpha(opacity=50) !important;
}
}
@media (min-width: 1200px) {
.vc_hidden-lg {
display: block !important;
}
.vc_hidden-lg .vc_controls .vc_btn-content {
background-color: #CCC !important;
border-color: #CCC !important;
}
.vc_hidden-lg .vc_controls .vc_btn-content:hover {
background-color: #b3b3b3 !important;
border-color: #b3b3b3 !important;
}
.vc_hidden-lg > * {
opacity: 0.5 !important;
filter: alpha(opacity=50) !important;
}
}
#<API key> {
padding: 14px;
}
#poststuff h3.vc_modal-title {
font-weight: normal;
font-size: 16px;
color: inherit;
}
#poststuff .vc_welcome h3 {
margin: 0;
padding: 0;
font-size: 24px;
line-height: 26px;
cursor: default;
}
.wpb_main_sortable > .widgets-placeholder {
margin-top: 10px;
}
.widgets-placeholder {
margin-top: 4px;
}
.<API key> {
float: left;
}
.widgets-placeholder,
.<API key>,
.<API key> {
background-image: url(../vc/pattern.gif);
height: 50px;
}
.vc_sorting-started .<API key> {
outline: 1px dotted #e6e6e6;
background: transparent url('../vc/empty_row.png') no-repeat center center;
min-height: 50px;
cursor: pointer;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.vc_helper {
width: auto !important;
height: auto !important;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
z-index: 1006;
position: absolute;
padding: 4px 15px 4px 30px;
border: 1px solid #afd23e;
background-color: #afd23e;
<API key>: 3px;
<API key>: 3px;
<API key>: 3px;
<API key>: 3px;
vertical-align: middle;
color: #FFFFFF;
font-size: 9px;
}
.vc_helper .vc_element-icon {
display: inline-block;
margin: 0 8px 0 0;
vertical-align: middle;
}
.vc_helper.vc_helper-vc_row {
border: 1px solid #285A85;
background-color: #285A85;
}
.vc_helper.vc_helper-vc_column {
border: 1px solid #F9B418;
background-color: #F9B418;
}
.vc_placeholder {
width: 100% !important;
background: transparent url('../vc/pattern.gif');
}
.vc_placeholder-row {
padding: 0;
margin: 0 0 35px 0;
background: transparent url('../vc/pattern.gif');
height: 50px;
}
.<API key> {
background: transparent url('../vc/pattern.gif');
float: left;
}
.vc_panel-heading .vc_transparent {
display: none;
}
.<API key> #<API key> {
display: none;
}
#wpb_csseditor {
border: 1px solid #BABABA;
}
|
<?php
/* Form */
function wpcf7_form_meta_box( $post ) {
?>
<div class="half-left"><textarea id="wpcf7-form" name="wpcf7-form" cols="100" rows="24"><?php echo esc_textarea( $post->form ); ?></textarea></div>
<div class="half-right"><div id="taggenerator"></div></div>
<br class="clear" />
<?php
}
/* Mail */
function wpcf7_mail_meta_box( $post, $box ) {
$defaults = array( 'id' => 'wpcf7-mail', 'name' => 'mail', 'use' => null );
if ( ! isset( $box['args'] ) || ! is_array( $box['args'] ) )
$args = array();
else
$args = $box['args'];
extract( wp_parse_args( $args, $defaults ), EXTR_SKIP );
$id = esc_attr( $id );
$mail = $post->{$name};
if ( ! empty( $use ) ) :
?>
<div class="mail-field">
<input type="checkbox" id="<?php echo $id; ?>-active" name="<?php echo $id; ?>-active" class="<API key>" value="1"<?php echo ( $mail['active'] ) ? ' checked="checked"' : ''; ?> />
<label for="<?php echo $id; ?>-active"><?php echo esc_html( $use ); ?></label>
<div class="pseudo-hr"></div>
</div>
<br class="clear" />
<?php endif; ?>
<div class="mail-fields">
<div class="half-left">
<div class="mail-field">
<label for="<?php echo $id; ?>-recipient"><?php echo esc_html( __( 'To:', 'wpcf7' ) ); ?></label><br />
<input type="text" id="<?php echo $id; ?>-recipient" name="<?php echo $id; ?>-recipient" class="wide" size="70" value="<?php echo esc_attr( $mail['recipient'] ); ?>" />
</div>
<div class="mail-field">
<label for="<?php echo $id; ?>-sender"><?php echo esc_html( __( 'From:', 'wpcf7' ) ); ?></label><br />
<input type="text" id="<?php echo $id; ?>-sender" name="<?php echo $id; ?>-sender" class="wide" size="70" value="<?php echo esc_attr( $mail['sender'] ); ?>" />
</div>
<div class="mail-field">
<label for="<?php echo $id; ?>-subject"><?php echo esc_html( __( 'Subject:', 'wpcf7' ) ); ?></label><br />
<input type="text" id="<?php echo $id; ?>-subject" name="<?php echo $id; ?>-subject" class="wide" size="70" value="<?php echo esc_attr( $mail['subject'] ); ?>" />
</div>
<div class="pseudo-hr"></div>
<div class="mail-field">
<label for="<?php echo $id; ?>-additional-headers"><?php echo esc_html( __( 'Additional headers:', 'wpcf7' ) ); ?></label><br />
<textarea id="<?php echo $id; ?>-additional-headers" name="<?php echo $id; ?>-additional-headers" cols="100" rows="2"><?php echo esc_textarea( $mail['additional_headers'] ); ?></textarea>
</div>
<div class="mail-field">
<label for="<?php echo $id; ?>-attachments"><?php echo esc_html( __( 'File attachments:', 'wpcf7' ) ); ?></label><br />
<textarea id="<?php echo $id; ?>-attachments" name="<?php echo $id; ?>-attachments" cols="100" rows="2"><?php echo esc_textarea( $mail['attachments'] ); ?></textarea>
</div>
<div class="pseudo-hr"></div>
<div class="mail-field">
<input type="checkbox" id="<?php echo $id; ?>-use-html" name="<?php echo $id; ?>-use-html" value="1"<?php echo ( $mail['use_html'] ) ? ' checked="checked"' : ''; ?> />
<label for="<?php echo $id; ?>-use-html"><?php echo esc_html( __( 'Use HTML content type', 'wpcf7' ) ); ?></label>
</div>
</div>
<div class="half-right">
<div class="mail-field">
<label for="<?php echo $id; ?>-body"><?php echo esc_html( __( 'Message body:', 'wpcf7' ) ); ?></label><br />
<textarea id="<?php echo $id; ?>-body" name="<?php echo $id; ?>-body" cols="100" rows="20"><?php echo esc_textarea( $mail['body'] ); ?></textarea>
</div>
</div>
<br class="clear" />
</div>
<?php
}
function <API key>( $post ) {
foreach ( wpcf7_messages() as $key => $arr ) :
$field_name = 'wpcf7-message-' . strtr( $key, '_', '-' );
?>
<div class="message-field">
<label for="<?php echo $field_name; ?>"><em># <?php echo esc_html( $arr['description'] ); ?></em></label><br />
<input type="text" id="<?php echo $field_name; ?>" name="<?php echo $field_name; ?>" class="wide" size="70" value="<?php echo esc_attr( $post->messages[$key] ); ?>" />
</div>
<?php
endforeach;
}
function <API key>( $post ) {
?>
<textarea id="<API key>" name="<API key>" cols="100" rows="8"><?php echo esc_textarea( $post->additional_settings ); ?></textarea>
<?php
}
?>
|
<?php
// No direct access
defined('_JEXEC') or die;
jimport('joomla.application.component.modellist');
/**
* Newsfeeds Component Category Model
*
* @package Joomla.Site
* @subpackage com_newsfeeds
* @since 1.5
*/
class <API key> extends JModelList
{
/**
* Category items data
*
* @var array
*/
protected $_item = null;
protected $_articles = null;
protected $_siblings = null;
protected $_children = null;
protected $_parent = null;
/**
* The category that applies.
*
* @access protected
* @var object
*/
protected $_category = null;
/**
* The list of other newfeed categories.
*
* @access protected
* @var array
*/
protected $_categories = null;
/**
* Constructor.
*
* @param array An optional associative array of configuration settings.
* @see JController
* @since 1.6
*/
public function __construct($config = array())
{
if (empty($config['filter_fields'])) {
$config['filter_fields'] = array(
'id', 'a.id',
'name', 'a.name',
'numarticles', 'a.numarticles',
'link', 'a.link',
'ordering', 'a.ordering',
);
}
parent::__construct($config);
}
/**
* Method to get a list of items.
*
* @return mixed An array of objects on success, false on failure.
*/
public function &getItems()
{
// Invoke the parent getItems method to get the main list
$items = &parent::getItems();
// Convert the params field into an object, saving original in _params
for ($i = 0, $n = count($items); $i < $n; $i++) {
$item = &$items[$i];
if (!isset($this->_params)) {
$params = new JRegistry();
$item->params = $params;
$params->loadJSON($item->params);
}
}
return $items;
}
/**
* Method to build an SQL query to load the list data.
*
* @return string An SQL query
* @since 1.6
*/
protected function getListQuery()
{
$user = JFactory::getUser();
$groups = implode(',', $user->get<API key>());
// Create a new query object.
$db = $this->getDbo();
$query = $db->getQuery(true);
// Select required fields from the categories.
$query->select($this->getState('list.select', 'a.*'));
$query->from('`#__newsfeeds` AS a');
$query->where('a.access IN ('.$groups.')');
// Filter by category.
if ($categoryId = $this->getState('category.id')) {
$query->where('a.catid = '.(int) $categoryId);
$query->join('LEFT', '#__categories AS c ON c.id = a.catid');
$query->where('c.access IN ('.$groups.')');
}
// Filter by state
$state = $this->getState('filter.published');
if (is_numeric($state)) {
$query->where('a.published = '.(int) $state);
}
// Filter by start and end dates.
$nullDate = $db->Quote($db->getNullDate());
$nowDate = $db->Quote(JFactory::getDate()->toMySQL());
if ($this->getState('filter.publish_date')){
$query->where('(a.publish_up = ' . $nullDate . ' OR a.publish_up <= ' . $nowDate . ')');
$query->where('(a.publish_down = ' . $nullDate . ' OR a.publish_down >= ' . $nowDate . ')');
}
// Filter by language
if ($this->getState('filter.language')) {
$query->where('a.language in ('.$db->Quote(JFactory::getLanguage()->getTag()).','.$db->Quote('*').')');
}
// Add the list ordering clause.
$query->order($db->getEscaped($this->getState('list.ordering', 'a.ordering')).' '.$db->getEscaped($this->getState('list.direction', 'ASC')));
return $query;
}
/**
* Method to auto-populate the model state.
*
* Note. Calling getState in this method will result in recursion.
*
* @since 1.6
*/
protected function populateState($ordering = null, $direction = null)
{
// Initialise variables.
$app = JFactory::getApplication();
$params = JComponentHelper::getParams('com_newsfeeds');
// List state information
$limit = $app-><API key>('global.list.limit', 'limit', $app->getCfg('list_limit'));
$this->setState('list.limit', $limit);
$limitstart = JRequest::getVar('limitstart', 0, '', 'int');
$this->setState('list.start', $limitstart);
$orderCol = JRequest::getCmd('filter_order', 'ordering');
if (!in_array($orderCol, $this->filter_fields)) {
$orderCol = 'ordering';
}
$this->setState('list.ordering', $orderCol);
$listOrder = JRequest::getCmd('filter_order_Dir', 'ASC');
if (!in_array(strtoupper($listOrder), array('ASC', 'DESC', ''))) {
$listOrder = 'ASC';
}
$this->setState('list.direction', $listOrder);
$id = JRequest::getVar('id', 0, '', 'int');
$this->setState('category.id', $id);
$user = JFactory::getUser();
if ((!$user->authorise('core.edit.state', 'com_newsfeeds')) && (!$user->authorise('core.edit', 'com_newsfeeds'))){
// limit to published for people who can't edit or edit.state.
$this->setState('filter.published', 1);
// Filter by start and end dates.
$this->setState('filter.publish_date', true);
}
$this->setState('filter.language',$app->getLanguageFilter());
// Load the parameters.
$this->setState('params', $params);
}
/**
* Method to get category data for the current category
*
* @param int An optional ID
*
* @return object
* @since 1.5
*/
public function getCategory()
{
if(!is_object($this->_item))
{
$app = JFactory::getApplication();
$menu = $app->getMenu();
$active = $menu->getActive();
$params = new JRegistry();
$params->loadJSON($active->params);
$options = array();
$options['countItems'] = $params->get('show_cat_items', 1) || $params->get('<API key>', 0);
$categories = JCategories::getInstance('Newsfeeds', $options);
$this->_item = $categories->get($this->getState('category.id', 'root'));
if(is_object($this->_item))
{
$this->_children = $this->_item->getChildren();
$this->_parent = false;
if($this->_item->getParent())
{
$this->_parent = $this->_item->getParent();
}
$this->_rightsibling = $this->_item->getSibling();
$this->_leftsibling = $this->_item->getSibling(false);
} else {
$this->_children = false;
$this->_parent = false;
}
}
return $this->_item;
}
/**
* Get the parent category.
*
* @param int An optional category id. If not supplied, the model state 'category.id' will be used.
*
* @return mixed An array of categories or false if an error occurs.
*/
public function getParent()
{
if (!is_object($this->_item))
{
$this->getCategory();
}
return $this->_parent;
}
/**
* Get the sibling (adjacent) categories.
*
* @return mixed An array of categories or false if an error occurs.
*/
function &getLeftSibling()
{
if (!is_object($this->_item))
{
$this->getCategory();
}
return $this->_leftsibling;
}
function &getRightSibling()
{
if(!is_object($this->_item))
{
$this->getCategory();
}
return $this->_rightsibling;
}
/**
* Get the child categories.
*
* @param int An optional category id. If not supplied, the model state 'category.id' will be used.
*
* @return mixed An array of categories or false if an error occurs.
*/
function &getChildren()
{
if(!is_object($this->_item))
{
$this->getCategory();
}
return $this->_children;
}
}
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> <!-- Use Chrome Frame in IE -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<meta name="description" content="Visualize worldwide, high-resolution terrain.">
<meta name="<API key>" content="Tutorials, Showcases">
<title>Cesium Demo</title>
<script type="text/javascript" src="../Sandcastle-header.js"></script>
<script type="text/javascript" src="../../../ThirdParty/requirejs-2.1.9/require.js"></script>
<script type="text/javascript">
require.config({
baseUrl : '../../../Source',
waitSeconds : 60
});
</script>
</head>
<body class="sandcastle-loading" <API key>="bucket-requirejs.html">
<style>
@import url(../templates/bucket.css);
</style>
<div id="cesiumContainer" class="fullSize"></div>
<div id="loadingOverlay"><h1>Loading...</h1></div>
<div id="toolbar">
<div id="terrainMenu"></div>
<div id="zoomButtons"></div>
<div id="toggleLighting"></div>
<div id="sampleButtons"></div>
</div>
<script id="<API key>">
function startup(Cesium) {
"use strict";
//Sandcastle_Begin
var viewer = new Cesium.Viewer('cesiumContainer');
var <API key> = new Cesium.<API key>({
url : '//assets.agi.com/stk-terrain/world',
requestWaterMask : true,
<API key> : true
});
viewer.terrainProvider = <API key>;
// setup alternative terrain providers
var ellipsoidProvider = new Cesium.<API key>();
var vrTheWorldProvider = new Cesium.<API key>({
url : '
credit : 'Terrain data courtesy VT MÄK'
});
Sandcastle.addToolbarMenu([{
text : '<API key> - STK World Terrain',
onselect : function() {
viewer.terrainProvider = <API key>;
viewer.scene.globe.enableLighting = true;
}
}, {
text : '<API key> - STK World Terrain - no effects',
onselect : function() {
viewer.terrainProvider = new Cesium.<API key>({
url : '//assets.agi.com/stk-terrain/world'
});
}
}, {
text : '<API key> - STK World Terrain w/ Lighting',
onselect : function() {
viewer.terrainProvider = new Cesium.<API key>({
url : '//assets.agi.com/stk-terrain/world',
<API key> : true
});
viewer.scene.globe.enableLighting = true;
}
}, {
text : '<API key> - STK World Terrain w/ Water',
onselect : function() {
viewer.terrainProvider = new Cesium.<API key>({
url : '//assets.agi.com/stk-terrain/world',
requestWaterMask : true
});
}
}, {
text : '<API key>',
onselect : function() {
viewer.terrainProvider = ellipsoidProvider;
}
}, {
text : '<API key>',
onselect : function() {
viewer.terrainProvider = vrTheWorldProvider;
}
}], 'terrainMenu');
Sandcastle.<API key>([{
text : 'Mount Everest',
onselect : function() {
var target = new Cesium.Cartesian3(300770.50872389384, 5634912.131394585, 2978152.2865545116);
var offset = new Cesium.Cartesian3(6344.974098678562, -793.3419798081741, 2499.9508860763162);
viewer.camera.lookAt(target, offset);
viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY);
}
}, {
text : 'Half Dome',
onselect : function() {
var target = new Cesium.Cartesian3(-2489625.0836225147, -4393941.44443024, 3882535.9454173897);
var offset = new Cesium.Cartesian3(-6857.40902037546, 412.3284835694358, 2147.5545426812023);
viewer.camera.lookAt(target, offset);
viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY);
}
}, {
text : 'San Francisco Bay',
onselect : function() {
var target = new Cesium.Cartesian3(-2708814.85583248, -4254159.450845907, 3891403.9457429945);
var offset = new Cesium.Cartesian3(70642.66030209465, -31661.517948317807, 35505.179997143336);
viewer.camera.lookAt(target, offset);
viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY);
}
}], 'zoomButtons');
var <API key>;
function <API key>() {
var ellipsoid = Cesium.Ellipsoid.WGS84;
//By default, Cesium does not obsure geometry
//behind terrain. Setting this flag enables that.
viewer.scene.globe.<API key> = true;
viewer.entities.suspendEvents();
viewer.entities.removeAll();
for (var i = 0; i < <API key>.length; ++i) {
var position = <API key>[i];
viewer.entities.add({
name : position.height.toFixed(1),
position : ellipsoid.<API key>(position),
billboard : {
verticalOrigin : Cesium.VerticalOrigin.BOTTOM,
scale : 0.7,
image : '../images/facility.gif'
},
label : {
text : position.height.toFixed(1),
horizontalOrigin : Cesium.HorizontalOrigin.CENTER,
scale : 0.3,
pixelOffset : new Cesium.Cartesian2(0, -14),
fillColor : Cesium.Color.RED,
outlineColor : Cesium.Color.WHITE
}
});
}
viewer.entities.resumeEvents();
}
Sandcastle.addToolbarButton('Toggle Lighting', function() {
viewer.scene.globe.enableLighting = !viewer.scene.globe.enableLighting;
}, 'toggleLighting');
Sandcastle.addToolbarButton('Sample Everest Terrain', function() {
var gridWidth = 41;
var gridHeight = 41;
var everestLatitude = Cesium.Math.toRadians(27.988257);
var everestLongitude = Cesium.Math.toRadians(86.925145);
var rectangleHalfSize = 0.005;
var e = new Cesium.Rectangle(everestLongitude - rectangleHalfSize, everestLatitude - rectangleHalfSize, everestLongitude + rectangleHalfSize, everestLatitude + rectangleHalfSize);
<API key> = [];
for (var y = 0; y < gridHeight; ++y) {
for (var x = 0; x < gridWidth; ++x) {
var longitude = Cesium.Math.lerp(e.west, e.east, x / (gridWidth - 1));
var latitude = Cesium.Math.lerp(e.south, e.north, y / (gridHeight - 1));
var position = new Cesium.Cartographic(longitude, latitude);
<API key>.push(position);
}
}
Cesium.when(Cesium.sampleTerrain(viewer.terrainProvider, 9, <API key>), <API key>);
}, 'sampleButtons');
//Sandcastle_End
Sandcastle.finishedLoading();
}
if (typeof Cesium !== "undefined") {
startup(Cesium);
} else if (typeof require === "function") {
require(["Cesium"], startup);
}
</script>
</body>
</html>
|
#include <qscrollview.h>
class QImage;
class QTimer;
class QAnimationWriter;
class QLock;
struct QVFbHeader;
class QVFbView : public QScrollView
{
Q_OBJECT
public:
QVFbView( int display_id, int w, int h, int d, QWidget *parent = 0,
const char *name = 0, uint wflags = 0 );
~QVFbView();
int displayId() const;
int displayWidth() const;
int displayHeight() const;
int displayDepth() const;
bool <API key>() const { return emulateTouchscreen; }
int rate() { return refreshRate; }
bool animating() const { return !!animation; }
QImage image() const;
void setGamma(double gr, double gg, double gb);
double gammaRed() const { return gred; }
double gammaGreen() const { return ggreen; }
double gammaBlue() const { return gblue; }
void getGamma(int i, QRgb& rgb);
void skinKeyPressEvent( QKeyEvent *e ) { keyPressEvent(e); }
void skinKeyReleaseEvent( QKeyEvent *e ) { keyReleaseEvent(e); }
double zoom() const { return zm; }
QSize sizeHint() const;
public slots:
void <API key>( bool );
void setRate( int );
void setZoom( double );
void startAnimation( const QString& );
void stopAnimation();
protected slots:
void timeout();
protected:
void initLock();
void lock();
void unlock();
QImage getBuffer( const QRect &r, int &leading ) const;
void drawScreen();
void sendMouseData( const QPoint &pos, int buttons );
void sendKeyboardData( int unicode, int keycode, int modifiers,
bool press, bool repeat );
virtual bool eventFilter( QObject *obj, QEvent *e );
virtual void viewportPaintEvent( QPaintEvent *pe );
virtual void <API key>( QMouseEvent *e );
virtual void <API key>( QMouseEvent *e );
virtual void <API key>( QMouseEvent *e );
virtual void <API key>( QMouseEvent *e );
virtual void keyPressEvent( QKeyEvent *e );
virtual void keyReleaseEvent( QKeyEvent *e );
private:
bool emulateTouchscreen;
void setDirty( const QRect& );
int shmId;
unsigned char *data;
QVFbHeader *hdr;
int viewdepth; // "faked" depth
int rsh;
int gsh;
int bsh;
int rmax;
int gmax;
int bmax;
double gred, ggreen, gblue;
QRgb* gammatable;
QLock *qwslock;
QTimer *timer;
int mouseFd;
int keyboardFd;
int refreshRate;
QString mousePipe;
QString keyboardPipe;
QAnimationWriter *animation;
int displayid;
double zm;
};
|
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>CORE POS - IS4C: Member List</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() {
if ($('.searchresults').length > 0) { searchBox.DOMSearchField().focus(); }
});
</script>
<link rel="search" href="search-opensearch.php?v=opensearch.xml" type="application/<API key>+xml" title="CORE POS - IS4C"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">CORE POS - IS4C
</div>
<div id="projectbrief">The CORE POS front end</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<div class="left">
<form id="FSearchBox" action="search.php" method="get">
<img id="MSearchSelect" src="search/mag.png" alt=""/>
<input type="text" id="MSearchField" name="query" value="Search" size="20" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"/>
</form>
</div><div class="right"></div>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="classes.html"><span>Class Index</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><b>COREPOS</b></li><li class="navelem"><b>pos</b></li><li class="navelem"><b>lib</b></li><li class="navelem"><b>models</b></li><li class="navelem"><b>op</b></li><li class="navelem"><a class="el" href="<API key>.html">ParametersModel</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">COREPOS\pos\lib\models\op\ParametersModel Member List</div> </div>
</div><!--header
<div class="contents">
<p>This is the complete list of members for <a class="el" href="<API key>.html">COREPOS\pos\lib\models\op\ParametersModel</a>, including all inherited members.</p>
<table class="directory">
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>$columns</b> (defined in <a class="el" href="<API key>.html">COREPOS\pos\lib\models\op\ParametersModel</a>)</td><td class="entry"><a class="el" href="<API key>.html">COREPOS\pos\lib\models\op\ParametersModel</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>$name</b> (defined in <a class="el" href="<API key>.html">COREPOS\pos\lib\models\op\ParametersModel</a>)</td><td class="entry"><a class="el" href="<API key>.html">COREPOS\pos\lib\models\op\ParametersModel</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>$new_model_namespace</b> (defined in <a class="el" href="<API key>.html">COREPOS\pos\lib\models\BasicModel</a>)</td><td class="entry"><a class="el" href="<API key>.html">COREPOS\pos\lib\models\BasicModel</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
<tr bgcolor="#f0f0f0"><td class="entry"><b>$preferred_db</b> (defined in <a class="el" href="<API key>.html">COREPOS\pos\lib\models\op\ParametersModel</a>)</td><td class="entry"><a class="el" href="<API key>.html">COREPOS\pos\lib\models\op\ParametersModel</a></td><td class="entry"><span class="mlabel">protected</span></td></tr>
<tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>doc</b>() (defined in <a class="el" href="<API key>.html">COREPOS\pos\lib\models\op\ParametersModel</a>)</td><td class="entry"><a class="el" href="<API key>.html">COREPOS\pos\lib\models\op\ParametersModel</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">getModels</a>()</td><td class="entry"><a class="el" href="<API key>.html">COREPOS\pos\lib\models\BasicModel</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>">materializeValue</a>()</td><td class="entry"><a class="el" href="<API key>.html">COREPOS\pos\lib\models\op\ParametersModel</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a></td><td class="entry"><a class="el" href="<API key>.html">COREPOS\pos\lib\models\BasicModel</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="<API key>.html#<API key>"><API key></a></td><td class="entry"><a class="el" href="<API key>.html">COREPOS\pos\lib\models\BasicModel</a></td><td class="entry"></td></tr>
<tr><td class="entry"><a class="el" href="<API key>.html#<API key>">setConnectionByName</a>($db_name)</td><td class="entry"><a class="el" href="<API key>.html">COREPOS\pos\lib\models\BasicModel</a></td><td class="entry"></td></tr>
</table></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Sep 2 2016 11:30:50 for CORE POS - IS4C by &
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
|
#include "config.h"
#include "<API key>.h"
#if ENABLE(INSPECTOR)
#include "<API key>.h"
#include "ScriptState.h"
using namespace Inspector;
namespace WebCore {
<API key>::<API key>(<API key>& environment, PassRefPtr<InjectedScriptHost> host)
: <API key>(environment, host)
, <API key>(CommandLineAPIHost::create())
{
}
void <API key>::disconnect()
{
<API key>::disconnect();
<API key>->disconnect();
<API key>.clear();
}
void <API key>::<API key>(InjectedScript injectedScript)
{
<API key>::injectIfNeeded(this, injectedScript);
}
void <API key>::<API key>(DOMWindow* window)
{
if (m_scriptStateToId.isEmpty())
return;
Vector<long> idsToRemove;
for (const auto& it : <API key>) {
JSC::ExecState* scriptState = it.value.scriptState();
if (window != <API key>(scriptState))
continue;
m_scriptStateToId.remove(scriptState);
idsToRemove.append(it.key);
}
for (size_t i = 0; i < idsToRemove.size(); i++)
<API key>.remove(idsToRemove[i]);
// Now remove script states that have id but no injected script.
Vector<JSC::ExecState*> <API key>;
for (const auto& it : m_scriptStateToId) {
JSC::ExecState* scriptState = it.key;
if (window == <API key>(scriptState))
<API key>.append(scriptState);
}
for (size_t i = 0; i < <API key>.size(); i++)
m_scriptStateToId.remove(<API key>[i]);
}
} // namespace WebCore
#endif // ENABLE(INSPECTOR)
|
# -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function)
from sympy import log, exp, Symbol, Pow, sin
from sympy.printing.ccode import ccode
from sympy.codegen.cfunctions import log2, exp2, expm1, log1p
from sympy.codegen.rewriting import (
optimize, log2_opt, exp2_opt, expm1_opt, log1p_opt, optims_c99,
<API key>
)
from sympy.utilities.pytest import XFAIL
def test_log2_opt():
x = Symbol('x')
expr1 = 7*log(3*x + 5)/(log(2))
opt1 = optimize(expr1, [log2_opt])
assert opt1 == 7*log2(3*x + 5)
assert opt1.rewrite(log) == expr1
expr2 = 3*log(5*x + 7)/(13*log(2))
opt2 = optimize(expr2, [log2_opt])
assert opt2 == 3*log2(5*x + 7)/13
assert opt2.rewrite(log) == expr2
expr3 = log(x)/log(2)
opt3 = optimize(expr3, [log2_opt])
assert opt3 == log2(x)
assert opt3.rewrite(log) == expr3
expr4 = log(x)/log(2) + log(x+1)
opt4 = optimize(expr4, [log2_opt])
assert opt4 == log2(x) + log(2)*log2(x+1)
assert opt4.rewrite(log) == expr4
expr5 = log(17)
opt5 = optimize(expr5, [log2_opt])
assert opt5 == expr5
expr6 = log(x + 3)/log(2)
opt6 = optimize(expr6, [log2_opt])
assert str(opt6) == 'log2(x + 3)'
assert opt6.rewrite(log) == expr6
def test_exp2_opt():
x = Symbol('x')
expr1 = 1 + 2**x
opt1 = optimize(expr1, [exp2_opt])
assert opt1 == 1 + exp2(x)
assert opt1.rewrite(Pow) == expr1
expr2 = 1 + 3**x
assert expr2 == optimize(expr2, [exp2_opt])
def test_expm1_opt():
x = Symbol('x')
expr1 = exp(x) - 1
opt1 = optimize(expr1, [expm1_opt])
assert expm1(x) - opt1 == 0
assert opt1.rewrite(exp) == expr1
expr2 = 3*exp(x) - 3
opt2 = optimize(expr2, [expm1_opt])
assert 3*expm1(x) == opt2
assert opt2.rewrite(exp) == expr2
expr3 = 3*exp(x) - 5
assert expr3 == optimize(expr3, [expm1_opt])
expr4 = 3*exp(x) + log(x) - 3
opt4 = optimize(expr4, [expm1_opt])
assert 3*expm1(x) + log(x) == opt4
assert opt4.rewrite(exp) == expr4
expr5 = 3*exp(2*x) - 3
opt5 = optimize(expr5, [expm1_opt])
assert 3*expm1(2*x) == opt5
assert opt5.rewrite(exp) == expr5
@XFAIL
def <API key>():
x, y = map(Symbol, 'x y'.split())
expr1 = exp(x) + exp(y) - 2
opt1 = optimize(expr1, [expm1_opt])
assert opt1 == expm1(x) + expm1(y)
def test_log1p_opt():
x = Symbol('x')
expr1 = log(x + 1)
opt1 = optimize(expr1, [log1p_opt])
assert log1p(x) - opt1 == 0
assert opt1.rewrite(log) == expr1
expr2 = log(3*x + 3)
opt2 = optimize(expr2, [log1p_opt])
assert log1p(x) + log(3) == opt2
assert (opt2.rewrite(log) - expr2).simplify() == 0
expr3 = log(2*x + 1)
opt3 = optimize(expr3, [log1p_opt])
assert log1p(2*x) - opt3 == 0
assert opt3.rewrite(log) == expr3
expr4 = log(x+3)
opt4 = optimize(expr4, [log1p_opt])
assert str(opt4) == 'log(x + 3)'
def test_optims_c99():
x = Symbol('x')
expr1 = 2**x + log(x)/log(2) + log(x + 1) + exp(x) - 1
opt1 = optimize(expr1, optims_c99).simplify()
assert opt1 == exp2(x) + log2(x) + log1p(x) + expm1(x)
assert opt1.rewrite(exp).rewrite(log).rewrite(Pow) == expr1
expr2 = log(x)/log(2) + log(x + 1)
opt2 = optimize(expr2, optims_c99)
assert opt2 == log2(x) + log1p(x)
assert opt2.rewrite(log) == expr2
expr3 = log(x)/log(2) + log(17*x + 17)
opt3 = optimize(expr3, optims_c99)
delta3 = opt3 - (log2(x) + log(17) + log1p(x))
assert delta3 == 0
assert (opt3.rewrite(log) - expr3).simplify() == 0
expr4 = 2**x + 3*log(5*x + 7)/(13*log(2)) + 11*exp(x) - 11 + log(17*x + 17)
opt4 = optimize(expr4, optims_c99).simplify()
delta4 = opt4 - (exp2(x) + 3*log2(5*x + 7)/13 + 11*expm1(x) + log(17) + log1p(x))
assert delta4 == 0
assert (opt4.rewrite(exp).rewrite(log).rewrite(Pow) - expr4).simplify() == 0
expr5 = 3*exp(2*x) - 3
opt5 = optimize(expr5, optims_c99)
delta5 = opt5 - 3*expm1(2*x)
assert delta5 == 0
assert opt5.rewrite(exp) == expr5
expr6 = exp(2*x) - 3
opt6 = optimize(expr6, optims_c99)
delta6 = opt6 - (exp(2*x) - 3)
assert delta6 == 0
expr7 = log(3*x + 3)
opt7 = optimize(expr7, optims_c99)
delta7 = opt7 - (log(3) + log1p(x))
assert delta7 == 0
assert (opt7.rewrite(log) - expr7).simplify() == 0
expr8 = log(2*x + 3)
opt8 = optimize(expr8, optims_c99)
assert opt8 == expr8
def <API key>():
my_opt = <API key>(4)
x = Symbol('x')
assert ccode(optimize(x**4, [my_opt])) == 'x*x*x*x'
x5x4 = x**5 + x**4
assert ccode(optimize(x5x4, [my_opt])) == 'pow(x, 5) + x*x*x*x'
sin4x = sin(x)**4
assert ccode(optimize(sin4x, [my_opt])) == 'pow(sin(x), 4)'
|
#include <pthread.h>
#include <errno.h>
#include <sched.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "posixtest.h"
int main(void)
{
#if defined(<API key>)
if (sysconf(<API key>) == -1) {
printf("PRIORITY_SCHEDULING not supported\n");
return PTS_UNSUPPORTED;
}
pthread_mutexattr_t mutex_attr;
pthread_mutex_t mutex;
int error, prioceiling;
error = <API key>(&mutex_attr);
if (error) {
printf("<API key> failed: %s\n", strerror(error));
return PTS_UNRESOLVED;
}
/*
* The default protocol is PTHREAD_PRIO_NONE according to
* <API key>.
*/
error = <API key>(&mutex_attr, PTHREAD_PRIO_NONE);
if (error) {
printf("<API key> failed: %s\n",
strerror(error));
return PTS_UNRESOLVED;
}
/* Initialize a mutex object */
error = pthread_mutex_init(&mutex, &mutex_attr);
if (error) {
printf("pthread_mutex_init failed: %s\n", strerror(error));
return PTS_UNRESOLVED;
}
/* Get the prioceiling of the mutex. */
error = <API key>(&mutex, &prioceiling);
if (error) {
if (error == EINVAL) {
printf("<API key> failed as "
"expected\n");
} else {
printf("<API key> did not fail as "
"expected: %s\n", strerror(error));
}
} else
printf("<API key> passed unexpectedly\n");
(void)<API key>(&mutex_attr);
(void)<API key>(&mutex);
return (error == EINVAL ? PTS_PASS : PTS_FAIL);
#else
printf("<API key> not supported");
return PTS_UNSUPPORTED;
#endif
}
|
<?php
/*
* Pinterest, Reddit, StumbleUpon and LinkedIn buttons Processor code for WP Socializer Plugin
* Version : 2.5
* Since v2.0
* Author : Aakash Chakravarthy
*/
// StumbleUpon button
function <API key>(){
return "
<!-- WP Socializer - StumbleUpon Script -->
<script type=\"text/javascript\">
(function() {
var li = document.createElement('script'); li.type = 'text/javascript'; li.async = true;
li.src = window.location.protocol + '//platform.stumbleupon.com/1/widgets.js';
var s = document.<API key>('script')[0]; s.parentNode.insertBefore(li, s);
})();
</script>
<!-- WP Socializer - StumbleUpon Script -->\n";
}
function wpsr_stumbleupon($args = ''){
global $post;
$details = <API key>();
$def_url = $details['permalink'];
$def_title = $details['title'];
$defaults = array (
'output' => 'button',
'url' => $def_url,
'title' => $def_title,
'type' => '1',
'text' => __('Stumble this' ,'wpsr'),
'image' => WPSR_PUBLIC_URL . 'buttons/stumbleupon-bt.gif',
'params' => '',
);
$args = wp_parse_args($args, $defaults);
extract($args, EXTR_SKIP);
$<API key> = "\n<!-- Start WP Socializer Plugin - StumbleUpon Button -->\n";
switch($output){
// Display the ordinary button
case 'button':
$<API key> .= '<su:badge layout="' . $type . '"></su:badge>';
break;
// Display the Image format
case 'image':
$<API key> .= '<a href="http:
break;
// Display the Text format
case 'text':
$<API key> .= '<a href="http:
break;
}
$<API key> .= "\n<!-- End WP Socializer Plugin - StumbleUpon Button -->\n";
return $<API key>;
}
function wpsr_stumbleupon_bt($type){
## Start Output
$<API key> = wpsr_stumbleupon(array(
'output' => 'button',
'type' => $type,
));
## End Output
return $<API key>;
}
function <API key>(){
## Start Output
$<API key> = wpsr_stumbleupon(array(
'output' => 'text',
'params' => 'target="_blank"',
));
## End Output
return $<API key>;
}
// Pinterest button
function <API key>(){
return "
<!-- WP Socializer - Pinterest Script -->\n" .
'<script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>'.
"\n<!-- WP Socializer - Pinterest Script -->\n";
}
function wpsr_pinterest($args = ''){
global $post;
$details = <API key>();
$def_url = $details['permalink'];
$def_title = $details['title'];
$def_media = $details['image'];
$defaults = array (
'output' => 'button',
'url' => $def_url,
'title' => $def_title,
'type' => 'horizontal',
'media' => $def_media,
'text' => __('Submit this to', 'wpsr'),
'image' => '//assets.pinterest.com/images/PinExt.png',
'params' => '',
);
$args = wp_parse_args($args, $defaults);
extract($args, EXTR_SKIP);
// fix padding problem since 2.4.9.8
$padd = "";
if( $type == 'above' ) $padd = 'style="padding:35px 0 5px"';
elseif( $type == 'beside' ) $padd = 'style="padding-right:50px"';
$pinterest_processed = "\n<!-- Start WP Socializer Plugin - Pinterest Button -->\n";
switch($output){
// Display the ordinary button
case 'button':
$pinterest_processed .= '<div ' . $padd . '><a href="http://pinterest.com/pin/create/button/?url=' . urlencode($url) . '&media=' . urlencode($media) . '" data-pin-do="buttonPin" data-pin-config="' . $type . '" ><img border="0" src="//assets.pinterest.com/images/pidgets/<API key>.png" alt="Pinterest" title="Pin It" /></a></div>';
break;
// Display the Image format
case 'image':
$pinterest_processed .= '<a href="http://pinterest.com/pin/create/button/?url=' . urlencode($url) . '&media=' . urlencode($media) . '" ' . $params . '><img src="' . $image . '" alt="Submit to Reddit" /></a>';
break;
// Display the Text format
case 'text':
$pinterest_processed .= '<a href="http://pinterest.com/pin/create/button/?url=' . urlencode($url) . '&media=' . urlencode($media) . '" ' . $params . '>' . $text . '</a>';
break;
}
$pinterest_processed .= "\n<!-- End WP Socializer Plugin - Pinterest Button -->\n";
return $pinterest_processed;
}
function wpsr_pinterest_bt($type){
## Start Output
$<API key> = wpsr_pinterest(array(
'output' => 'button',
'type' => $type,
));
## End Output
return $<API key>;
}
function <API key>(){
## Start Output
$<API key> = wpsr_pinterest(array(
'output' => 'text',
'params' => 'target="_blank"',
));
## End Output
return $<API key>;
}
// Reddit button
function wpsr_reddit($args = ''){
global $post;
$details = <API key>();
$def_url = $details['permalink'];
$def_title = $details['title'];
$defaults = array (
'output' => 'button',
'url' => $def_url,
'title' => $def_title,
'type' => '2',
'text' => __('Reddit this', 'wpsr'),
'image' => WPSR_PUBLIC_URL . 'buttons/reddit-bt.gif',
'params' => '',
);
$args = wp_parse_args($args, $defaults);
extract($args, EXTR_SKIP);
$reddit_processed = "\n<!-- Start WP Socializer Plugin - Reddit Button -->\n";
switch($output){
// Display the ordinary button
case 'button':
$reddit_processed .= '<script type="text/javascript">reddit_url = "' . $url . '";reddit_title = "' . $title . '";reddit_newwindow="1";</script><script type="text/javascript" src="http:
break;
// Display the Image format
case 'image':
$reddit_processed .= '<a href="http:
break;
// Display the Text format
case 'text':
$reddit_processed .= '<a href="http:
break;
}
$reddit_processed .= "\n<!-- End WP Socializer Plugin - Reddit Button -->\n";
return $reddit_processed;
}
function wpsr_reddit_bt($type){
## Start Output
$<API key> = wpsr_reddit(array(
'output' => 'button',
'type' => $type,
));
## End Output
return $<API key>;
}
function wpsr_reddit_rss_bt(){
## Start Output
$<API key> = wpsr_reddit(array(
'output' => 'text',
'params' => 'target="_blank"',
));
## End Output
return $<API key>;
}
// LinkedIn button
function <API key>(){
// Return the script
return "
<!-- WP Socializer - LinkedIn Script -->\n".
"<script type=\"text/javascript\">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'http://platform.linkedin.com/in.js';
var s = document.<API key>('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>".
"\n<!-- WP Socializer - End LinkedIn Script -->\n";
}
function wpsr_linkedin($args = ''){
global $post;
$details = <API key>();
$def_url = $details['permalink'];
$def_title = $details['title'];
$defaults = array (
'output' => 'button',
'url' => $def_url,
'title' => $def_title,
'type' => 'right',
'text' => __('Submit this to ' ,'wpsr'),
'image' => WPSR_PUBLIC_URL . 'buttons/linkedin-bt.png',
'params' => '',
);
$args = wp_parse_args($args, $defaults);
extract($args, EXTR_SKIP);
$linkedin_processed = "\n<!-- Start WP Socializer Plugin - LinkedIn Button -->\n";
switch($output){
// Display the ordinary button
case 'button':
$linkedin_processed .= '<script type="IN/Share" data-url="' . $url . '" data-counter="' . $type . '"></script>';
break;
// Display the Image format
case 'image':
$linkedin_processed .= '<a href="http:
break;
// Display the Text format
case 'text':
$linkedin_processed .= '<a href="http:
break;
}
$linkedin_processed .= "\n<!-- End WP Socializer Plugin - LinkedIn Button -->\n";
return $linkedin_processed;
}
function wpsr_linkedin_bt($type){
## Start Output
$<API key> = wpsr_linkedin(array(
'output' => 'button',
'type' => $type,
));
## End Output
return $<API key>;
}
function <API key>(){
## Start Output
$<API key> = wpsr_linkedin(array(
'output' => 'text',
'params' => 'target="_blank"',
));
## End Output
return $<API key>;
}
?>
|
#include "qgis.h"
#include "qgsfeature.h"
#include "qgsfields.h"
#include "qgsgeometry.h"
#include "<API key>.h"
#include "qgslogger.h"
#include "qgsmessagelog.h"
#include "qgsogcutils.h"
#include "qgsoapifprovider.h"
#include "qgswfsdataitems.h"
#include "qgswfsconstants.h"
#include "<API key>.h"
#include "qgswfsprovider.h"
#include "qgswfscapabilities.h"
#include "<API key>.h"
#include "<API key>.h"
#include "qgswfsshareddata.h"
#include "qgswfsutils.h"
#include "qgssettings.h"
#include <QApplication>
#include <QDomDocument>
#include <QMessageBox>
#include <QDomNodeList>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QFile>
#include <QUrl>
#include <QWidget>
#include <QPair>
#include <QTimer>
#include <QUrlQuery>
#include <QRegularExpression>
#include <cfloat>
const QString QgsWFSProvider::WFS_PROVIDER_KEY = QStringLiteral( "WFS" );
const QString QgsWFSProvider::<API key> = QStringLiteral( "WFS data provider" );
QgsWFSProvider::QgsWFSProvider( const QString &uri, const ProviderOptions &options, const QgsWfsCapabilities::Capabilities &caps )
: <API key>( uri, options )
, mShared( new QgsWFSSharedData( uri ) )
{
mShared->mCaps = caps;
mShared->mServerMaxFeatures = caps.maxFeatures;
connect( mShared.get(), &QgsWFSSharedData::raiseError, this, &QgsWFSProvider::pushErrorSlot );
connect( mShared.get(), &QgsWFSSharedData::extentUpdated, this, &QgsWFSProvider::<API key> );
if ( uri.isEmpty() )
{
mValid = false;
return;
}
//create mSourceCrs from url if possible [WBC 111221] refactored from GetFeatureGET()
QString srsname = mShared->mURI.SRSName();
if ( !srsname.isEmpty() )
{
if ( srsname == QLatin1String( "EPSG:900913" ) )
mShared->mSourceCrs = <API key>::fromOgcWmsCrs( QStringLiteral( "EPSG:3857" ) );
else
mShared->mSourceCrs = <API key>::fromOgcWmsCrs( srsname );
}
// Must be called first to establish the version, in case we are in auto-detection
if ( !getCapabilities() )
{
mValid = false;
return;
}
if ( !mShared->mURI.sql().isEmpty() )
{
if ( !processSQL( mShared->mURI.sql(), mProcessSQLErrorMsg, <API key> ) )
{
QgsMessageLog::logMessage( mProcessSQLErrorMsg, tr( "WFS" ) );
mValid = false;
return;
}
mSubsetString = mShared->mURI.sql();
}
else
{
mSubsetString = mShared->mURI.filter();
//fetch attributes of layer and type of its geometry attribute
//WBC 111221: extracting geometry type here instead of getFeature allows successful
//layer creation even when no features are retrieved (due to, e.g., BBOX or FILTER)
if ( !describeFeatureType( mShared->mGeometryAttribute, mShared->mFields, mShared->mWKBType ) )
{
mValid = false;
return;
}
mThisTypenameFields = mShared->mFields;
}
if ( !mShared->computeFilter( mProcessSQLErrorMsg ) )
{
QgsMessageLog::logMessage( mProcessSQLErrorMsg, tr( "WFS" ) );
mValid = false;
return;
}
//Failed to detect feature type from describeFeatureType -> get first feature from layer to detect type
if ( mShared->mWKBType == QgsWkbTypes::Unknown )
{
const bool <API key> = QThread::currentThread() == QApplication::instance()->thread();
auto downloader = std::make_unique<<API key>>();
downloader->setImpl( std::make_unique<<API key>>( mShared.get(), downloader.get(), <API key> ) );
connect( downloader.get(),
qOverload < QVector<<API key>> >( &<API key>::featureReceived ),
this, &QgsWFSProvider::<API key> );
if ( <API key> )
{
auto processEvents = []()
{
QApplication::instance()->processEvents();
};
connect( downloader.get(), &<API key>::resumeMainThread,
this, processEvents );
}
downloader->run( false, /* serialize features */
1 /* maxfeatures */ );
}
}
QgsWFSProvider::~QgsWFSProvider()
{
QgsDebugMsgLevel( QStringLiteral( "~QgsWFSProvider()" ), 4 );
}
class <API key>: public QgsSQLStatement::RecursiveVisitor
{
public:
<API key>(
const QList<QgsWfsCapabilities::Function> &<API key>,
const QList<QgsWfsCapabilities::Function> &functionList );
bool hasError() const { return mError; }
const QString &errorMessage() const { return mErrorMessage; }
protected:
void visit( const QgsSQLStatement::NodeFunction &n ) override;
private:
const QList<QgsWfsCapabilities::Function> &<API key>;
const QList<QgsWfsCapabilities::Function> &mFunctionList;
bool mError;
QString mErrorMessage;
};
<API key>::<API key>(
const QList<QgsWfsCapabilities::Function> &<API key>,
const QList<QgsWfsCapabilities::Function> &functionList )
: <API key>( <API key> )
, mFunctionList( functionList )
, mError( false )
{
}
void <API key>::visit( const QgsSQLStatement::NodeFunction &n )
{
if ( !mError )
{
bool foundMatch = false;
const auto <API key> = <API key>;
for ( const QgsWfsCapabilities::Function &f : <API key> )
{
if ( n.name().compare( f.name, Qt::CaseInsensitive ) == 0 ||
QString( "ST_" + n.name() ).compare( f.name, Qt::CaseInsensitive ) == 0 )
{
foundMatch = true;
}
}
const auto constMFunctionList = mFunctionList;
for ( const QgsWfsCapabilities::Function &f : constMFunctionList )
{
if ( n.name().compare( f.name, Qt::CaseInsensitive ) == 0 )
{
foundMatch = true;
}
}
if ( !foundMatch )
{
mError = true;
mErrorMessage = QObject::tr( "Function '%1' is not declared by the WFS server" ).arg( n.name() );
}
QgsSQLStatement::RecursiveVisitor::visit( n );
}
}
class <API key>: public QgsSQLStatement::RecursiveVisitor
{
public:
<API key>(
const QgsWfsCapabilities::Capabilities &caps,
const QString &defaultTypeName,
const QMap< QString, QString > &<API key>,
const QMap < QString, QgsFields > &mapTypenameToFields,
const QMap < QString, QString > &<API key> );
bool hasError() const { return mError; }
const QString &errorMessage() const { return mErrorMessage; }
protected:
void visit( const QgsSQLStatement::NodeColumnRef &n ) override;
private:
const QgsWfsCapabilities::Capabilities mCaps;
QString mDefaultTypeName;
const QMap< QString, QString > &<API key>;
const QMap < QString, QgsFields > &<API key>;
const QMap < QString, QString > &<API key>;
bool mError;
QString mErrorMessage;
};
<API key>::<API key>(
const QgsWfsCapabilities::Capabilities &caps,
const QString &defaultTypeName,
const QMap< QString, QString > &<API key>,
const QMap < QString, QgsFields > &mapTypenameToFields,
const QMap < QString, QString > &<API key> )
: mCaps( caps )
, mDefaultTypeName( defaultTypeName )
, <API key>( <API key> )
, <API key>( mapTypenameToFields )
, <API key>( <API key> )
, mError( false )
{
}
void <API key>::visit( const QgsSQLStatement::NodeColumnRef &n )
{
if ( !mError && !n.star() )
{
QString typeName = mDefaultTypeName;
if ( !n.tableName().isEmpty() )
{
if ( <API key>.contains( n.tableName() ) )
typeName = <API key>[n.tableName()];
else if ( <API key>.contains( mCaps.addPrefixIfNeeded( n.tableName() ) ) )
typeName = <API key>[mCaps.addPrefixIfNeeded( n.tableName() )];
else
{
mError = true;
mErrorMessage = QObject::tr( "Column '%1' references a non existing table" ).
arg( n.dump() );
return;
}
}
QgsFields tableFields = <API key>[typeName];
int idx = tableFields.lookupField( n.name() );
if ( idx < 0 && <API key>[typeName] != n.name() )
{
mError = true;
mErrorMessage = QObject::tr( "Column '%1' references a non existing field" ).
arg( n.dump() );
return;
}
QgsSQLStatement::RecursiveVisitor::visit( n );
}
}
bool QgsWFSProvider::processSQL( const QString &sqlString, QString &errorMsg, QString &warningMsg )
{
QgsDebugMsgLevel( QStringLiteral( "Processing SQL: %1" ).arg( sqlString ), 4 );
errorMsg.clear();
warningMsg.clear();
QgsSQLStatement sql( sqlString );
if ( sql.hasParserError() )
{
QString parserErrorString( sql.parserErrorString() );
QStringList parts( parserErrorString.split( ',' ) );
parserErrorString.clear();
const auto constParts = parts;
for ( const QString &part : constParts )
{
QString newPart( part );
if ( part == QLatin1String( "syntax error" ) )
newPart = tr( "Syntax error." );
else if ( part == QLatin1String( " unexpected $end" ) )
newPart = tr( "Missing content at end of string." );
else if ( part.startsWith( QLatin1String( " unexpected " ) ) )
newPart = tr( "%1 is unexpected." ).arg( part.mid( QStringLiteral( " unexpected " ).size() ) );
else if ( part.startsWith( QLatin1String( " expecting " ) ) )
newPart = tr( "%1 is expected instead." ).arg( part.mid( QStringLiteral( " expecting " ).size() ) );
if ( !parserErrorString.isEmpty() )
parserErrorString += QLatin1Char( ' ' );
parserErrorString += newPart;
}
parserErrorString.replace( QLatin1String( " or " ), tr( "%1 or %2" ).arg( QString(), QString() ) );
parserErrorString.replace( QLatin1String( "COMMA" ), tr( "comma" ) );
parserErrorString.replace( QLatin1String( "IDENTIFIER" ), tr( "an identifier" ) );
errorMsg = tr( "SQL query is invalid: %1" ).arg( parserErrorString );
return false;
}
if ( !sql.<API key>( errorMsg ) )
{
errorMsg = tr( "SQL query is invalid: %1" ).arg( errorMsg );
return false;
}
if ( sql.rootNode()->nodeType() != QgsSQLStatement::ntSelect )
{
// Shouldn't happen
QgsDebugMsg( QStringLiteral( "SQL statement is not a SELECT. This should not happen" ) );
return false;
}
const QgsSQLStatement::NodeSelect *select = dynamic_cast<const QgsSQLStatement::NodeSelect *>( sql.rootNode() );
if ( !select )
{
// Makes Coverity happy, but cannot happen in practice
QgsDebugMsg( QStringLiteral( "should not happen" ) );
return false;
}
mShared->mDistinctSelect = select->distinct();
QMap< QString, QString > <API key>;
QMap< QString, QString > <API key>; // reverse map of the previous one
QList<QgsSQLStatement::NodeTableDef *> tables = select->tables();
QList< QString> typenameList;
bool <API key> = false;
QSet< QString > unprefixTypenames;
const auto constTables = tables;
for ( QgsSQLStatement::NodeTableDef *table : constTables )
{
QString prefixedTypename( mShared->mCaps.addPrefixIfNeeded( table->name() ) );
if ( prefixedTypename.isEmpty() )
{
if ( mShared->mCaps.<API key>.contains( table->name() ) )
{
errorMsg = tr( "Typename '%1' is ambiguous without prefix" ).arg( table->name() );
}
else
{
errorMsg = tr( "Typename '%1' is unknown" ).arg( table->name() );
}
return false;
}
typenameList << prefixedTypename;
if ( unprefixTypenames.contains( QgsWFSUtils::<API key>( prefixedTypename ) ) )
{
<API key> = true;
}
unprefixTypenames.insert( QgsWFSUtils::<API key>( prefixedTypename ) );
if ( table->alias().isEmpty() )
{
<API key>[ prefixedTypename ] = prefixedTypename;
<API key>[ prefixedTypename ] = prefixedTypename;
}
else
{
<API key>[ table->alias()] = prefixedTypename;
<API key>[ prefixedTypename ] = table->alias();
}
}
QList<QgsSQLStatement::NodeJoin *> joins = select->joins();
const auto constJoins = joins;
for ( QgsSQLStatement::NodeJoin *join : constJoins )
{
QgsSQLStatement::NodeTableDef *table = join->tableDef();
QString prefixedTypename( mShared->mCaps.addPrefixIfNeeded( table->name() ) );
if ( prefixedTypename.isEmpty() )
{
if ( mShared->mCaps.<API key>.contains( table->name() ) )
{
errorMsg = tr( "Typename '%1' is ambiguous without prefix" ).arg( table->name() );
}
else
{
errorMsg = tr( "Typename '%1' is unknown" ).arg( table->name() );
}
return false;
}
typenameList << prefixedTypename;
if ( unprefixTypenames.contains( QgsWFSUtils::<API key>( prefixedTypename ) ) )
{
<API key> = true;
}
unprefixTypenames.insert( QgsWFSUtils::<API key>( prefixedTypename ) );
if ( table->alias().isEmpty() )
{
<API key>[ prefixedTypename ] = prefixedTypename;
<API key>[ prefixedTypename ] = prefixedTypename;
}
else
{
<API key>[ table->alias()] = prefixedTypename;
<API key>[ prefixedTypename ] = table->alias();
}
}
if ( typenameList.size() > 1 && !mShared->mCaps.supportsJoins )
{
errorMsg = tr( "JOINs are not supported by this server" );
return false;
}
if ( !typenameList.contains( mShared->mURI.typeName() ) )
{
errorMsg = tr( "FROM or JOIN clause should contain the table name '%1'" ).arg( mShared->mURI.typeName() );
return false;
}
QString <API key>;
for ( const QString &typeName : std::as_const( typenameList ) )
{
if ( !<API key>.isEmpty() )
<API key> += QLatin1Char( ',' );
<API key> += typeName;
}
<API key> describeFeatureType( mShared->mURI );
if ( !describeFeatureType.requestFeatureType( mShared->mWFSVersion,
<API key>, mShared->mCaps ) )
{
errorMsg = tr( "DescribeFeatureType failed for url %1: %2" ).
arg( dataSourceUri(), describeFeatureType.errorMessage() );
return false;
}
QByteArray response = describeFeatureType.response();
QDomDocument <API key>;
errorMsg.clear();
if ( !<API key>.setContent( response, true, &errorMsg ) )
{
QgsDebugMsgLevel( response, 4 );
errorMsg = tr( "DescribeFeatureType failed for url %1: %2" ).
arg( dataSourceUri(), errorMsg );
return false;
}
mShared-><API key>.clear();
QMap < QString, QgsFields > mapTypenameToFields;
QMap < QString, QString > <API key>;
for ( const QString &typeName : std::as_const( typenameList ) )
{
QString geometryAttribute;
QgsFields fields;
QgsWkbTypes::Type geomType;
if ( !<API key>( <API key>,
typeName,
geometryAttribute, fields, geomType, errorMsg ) )
{
errorMsg = tr( "Analysis of DescribeFeatureType response failed for url %1, typeName %2: %3" ).
arg( dataSourceUri(), typeName, errorMsg );
return false;
}
mapTypenameToFields[typeName] = fields;
<API key>[typeName] = geometryAttribute;
if ( typeName == mShared->mURI.typeName() )
{
mShared->mGeometryAttribute = geometryAttribute;
mShared->mWKBType = geomType;
mThisTypenameFields = fields;
}
QgsOgcUtils::LayerProperties layerProperties;
layerProperties.mName = typeName;
layerProperties.mGeometryAttribute = geometryAttribute;
if ( typeName == mShared->mURI.typeName() )
layerProperties.mSRSName = mShared->srsName();
mShared-><API key> << layerProperties;
}
const QString &defaultTypeName = mShared->mURI.typeName();
<API key> oColumnValidator(
mShared->mCaps,
defaultTypeName,
<API key>,
mapTypenameToFields,
<API key> );
sql.acceptVisitor( oColumnValidator );
if ( oColumnValidator.hasError() )
{
errorMsg = oColumnValidator.errorMessage();
return false;
}
if ( mShared->mURI.<API key>() )
{
<API key> oValidator( mShared->mCaps.<API key>,
mShared->mCaps.functionList );
sql.acceptVisitor( oValidator );
if ( oValidator.hasError() )
{
errorMsg = oValidator.errorMessage();
return false;
}
}
QList<QgsSQLStatement::NodeSelectedColumn *> columns = select->columns();
QMap< QString, QPair<QString, QString> > <API key>;
mShared->mFields.clear();
const auto constColumns = columns;
for ( QgsSQLStatement::NodeSelectedColumn *selectedcolumn : constColumns )
{
QgsSQLStatement::Node *column = selectedcolumn->column();
if ( column->nodeType() != QgsSQLStatement::ntColumnRef )
{
errorMsg = tr( "Column '%1' is not a direct reference to a table column." ).arg( column->dump() );
return false;
}
QgsSQLStatement::NodeColumnRef *columnRef = dynamic_cast<QgsSQLStatement::NodeColumnRef *>( column );
Q_ASSERT( columnRef );
QString columnTableTypename = defaultTypeName;
if ( !columnRef->tableName().isEmpty() )
{
if ( <API key>.contains( columnRef->tableName() ) )
columnTableTypename = <API key>[columnRef->tableName()];
else
columnTableTypename = mShared->mCaps.addPrefixIfNeeded( columnRef->tableName() );
}
if ( columnRef->star() )
{
// table.* syntax
if ( !columnRef->tableName().isEmpty() )
{
const QgsFields tableFields = mapTypenameToFields[columnTableTypename];
for ( int i = 0; i < tableFields.size(); i++ )
{
QgsField srcField = tableFields.at( i );
QString fieldName( srcField.name() );
// If several tables selected, prefix by table name
if ( typenameList.size() > 1 )
{
QString tablePrefix( mShared->mCaps.addPrefixIfNeeded( columnRef->tableName() ) );
if ( tablePrefix.isEmpty() ) // might be an alias
tablePrefix = columnRef->tableName();
if ( !<API key> )
tablePrefix = QgsWFSUtils::<API key>( tablePrefix );
fieldName = tablePrefix + "." + fieldName;
}
QgsField field( srcField );
field.setName( fieldName );
if ( <API key>.contains( fieldName ) )
{
errorMsg = tr( "Field '%1': a field with the same name already exists." ).arg( field.name() );
return false;
}
<API key>[ field.name()] =
QPair<QString, QString>( columnTableTypename, srcField.name() );
mShared->mFields.append( field );
}
}
else
{
// * syntax
const auto constTypenameList = typenameList;
for ( const QString &typeName : constTypenameList )
{
const QgsFields tableFields = mapTypenameToFields[typeName];
for ( int i = 0; i < tableFields.size(); i++ )
{
QgsField srcField = tableFields.at( i );
QString fieldName( srcField.name() );
// If several tables selected, prefix by table name
if ( typenameList.size() > 1 )
{
QString tablePrefix( <API key>[typeName] );
if ( !<API key> )
tablePrefix = QgsWFSUtils::<API key>( tablePrefix );
fieldName = tablePrefix + "." + fieldName;
}
QgsField field( srcField );
field.setName( fieldName );
<API key>[ field.name()] =
QPair<QString, QString>( typeName, srcField.name() );
mShared->mFields.append( field );
}
}
}
}
// Geometry field
else if ( <API key>[columnTableTypename] == columnRef->name() )
{
if ( columnTableTypename != mShared->mURI.typeName() )
{
warningMsg = tr( "The geometry field of a typename that is not the main typename is ignored in the selected fields." );
QgsDebugMsg( warningMsg );
}
}
// Regular field
else
{
const QgsFields tableFields = mapTypenameToFields[columnTableTypename];
int idx = tableFields.lookupField( columnRef->name() );
if ( idx < 0 )
{
QgsDebugMsg( QStringLiteral( "Should not happen. Cannot find field for %1" ).arg( columnRef->name() ) );
continue;
}
QString fieldName( columnRef->name() );
if ( !selectedcolumn->alias().isEmpty() )
fieldName = selectedcolumn->alias();
else if ( !columnRef->tableName().isEmpty() )
{
QString tablePrefix( mShared->mCaps.addPrefixIfNeeded( columnRef->tableName() ) );
if ( tablePrefix.isEmpty() ) // might be an alias
tablePrefix = columnRef->tableName();
if ( !<API key> )
tablePrefix = QgsWFSUtils::<API key>( tablePrefix );
fieldName = tablePrefix + "." + fieldName;
}
if ( <API key>.contains( fieldName ) )
{
errorMsg = tr( "Field '%1': a field with the same name already exists." ).arg( column->dump() );
return false;
}
QgsField orig = tableFields.at( idx );
QgsField field( orig );
field.setName( fieldName );
<API key>[ field.name()] =
QPair<QString, QString>( columnTableTypename, orig.name() );
mShared->mFields.append( field );
}
}
mShared-><API key> = <API key>;
return true;
}
void QgsWFSProvider::pushErrorSlot( const QString &errorMsg )
{
pushError( errorMsg );
}
void QgsWFSProvider::<API key>( QVector<<API key>> list )
{
if ( list.size() != 0 )
{
QgsFeature feat = list[0].first;
QgsGeometry geometry = feat.geometry();
if ( !geometry.isNull() )
{
mShared->mWKBType = geometry.wkbType();
// Fragile heuristics that helps for
// In case the geometry is a geometry collection, analyze its members to
// see if they are of the same type. If then, assume that all features
// will be similar, and report the proper MultiPoint/MultiLineString/
// MultiPolygon type instead.
if ( mShared->mWKBType == QgsWkbTypes::GeometryCollection )
{
auto geomColl = geometry.<API key>();
mShared->mWKBType = QgsWkbTypes::Unknown;
for ( const auto &geom : geomColl )
{
if ( mShared->mWKBType == QgsWkbTypes::Unknown )
{
mShared->mWKBType = geom.wkbType();
}
else if ( mShared->mWKBType != geom.wkbType() )
{
mShared->mWKBType = QgsWkbTypes::Unknown;
break;
}
}
if ( mShared->mWKBType != QgsWkbTypes::Unknown )
{
if ( mShared->mWKBType == QgsWkbTypes::Point )
{
QgsDebugMsg( QStringLiteral( "Layer of unknown type. First element is a GeometryCollection of Point. Advertizing optimistically as MultiPoint" ) );
mShared->mWKBType = QgsWkbTypes::MultiPoint;
}
else if ( mShared->mWKBType == QgsWkbTypes::LineString )
{
QgsDebugMsg( QStringLiteral( "Layer of unknown type. First element is a GeometryCollection of LineString. Advertizing optimistically as MultiLineString" ) );
mShared->mWKBType = QgsWkbTypes::MultiLineString;
}
else if ( mShared->mWKBType == QgsWkbTypes::Polygon )
{
QgsDebugMsg( QStringLiteral( "Layer of unknown type. First element is a GeometryCollection of Polygon. Advertizing optimistically as MultiPolygon" ) );
mShared->mWKBType = QgsWkbTypes::MultiPolygon;
}
else
{
mShared->mWKBType = QgsWkbTypes::Unknown;
}
}
}
}
}
}
QString QgsWFSProvider::subsetString() const
{
return mSubsetString;
}
bool QgsWFSProvider::setSubsetString( const QString &theSQL, bool updateFeatureCount )
{
Q_UNUSED( updateFeatureCount )
QgsDebugMsgLevel( QStringLiteral( "theSql = '%1'" ).arg( theSQL ), 4 );
if ( theSQL == mSubsetString )
return true;
// Invalid and cancel current download before altering fields, etc...
// (crashes might happen if not done at the beginning)
mShared->invalidateCache();
mSubsetString = theSQL;
clearMinMaxCache();
// update URI
mShared->mFields = mThisTypenameFields;
mShared-><API key>.clear();
mShared-><API key>.clear();
mShared->mDistinctSelect = false;
if ( theSQL.startsWith( QLatin1String( "SELECT " ), Qt::CaseInsensitive ) ||
theSQL.startsWith( QLatin1String( "SELECT\t" ), Qt::CaseInsensitive ) ||
theSQL.startsWith( QLatin1String( "SELECT\r" ), Qt::CaseInsensitive ) ||
theSQL.startsWith( QLatin1String( "SELECT\n" ), Qt::CaseInsensitive ) )
{
QString errorMsg, warningMsg;
if ( !processSQL( theSQL, errorMsg, warningMsg ) )
{
QgsMessageLog::logMessage( errorMsg, tr( "WFS" ) );
return false;
}
mShared->mURI.setSql( theSQL );
mShared->mURI.setFilter( QString() );
}
else
{
mShared->mURI.setSql( QString() );
mShared->mURI.setFilter( theSQL );
}
setDataSourceUri( mShared->mURI.uri() );
QString errorMsg;
if ( !mShared->computeFilter( errorMsg ) )
QgsMessageLog::logMessage( errorMsg, tr( "WFS" ) );
reloadData();
return true;
}
<API key> *QgsWFSProvider::featureSource() const
{
auto fs = new <API key>( mShared );
/*connect( fs, SIGNAL( extentRequested( const QgsRectangle & ) ),
this, SLOT( extendExtent( const QgsRectangle & ) ) );*/
return fs;
}
void QgsWFSProvider::reloadProviderData()
{
mShared->invalidateCache();
}
QDomElement QgsWFSProvider::geometryElement( const QgsGeometry &geometry, QDomDocument &transactionDoc )
{
QDomElement gmlElem;
// Determine axis orientation and gml version
bool applyAxisInversion;
QgsOgcUtils::GMLVersion gmlVersion;
if ( mShared->mWFSVersion.startsWith( QLatin1String( "1.1" ) ) )
{
// WFS 1.1.0 uses preferably GML 3, but ESRI mapserver in 2020 doesn't like it so we stick to GML2
if ( ! mShared-><API key> )
{
gmlVersion = QgsOgcUtils::GML_3_1_0;
}
else
{
gmlVersion = QgsOgcUtils::GML_2_1_2;
}
// For servers like Geomedia and QGIS Server that advertise EPSG:XXXX in capabilities even in WFS 1.1 or 2.0
// cpabilities useEPSGColumnFormat is set.
// We follow GeoServer convention here which is to treat EPSG:4326 as lon/lat
applyAxisInversion = ( crs().hasAxisInverted() && ! mShared->mURI.<API key>() && ! mShared->mCaps.useEPSGColumnFormat )
|| mShared->mURI.<API key>();
}
else
{
gmlVersion = QgsOgcUtils::GML_2_1_2;
applyAxisInversion = mShared->mURI.<API key>();
}
gmlElem = QgsOgcUtils::geometryToGML(
geometry,
transactionDoc,
gmlVersion,
mShared->srsName(),
applyAxisInversion,
QString()
);
return gmlElem;
}
QgsWkbTypes::Type QgsWFSProvider::wkbType() const
{
return mShared->mWKBType;
}
long long QgsWFSProvider::featureCount() const
{
return mShared->getFeatureCount();
}
QgsFields QgsWFSProvider::fields() const
{
return mShared->mFields;
}
QString QgsWFSProvider::geometryAttribute() const
{
return mShared->mGeometryAttribute;
}
<API key> QgsWFSProvider::crs() const
{
return mShared->mSourceCrs;
}
QgsRectangle QgsWFSProvider::extent() const
{
return mShared->consolidatedExtent();
}
bool QgsWFSProvider::isValid() const
{
return mValid;
}
QgsFeatureIterator QgsWFSProvider::getFeatures( const QgsFeatureRequest &request ) const
{
return QgsFeatureIterator( new <API key>( new <API key>( mShared ), true, mShared, request ) );
}
bool QgsWFSProvider::addFeatures( QgsFeatureList &flist, Flags flags )
{
//create <Transaction> xml
QDomDocument transactionDoc;
QDomElement transactionElem = <API key>( transactionDoc );
transactionDoc.appendChild( transactionElem );
//find out typename from uri and strip namespace prefix
QString tname = mShared->mURI.typeName();
if ( tname.isNull() )
{
return false;
}
tname = QgsWFSUtils::<API key>( tname );
//Add the features
QgsFeatureList::iterator featureIt = flist.begin();
for ( ; featureIt != flist.end(); ++featureIt )
{
//Insert element
QDomElement insertElem = transactionDoc.createElementNS( QgsWFSConstants::WFS_NAMESPACE, QStringLiteral( "Insert" ) );
transactionElem.appendChild( insertElem );
QDomElement featureElem = transactionDoc.createElementNS( <API key>, tname );
QgsAttributes featureAttributes = featureIt->attributes();
int nAttrs = featureAttributes.size();
for ( int i = 0; i < nAttrs; ++i )
{
const QVariant &value = featureAttributes.at( i );
if ( value.isValid() && !value.isNull() )
{
QDomElement fieldElem = transactionDoc.createElementNS( <API key>, mShared->mFields.at( i ).name() );
QDomText fieldText = transactionDoc.createTextNode( convertToXML( value ) );
fieldElem.appendChild( fieldText );
featureElem.appendChild( fieldElem );
}
}
//add geometry column (as gml)
QgsGeometry geometry = featureIt->geometry();
if ( !geometry.isNull() )
{
QDomElement geomElem = transactionDoc.createElementNS( <API key>, mShared->mGeometryAttribute );
QgsGeometry the_geom( geometry );
// convert to multi if the layer geom type is multi and the geom is not
if ( QgsWkbTypes::isMultiType( this->wkbType() ) && ! the_geom.isMultipart() )
{
the_geom.convertToMultiType();
}
const QDomElement gmlElem { geometryElement( the_geom, transactionDoc ) };
if ( ! gmlElem.isNull() )
{
geomElem.appendChild( gmlElem );
featureElem.appendChild( geomElem );
}
}
insertElem.appendChild( featureElem );
}
QDomDocument serverResponse;
bool success = <API key>( transactionDoc, serverResponse );
if ( !success )
{
return false;
}
if ( transactionSuccess( serverResponse ) )
{
//transaction successful. Add the features to the cache
QStringList idList = insertedFeatureIds( serverResponse );
/* Fix issue with GeoServer and shapefile feature stores when no real
feature id are returned but new0 returned instead of the featureId*/
const auto constIdList = idList;
for ( const QString &v : constIdList )
{
if ( v.startsWith( QLatin1String( "new" ) ) )
{
reloadData();
return true;
}
}
QStringList::const_iterator idIt = idList.constBegin();
featureIt = flist.begin();
QVector<<API key>> <API key>;
for ( ; idIt != idList.constEnd() && featureIt != flist.end(); ++idIt, ++featureIt )
{
<API key>.push_back( <API key>( *featureIt, *idIt ) );
}
mShared->serializeFeatures( <API key> );
if ( !( flags & QgsFeatureSink::FastInsert ) )
{
// And now set the feature id from the one got from the database
QMap< QString, QgsFeatureId > map;
for ( int idx = 0; idx < <API key>.size(); idx++ )
map[ <API key>[idx].second ] = <API key>[idx].first.id();
idIt = idList.constBegin();
featureIt = flist.begin();
for ( ; idIt != idList.constEnd() && featureIt != flist.end(); ++idIt, ++featureIt )
{
if ( map.find( *idIt ) != map.end() )
featureIt->setId( map[*idIt] );
}
}
return true;
}
else
{
handleException( serverResponse );
return false;
}
}
bool QgsWFSProvider::deleteFeatures( const QgsFeatureIds &id )
{
if ( id.size() < 1 )
{
return true;
}
//find out typename from uri and strip namespace prefix
QString tname = mShared->mURI.typeName();
if ( tname.isNull() )
{
return false;
}
//create <Transaction> xml
QDomDocument transactionDoc;
QDomElement transactionElem = <API key>( transactionDoc );
transactionDoc.appendChild( transactionElem );
//delete element
QDomElement deleteElem = transactionDoc.createElementNS( QgsWFSConstants::WFS_NAMESPACE, QStringLiteral( "Delete" ) );
deleteElem.setAttribute( QStringLiteral( "typeName" ), tname );
QDomElement filterElem = transactionDoc.createElementNS( QgsWFSConstants::OGC_NAMESPACE, QStringLiteral( "Filter" ) );
QgsFeatureIds::const_iterator idIt = id.constBegin();
for ( ; idIt != id.constEnd(); ++idIt )
{
//find out feature id
QString gmlid = mShared->findUniqueId( *idIt );
if ( gmlid.isEmpty() )
{
QgsDebugMsg( QStringLiteral( "Cannot identify feature of id %1" ).arg( *idIt ) );
continue;
}
QDomElement featureIdElem = transactionDoc.createElementNS( QgsWFSConstants::OGC_NAMESPACE, QStringLiteral( "FeatureId" ) );
featureIdElem.setAttribute( QStringLiteral( "fid" ), gmlid );
filterElem.appendChild( featureIdElem );
}
deleteElem.appendChild( filterElem );
transactionElem.appendChild( deleteElem );
QDomDocument serverResponse;
bool success = <API key>( transactionDoc, serverResponse );
if ( !success )
{
return false;
}
if ( transactionSuccess( serverResponse ) )
{
mShared->deleteFeatures( id );
return true;
}
else
{
handleException( serverResponse );
return false;
}
}
bool QgsWFSProvider::<API key>( const QgsGeometryMap &geometry_map )
{
//find out typename from uri
QString tname = mShared->mURI.typeName();
if ( tname.isNull() )
{
return false;
}
QString namespacePrefix = QgsWFSUtils::nameSpacePrefix( tname );
if ( !namespacePrefix.isEmpty() )
{
namespacePrefix += ':';
}
//create <Transaction> xml
QDomDocument transactionDoc;
QDomElement transactionElem = <API key>( transactionDoc );
transactionDoc.appendChild( transactionElem );
QgsGeometryMap::const_iterator geomIt = geometry_map.constBegin();
for ( ; geomIt != geometry_map.constEnd(); ++geomIt )
{
QString gmlid = mShared->findUniqueId( geomIt.key() );
if ( gmlid.isEmpty() )
{
QgsDebugMsg( QStringLiteral( "Cannot identify feature of id %1" ).arg( geomIt.key() ) );
continue;
}
QDomElement updateElem = transactionDoc.createElementNS( QgsWFSConstants::WFS_NAMESPACE, QStringLiteral( "Update" ) );
updateElem.setAttribute( QStringLiteral( "typeName" ), tname );
//Property
QDomElement propertyElem = transactionDoc.createElementNS( QgsWFSConstants::WFS_NAMESPACE, QStringLiteral( "Property" ) );
QDomElement nameElem = transactionDoc.createElementNS( QgsWFSConstants::WFS_NAMESPACE, QStringLiteral( "Name" ) );
QDomText nameText = transactionDoc.createTextNode( namespacePrefix + mShared->mGeometryAttribute );
nameElem.appendChild( nameText );
propertyElem.appendChild( nameElem );
QDomElement valueElem = transactionDoc.createElementNS( QgsWFSConstants::WFS_NAMESPACE, QStringLiteral( "Value" ) );
valueElem.appendChild( geometryElement( geomIt.value(), transactionDoc ) );
propertyElem.appendChild( valueElem );
updateElem.appendChild( propertyElem );
//filter
QDomElement filterElem = transactionDoc.createElementNS( QgsWFSConstants::OGC_NAMESPACE, QStringLiteral( "Filter" ) );
QDomElement featureIdElem = transactionDoc.createElementNS( QgsWFSConstants::OGC_NAMESPACE, QStringLiteral( "FeatureId" ) );
featureIdElem.setAttribute( QStringLiteral( "fid" ), gmlid );
filterElem.appendChild( featureIdElem );
updateElem.appendChild( filterElem );
transactionElem.appendChild( updateElem );
}
QDomDocument serverResponse;
bool success = <API key>( transactionDoc, serverResponse );
if ( !success )
{
return false;
}
if ( transactionSuccess( serverResponse ) )
{
mShared-><API key>( geometry_map );
return true;
}
else
{
handleException( serverResponse );
return false;
}
}
QString QgsWFSProvider::convertToXML( const QVariant &value )
{
QString valueStr( value.toString() );
if ( value.type() == QVariant::DateTime )
{
QDateTime dt = value.toDateTime().toUTC();
if ( !dt.isNull() )
{
valueStr = dt.toString( QStringLiteral( "yyyy-MM-ddThh:mm:ss.zzzZ" ) );
}
else
{
valueStr = QString();
}
}
return valueStr;
}
bool QgsWFSProvider::<API key>( const <API key> &attr_map )
{
//find out typename from uri
QString tname = mShared->mURI.typeName();
if ( tname.isNull() )
{
return false;
}
QString namespacePrefix = QgsWFSUtils::nameSpacePrefix( tname );
if ( !namespacePrefix.isEmpty() )
{
namespacePrefix += ':';
}
//create <Transaction> xml
QDomDocument transactionDoc;
QDomElement transactionElem = <API key>( transactionDoc );
transactionDoc.appendChild( transactionElem );
<API key>::const_iterator attIt = attr_map.constBegin();
for ( ; attIt != attr_map.constEnd(); ++attIt )
{
QString gmlid = mShared->findUniqueId( attIt.key() );
if ( gmlid.isEmpty() )
{
QgsDebugMsg( QStringLiteral( "Cannot identify feature of id %1" ).arg( attIt.key() ) );
continue;
}
QDomElement updateElem = transactionDoc.createElementNS( QgsWFSConstants::WFS_NAMESPACE, QStringLiteral( "Update" ) );
updateElem.setAttribute( QStringLiteral( "typeName" ), tname );
QgsAttributeMap::const_iterator attMapIt = attIt.value().constBegin();
for ( ; attMapIt != attIt.value().constEnd(); ++attMapIt )
{
QString fieldName = mShared->mFields.at( attMapIt.key() ).name();
QDomElement propertyElem = transactionDoc.createElementNS( QgsWFSConstants::WFS_NAMESPACE, QStringLiteral( "Property" ) );
QDomElement nameElem = transactionDoc.createElementNS( QgsWFSConstants::WFS_NAMESPACE, QStringLiteral( "Name" ) );
QDomText nameText = transactionDoc.createTextNode( namespacePrefix + fieldName );
nameElem.appendChild( nameText );
propertyElem.appendChild( nameElem );
QDomElement valueElem = transactionDoc.createElementNS( QgsWFSConstants::WFS_NAMESPACE, QStringLiteral( "Value" ) );
if ( attMapIt.value().isValid() && !attMapIt.value().isNull() )
{
// WFS does not support :nil='true'
// if value is NULL, do not add value element
QDomText valueText = transactionDoc.createTextNode( convertToXML( attMapIt.value() ) );
valueElem.appendChild( valueText );
propertyElem.appendChild( valueElem );
}
updateElem.appendChild( propertyElem );
}
//Filter
QDomElement filterElem = transactionDoc.createElementNS( QgsWFSConstants::OGC_NAMESPACE, QStringLiteral( "Filter" ) );
QDomElement featureIdElem = transactionDoc.createElementNS( QgsWFSConstants::OGC_NAMESPACE, QStringLiteral( "FeatureId" ) );
featureIdElem.setAttribute( QStringLiteral( "fid" ), gmlid );
filterElem.appendChild( featureIdElem );
updateElem.appendChild( filterElem );
transactionElem.appendChild( updateElem );
}
QDomDocument serverResponse;
bool success = <API key>( transactionDoc, serverResponse );
if ( !success )
{
return false;
}
if ( transactionSuccess( serverResponse ) )
{
mShared-><API key>( attr_map );
return true;
}
else
{
handleException( serverResponse );
return false;
}
}
QVariantMap QgsWFSProvider::metadata() const
{
QVariantMap result;
result[QStringLiteral( "MaxFeatures" )] = mShared->mCaps.maxFeatures;
result[QStringLiteral( "SupportsPaging" )] = mShared->mCaps.supportsPaging;
result[QStringLiteral( "SupportsJoins" )] = mShared->mCaps.supportsJoins;
return result;
}
QString QgsWFSProvider::<API key>( const QString &mdKey ) const
{
if ( mdKey == QLatin1String( "MaxFeatures" ) )
{
return tr( "Max Features" );
}
else if ( mdKey == QLatin1String( "SupportsPaging" ) )
{
return tr( "Supports Paging" );
}
else if ( mdKey == QLatin1String( "SupportsJoins" ) )
{
return tr( "Supports Joins" );
}
else
{
return mdKey;
}
};
QString QgsWFSProvider::<API key>( const QString &mdKey, const QVariant &value ) const
{
if ( mdKey == QLatin1String( "MaxFeatures" ) )
{
return value.toInt() == 0 ? tr( "not provided" ) : value.toString();
}
else if ( mdKey == QLatin1String( "SupportsPaging" ) || mdKey == QLatin1String( "SupportsJoins" ) )
{
return value.toBool() ? tr( "supported" ) : tr( "unsupported" );
}
else
{
return value.toString();
}
}
bool QgsWFSProvider::empty() const
{
QgsFeature f;
QgsFeatureRequest request;
request.setNoAttributes();
request.setFlags( QgsFeatureRequest::NoGeometry );
// Whoops, the WFS provider returns an empty iterator when we are using
// a setLimit call in combination with a subsetString.
// Remove this method (and default to the <API key> one)
// once this is fixed
#if 0
request.setLimit( 1 );
#endif
return !getFeatures( request ).nextFeature( f );
};
bool QgsWFSProvider::describeFeatureType( QString &geometryAttribute, QgsFields &fields, QgsWkbTypes::Type &geomType )
{
fields.clear();
<API key> describeFeatureType( mShared->mURI );
if ( !describeFeatureType.requestFeatureType( mShared->mWFSVersion,
mShared->mURI.typeName(), mShared->mCaps ) )
{
QgsMessageLog::logMessage( tr( "DescribeFeatureType network request failed for url %1: %2" ).
arg( dataSourceUri(), describeFeatureType.errorMessage() ), tr( "WFS" ) );
return false;
}
QByteArray response = describeFeatureType.response();
QgsDebugMsgLevel( response, 4 );
QDomDocument <API key>;
QString errorMsg;
if ( !<API key>.setContent( response, true, &errorMsg ) )
{
QgsDebugMsgLevel( response, 4 );
QgsMessageLog::logMessage( tr( "DescribeFeatureType XML parse failed for url %1: %2" ).
arg( dataSourceUri(), errorMsg ), tr( "WFS" ) );
return false;
}
if ( !<API key>( <API key>,
mShared->mURI.typeName(),
geometryAttribute, fields, geomType, errorMsg ) )
{
QgsDebugMsgLevel( response, 4 );
QgsMessageLog::logMessage( tr( "Analysis of DescribeFeatureType response failed for url %1: %2" ).
arg( dataSourceUri(), errorMsg ), tr( "WFS" ) );
return false;
}
return true;
}
bool QgsWFSProvider::<API key>( QDomDocument &schemaDoc,
const QString &prefixedTypename,
QString &geometryAttribute,
QgsFields &fields,
QgsWkbTypes::Type &geomType,
QString &errorMsg )
{
//get the <schema> root element
QDomNodeList schemaNodeList = schemaDoc.elementsByTagNameNS( QgsWFSConstants::XMLSCHEMA_NAMESPACE, QStringLiteral( "schema" ) );
if ( schemaNodeList.length() < 1 )
{
errorMsg = tr( "Cannot find schema root element" );
return false;
}
QDomElement schemaElement = schemaNodeList.at( 0 ).toElement();
<API key> = schemaElement.attribute( QStringLiteral( "targetNamespace" ) );
// Remove the namespace on the typename
QString unprefixedTypename = prefixedTypename;
if ( unprefixedTypename.contains( ':' ) )
{
unprefixedTypename = unprefixedTypename.section( ':', 1 );
}
// Find the element whose name is the typename that interests us, and
// collect the correspond type.
QDomElement elementElement = schemaElement.firstChildElement( QStringLiteral( "element" ) );
QString elementTypeString;
QDomElement complexTypeElement;
while ( !elementElement.isNull() )
{
QString name = elementElement.attribute( QStringLiteral( "name" ) );
if ( name == unprefixedTypename )
{
elementTypeString = elementElement.attribute( QStringLiteral( "type" ) );
if ( elementTypeString.isEmpty() )
{
complexTypeElement = elementElement.firstChildElement( QStringLiteral( "complexType" ) );
}
break;
}
elementElement = elementElement.nextSiblingElement( QStringLiteral( "element" ) );
}
// Try to get a complex type whose name contains the unprefixed typename
if ( elementTypeString.isEmpty() && complexTypeElement.isNull() )
{
const QDomNodeList complexElements = schemaElement.elementsByTagName( QStringLiteral( "complexType" ) );
for ( int i = 0; i < complexElements.size(); i++ )
{
if ( complexElements.at( i ).toElement().attribute( QStringLiteral( "name" ) ).contains( unprefixedTypename ) )
{
complexTypeElement = complexElements.at( i ).toElement();
break;
}
}
}
// Give up :(
if ( elementTypeString.isEmpty() && complexTypeElement.isNull() )
{
QDomElement iter = schemaElement.firstChildElement();
bool onlyIncludeOrImport = true;
bool foundImport = false;
int countInclude = 0;
QDomElement includeElement;
while ( !iter.isNull() )
{
if ( iter.tagName() == QLatin1String( "import" ) )
foundImport = true;
else if ( iter.tagName() == QLatin1String( "include" ) )
{
countInclude++;
if ( countInclude == 1 )
{
includeElement = iter;
}
}
else
{
onlyIncludeOrImport = false;
break;
}
iter = iter.nextSiblingElement();
}
if ( foundImport && onlyIncludeOrImport )
{
errorMsg = tr( "It is probably a schema for Complex Features." );
}
// In that case, follow the link.
else if ( !foundImport && countInclude == 1 )
{
QString schemaLocation =
includeElement.attribute( QStringLiteral( "schemaLocation" ) );
QgsDebugMsgLevel( QStringLiteral( "DescribeFeatureType response redirects to: %1" ).arg( schemaLocation ), 4 );
<API key> describeFeatureType( mShared->mURI );
if ( !describeFeatureType.sendGET( schemaLocation, QString(), true, false ) )
{
errorMsg = tr( "Cannot find schema indicated in DescribeFeatureType response." );
QgsMessageLog::logMessage( tr( "DescribeFeatureType network request failed for url %1: %2" ).
arg( schemaLocation, describeFeatureType.errorMessage() ), tr( "WFS" ) );
return false;
}
QByteArray response = describeFeatureType.response();
QDomDocument <API key>;
if ( !<API key>.setContent( response, true, &errorMsg ) )
{
QgsDebugMsgLevel( response, 4 );
errorMsg = tr( "DescribeFeatureType XML parse failed for url %1: %2" ).
arg( schemaLocation, errorMsg );
}
return <API key>( <API key>,
prefixedTypename,
geometryAttribute,
fields,
geomType,
errorMsg );
}
else
{
errorMsg = tr( "Cannot find element '%1'" ).arg( unprefixedTypename );
}
return false;
}
//remove the namespace on type
if ( elementTypeString.contains( ':' ) )
{
elementTypeString = elementTypeString.section( ':', 1 );
}
if ( complexTypeElement.isNull() )
{
//the <complexType> element corresponding to the feature type
complexTypeElement = schemaElement.firstChildElement( QStringLiteral( "complexType" ) );
while ( !complexTypeElement.isNull() )
{
QString name = complexTypeElement.attribute( QStringLiteral( "name" ) );
if ( name == elementTypeString )
{
break;
}
complexTypeElement = complexTypeElement.nextSiblingElement( QStringLiteral( "complexType" ) );
}
if ( complexTypeElement.isNull() )
{
errorMsg = tr( "Cannot find ComplexType element '%1'" ).arg( elementTypeString );
return false;
}
}
//we have the relevant <complexType> element. Now find out the geometry and the thematic attributes
QDomNodeList attributeNodeList = complexTypeElement.elementsByTagNameNS( QgsWFSConstants::XMLSCHEMA_NAMESPACE, QStringLiteral( "element" ) );
if ( attributeNodeList.size() < 1 )
{
errorMsg = tr( "Cannot find attribute elements" );
return false;
}
bool <API key> = false;
for ( int i = 0; i < attributeNodeList.size(); ++i )
{
QDomElement attributeElement = attributeNodeList.at( i ).toElement();
//attribute name
QString name = attributeElement.attribute( QStringLiteral( "name" ) );
// is but this validates with Xerces 3.1, and its schema analyzer does also the trimming.
name = name.trimmed();
//attribute type
QString type = attributeElement.attribute( QStringLiteral( "type" ) );
if ( type.isEmpty() )
{
QDomElement extension = attributeElement.firstChildElement( QStringLiteral( "complexType" ) ).
firstChildElement( QStringLiteral( "simpleContent" ) ).firstChildElement( QStringLiteral( "extension" ) );
if ( !extension.isNull() )
{
type = extension.attribute( QStringLiteral( "base" ) );
}
}
// attribute ref
QString ref = attributeElement.attribute( QStringLiteral( "ref" ) );
const QRegularExpression gmlPT( QStringLiteral( "gml:(.*)PropertyType" ) );
const QRegularExpression gmlRefProperty( QStringLiteral( "gml:(.*)Property" ) );
// gmgml: is Geomedia Web Server
if ( ! <API key> && type == QLatin1String( "gmgml:<API key>" ) )
{
<API key> = true;
geometryAttribute = name;
geomType = QgsWkbTypes::MultiPolygon;
}
else if ( ! <API key> && type == QLatin1String( "gmgml:<API key>" ) )
{
<API key> = true;
geometryAttribute = name;
geomType = QgsWkbTypes::MultiLineString;
}
else if ( type == QLatin1String( "gmgml:<API key>" ) )
{
<API key> = true;
geometryAttribute = name;
geomType = QgsWkbTypes::MultiPoint;
}
//is it a geometry attribute?
// the <API key> has been seen in #11785
else if ( ! <API key> && ( type.indexOf( gmlPT ) == 0 || type == QLatin1String( "gml:<API key>" ) ) )
{
<API key> = true;
geometryAttribute = name;
// We have a choice parent element we cannot assume any valid information over the geometry type
if ( attributeElement.parentNode().nodeName() == QLatin1String( "choice" ) && ! attributeElement.nextSibling().isNull() )
geomType = QgsWkbTypes::Unknown;
else
{
const <API key> match = gmlPT.match( type );
geomType = <API key>( geometryAttribute, match.captured( 1 ) );
}
}
//MH 090428: sometimes the <element> tags for geometry attributes have only attribute ref="gml:polygonProperty"
//Note: this was deprecated with GML3.
else if ( ! <API key> && ref.indexOf( gmlRefProperty ) == 0 )
{
<API key> = true;
geometryAttribute = ref.mid( 4 ); // Strip gml: prefix
const <API key> match = gmlRefProperty.match( ref );
QString propertyType( match.captured( 1 ) );
// Set the first character in upper case
propertyType = propertyType.at( 0 ).toUpper() + propertyType.mid( 1 );
geomType = <API key>( geometryAttribute, propertyType );
}
else if ( !name.isEmpty() ) //todo: distinguish between numerical and non-numerical types
{
QVariant::Type attributeType = QVariant::String; //string is default type
if ( type.contains( QLatin1String( "double" ), Qt::CaseInsensitive ) || type.contains( QLatin1String( "float" ), Qt::CaseInsensitive ) || type.contains( QLatin1String( "decimal" ), Qt::CaseInsensitive ) )
{
attributeType = QVariant::Double;
}
else if ( type.contains( QLatin1String( "int" ), Qt::CaseInsensitive ) ||
type.contains( QLatin1String( "short" ), Qt::CaseInsensitive ) )
{
attributeType = QVariant::Int;
}
else if ( type.contains( QLatin1String( "long" ), Qt::CaseInsensitive ) )
{
attributeType = QVariant::LongLong;
}
else if ( type.contains( QLatin1String( "dateTime" ), Qt::CaseInsensitive ) )
{
attributeType = QVariant::DateTime;
}
fields.append( QgsField( name, attributeType, type ) );
}
}
if ( !<API key> )
{
geomType = QgsWkbTypes::NoGeometry;
}
return true;
}
QString QgsWFSProvider::name() const
{
return WFS_PROVIDER_KEY;
}
QString QgsWFSProvider::description() const
{
return <API key>;
}
<API key>::Capabilities QgsWFSProvider::capabilities() const
{
return mCapabilities;
}
bool QgsWFSProvider::<API key>( const QDomDocument &doc, QDomDocument &serverResponse )
{
if ( doc.isNull() )
{
return false;
}
QgsDebugMsgLevel( doc.toString(), 4 );
<API key> request( mShared->mURI );
return request.send( doc, serverResponse );
}
QDomElement QgsWFSProvider::<API key>( QDomDocument &doc ) const
{
QDomElement transactionElem = doc.createElementNS( QgsWFSConstants::WFS_NAMESPACE, QStringLiteral( "Transaction" ) );
const QString WfsVersion = mShared->mWFSVersion;
// only 1.1.0 and 1.0.0 are supported
if ( WfsVersion == QLatin1String( "1.1.0" ) )
{
transactionElem.setAttribute( QStringLiteral( "version" ), WfsVersion );
}
else
{
transactionElem.setAttribute( QStringLiteral( "version" ), QStringLiteral( "1.0.0" ) );
}
transactionElem.setAttribute( QStringLiteral( "service" ), QStringLiteral( "WFS" ) );
transactionElem.setAttribute( QStringLiteral( "xmlns:xsi" ), QStringLiteral( "http:
QUrl <API key> = mShared->mURI.requestUrl( QStringLiteral( "DescribeFeatureType" ) );
// For tests (since the URL contains part of random data, we need to replace it with a fixed content)
if ( <API key>.toString().contains( QLatin1String( "<API key>" ) ) )
{
<API key> = QUrl( QStringLiteral( "http://<API key>" ) );
QUrlQuery query( <API key> );
query.addQueryItem( QStringLiteral( "REQUEST" ), QStringLiteral( "DescribeFeatureType" ) );
<API key>.setQuery( query );
}
QUrlQuery query( <API key> );
query.addQueryItem( QStringLiteral( "VERSION" ), QStringLiteral( "1.0.0" ) );
query.addQueryItem( QStringLiteral( "TYPENAME" ), mShared->mURI.typeName() );
<API key>.setQuery( query );
transactionElem.setAttribute( QStringLiteral( "xsi:schemaLocation" ), <API key> + ' '
+ <API key>.toEncoded() );
QString namespacePrefix = QgsWFSUtils::nameSpacePrefix( mShared->mURI.typeName() );
if ( !namespacePrefix.isEmpty() )
{
transactionElem.setAttribute( "xmlns:" + namespacePrefix, <API key> );
}
transactionElem.setAttribute( QStringLiteral( "xmlns:gml" ), QgsWFSConstants::GML_NAMESPACE );
return transactionElem;
}
bool QgsWFSProvider::transactionSuccess( const QDomDocument &serverResponse ) const
{
if ( serverResponse.isNull() )
{
return false;
}
QDomElement documentElem = serverResponse.documentElement();
if ( documentElem.isNull() )
{
return false;
}
const QString WfsVersion = mShared->mWFSVersion;
if ( WfsVersion == QLatin1String( "1.1.0" ) )
{
const QDomNodeList <API key> = documentElem.elementsByTagNameNS( QgsWFSConstants::WFS_NAMESPACE, QStringLiteral( "TransactionSummary" ) );
if ( <API key>.size() < 1 )
{
return false;
}
QDomElement transactionElement { <API key>.at( 0 ).toElement() };
QDomNodeList totalInserted = transactionElement.elementsByTagNameNS( QgsWFSConstants::WFS_NAMESPACE, QStringLiteral( "totalInserted" ) );
QDomNodeList totalUpdated = transactionElement.elementsByTagNameNS( QgsWFSConstants::WFS_NAMESPACE, QStringLiteral( "totalUpdated" ) );
QDomNodeList totalDeleted = transactionElement.elementsByTagNameNS( QgsWFSConstants::WFS_NAMESPACE, QStringLiteral( "totalDeleted" ) );
if ( totalInserted.size() > 0 && totalInserted.at( 0 ).toElement().text().toInt() > 0 )
{
return true;
}
if ( totalUpdated.size() > 0 && totalUpdated.at( 0 ).toElement().text().toInt() > 0 )
{
return true;
}
if ( totalDeleted.size() > 0 && totalDeleted.at( 0 ).toElement().text().toInt() > 0 )
{
return true;
}
// Handle wrong QGIS server response (capital initial letter)
totalInserted = transactionElement.elementsByTagNameNS( QgsWFSConstants::WFS_NAMESPACE, QStringLiteral( "TotalInserted" ) );
totalUpdated = transactionElement.elementsByTagNameNS( QgsWFSConstants::WFS_NAMESPACE, QStringLiteral( "TotalUpdated" ) );
totalDeleted = transactionElement.elementsByTagNameNS( QgsWFSConstants::WFS_NAMESPACE, QStringLiteral( "TotalDeleted" ) );
if ( totalInserted.size() > 0 && totalInserted.at( 0 ).toElement().text().toInt() > 0 )
{
return true;
}
if ( totalUpdated.size() > 0 && totalUpdated.at( 0 ).toElement().text().toInt() > 0 )
{
return true;
}
if ( totalDeleted.size() > 0 && totalDeleted.at( 0 ).toElement().text().toInt() > 0 )
{
return true;
}
return false;
}
else
{
const QDomNodeList <API key> = documentElem.elementsByTagNameNS( QgsWFSConstants::WFS_NAMESPACE, QStringLiteral( "TransactionResult" ) );
if ( <API key>.size() < 1 )
{
return false;
}
const QDomNodeList statusList = <API key>.at( 0 ).toElement().elementsByTagNameNS( QgsWFSConstants::WFS_NAMESPACE, QStringLiteral( "Status" ) );
if ( statusList.size() < 1 )
{
return false;
}
return statusList.at( 0 ).firstChildElement().localName() == QLatin1String( "SUCCESS" );
}
}
QStringList QgsWFSProvider::insertedFeatureIds( const QDomDocument &serverResponse ) const
{
QStringList ids;
if ( serverResponse.isNull() )
{
return ids;
}
QDomElement rootElem = serverResponse.documentElement();
if ( rootElem.isNull() )
{
return ids;
}
// Handles WFS 1.1.0
QString insertResultTagName;
if ( mShared->mWFSVersion == QLatin1String( "1.1.0" ) )
{
insertResultTagName = QStringLiteral( "InsertResults" );
}
else
{
insertResultTagName = QStringLiteral( "InsertResult" );
}
QDomNodeList insertResultList = rootElem.elementsByTagNameNS( QgsWFSConstants::WFS_NAMESPACE, insertResultTagName );
for ( int i = 0; i < insertResultList.size(); ++i )
{
QDomNodeList featureIdList = insertResultList.at( i ).toElement().elementsByTagNameNS( QgsWFSConstants::OGC_NAMESPACE, QStringLiteral( "FeatureId" ) );
for ( int j = 0; j < featureIdList.size(); ++j )
{
QString fidString = featureIdList.at( j ).toElement().attribute( QStringLiteral( "fid" ) );
if ( !fidString.isEmpty() )
{
ids << fidString;
}
}
}
return ids;
}
bool QgsWFSProvider::getCapabilities()
{
mCapabilities = <API key>::SelectAtId | <API key>::Capability::ReloadData;
if ( mShared->mCaps.version.isEmpty() )
{
QgsWfsCapabilities getCapabilities( mShared->mURI.uri() );
const bool synchronous = true;
const bool forceRefresh = false;
if ( !getCapabilities.requestCapabilities( synchronous, forceRefresh ) )
{
QgsMessageLog::logMessage( tr( "GetCapabilities failed for url %1: %2" ).
arg( dataSourceUri(), getCapabilities.errorMessage() ), tr( "WFS" ) );
return false;
}
const QgsWfsCapabilities::Capabilities caps = getCapabilities.capabilities();
mShared->mCaps = caps;
mShared->mURI.setGetEndpoints( caps.<API key> );
mShared->mURI.setPostEndpoints( caps.<API key> );
}
mShared->mWFSVersion = mShared->mCaps.version;
if ( mShared->mURI.maxNumFeatures() > 0 && mShared->mCaps.maxFeatures > 0 && !( mShared->mCaps.supportsPaging && mShared->mURI.pagingEnabled() ) )
{
mShared->mMaxFeatures = std::min( mShared->mURI.maxNumFeatures(), mShared->mCaps.maxFeatures );
}
else if ( mShared->mURI.maxNumFeatures() > 0 )
{
mShared->mMaxFeatures = mShared->mURI.maxNumFeatures();
}
else if ( mShared->mCaps.maxFeatures > 0 && !( mShared->mCaps.supportsPaging && mShared->mURI.pagingEnabled() ) )
{
mShared->mMaxFeatures = mShared->mCaps.maxFeatures;
}
else
{
mShared->mMaxFeatures = 0;
}
if ( mShared->mCaps.supportsPaging && mShared->mURI.pagingEnabled() )
{
if ( mShared->mURI.pageSize() > 0 )
{
if ( mShared->mCaps.maxFeatures > 0 )
{
mShared->mPageSize = std::min( mShared->mURI.pageSize(), mShared->mCaps.maxFeatures );
}
else
{
mShared->mPageSize = mShared->mURI.pageSize();
}
}
else if ( mShared->mCaps.maxFeatures > 0 )
{
mShared->mPageSize = mShared->mCaps.maxFeatures;
}
else
{
QgsSettings settings;
mShared->mPageSize = settings.value( QStringLiteral( "wfs/<API key>" ), "1000" ).toInt();
QgsDebugMsg( QStringLiteral( "Server declares paging but does not advertise max feature count and user did not specify it. Using %1" ).arg( mShared->mPageSize ) );
}
}
else
{
mShared->mPageSize = 0;
}
//find the <FeatureType> for this layer
QString thisLayerName = mShared->mURI.typeName();
bool foundLayer = false;
for ( int i = 0; i < mShared->mCaps.featureTypes.size(); i++ )
{
if ( thisLayerName == mShared->mCaps.featureTypes[i].name )
{
const QgsRectangle &r = mShared->mCaps.featureTypes[i].bbox;
if ( mShared->mSourceCrs.authid().isEmpty() && mShared->mCaps.featureTypes[i].crslist.size() != 0 )
{
mShared->mSourceCrs = <API key>::fromOgcWmsCrs( mShared->mCaps.featureTypes[i].crslist[0] );
}
if ( !r.isNull() )
{
if ( mShared->mCaps.featureTypes[i].bboxSRSIsWGS84 )
{
<API key> src = <API key>::fromOgcWmsCrs( QStringLiteral( "CRS:84" ) );
<API key> ct( src, mShared->mSourceCrs, transformContext() );
QgsDebugMsgLevel( "latlon ext:" + r.toString(), 4 );
QgsDebugMsgLevel( "src:" + src.authid(), 4 );
QgsDebugMsgLevel( "dst:" + mShared->mSourceCrs.authid(), 4 );
mShared->mCapabilityExtent = ct.<API key>( r, <API key>::ForwardTransform );
}
else
{
mShared->mCapabilityExtent = r;
}
QgsDebugMsgLevel( "layer ext:" + mShared->mCapabilityExtent.toString(), 4 );
}
if ( mShared->mCaps.featureTypes[i].insertCap )
{
mCapabilities |= <API key>::AddFeatures;
}
if ( mShared->mCaps.featureTypes[i].updateCap )
{
mCapabilities |= <API key>::<API key>;
mCapabilities |= <API key>::ChangeGeometries;
}
if ( mShared->mCaps.featureTypes[i].deleteCap )
{
mCapabilities |= <API key>::DeleteFeatures;
}
foundLayer = true;
}
}
if ( !foundLayer )
{
QgsMessageLog::logMessage( tr( "Could not find typename %1 in capabilities for url %2" ).
arg( thisLayerName, dataSourceUri() ), tr( "WFS" ) );
}
return foundLayer;
}
QgsWkbTypes::Type QgsWFSProvider::<API key>( const QString &attName, const QString &propType )
{
Q_UNUSED( attName )
QgsDebugMsgLevel( QStringLiteral( "DescribeFeatureType geometry attribute \"%1\" type is \"%2\"" )
.arg( attName, propType ), 4 );
if ( propType == QLatin1String( "Point" ) )
return QgsWkbTypes::Point;
if ( propType == QLatin1String( "LineString" ) || propType == QLatin1String( "Curve" ) )
return QgsWkbTypes::LineString;
if ( propType == QLatin1String( "Polygon" ) || propType == QLatin1String( "Surface" ) )
return QgsWkbTypes::Polygon;
if ( propType == QLatin1String( "MultiPoint" ) )
return QgsWkbTypes::MultiPoint;
if ( propType == QLatin1String( "MultiLineString" ) || propType == QLatin1String( "MultiCurve" ) )
return QgsWkbTypes::MultiLineString;
if ( propType == QLatin1String( "MultiPolygon" ) || propType == QLatin1String( "MultiSurface" ) )
return QgsWkbTypes::MultiPolygon;
return QgsWkbTypes::Unknown;
}
void QgsWFSProvider::handleException( const QDomDocument &serverResponse )
{
QgsDebugMsgLevel( QStringLiteral( "server response: %1" ).arg( serverResponse.toString() ), 4 );
QDomElement exceptionElem = serverResponse.documentElement();
if ( exceptionElem.isNull() )
{
pushError( tr( "Empty response" ) );
return;
}
if ( exceptionElem.tagName() == QLatin1String( "<API key>" ) )
{
pushError( tr( "WFS service exception: %1" ).arg( exceptionElem.firstChildElement( QStringLiteral( "ServiceException" ) ).text() ) );
return;
}
if ( exceptionElem.tagName() == QLatin1String( "<API key>" ) )
{
pushError( tr( "Unsuccessful service response: %1" ).arg( exceptionElem.firstChildElement( QStringLiteral( "TransactionResult" ) ).firstChildElement( QStringLiteral( "Message" ) ).text() ) );
return;
}
// WFS 1.1.0
if ( exceptionElem.tagName() == QLatin1String( "TransactionResponse" ) )
{
pushError( tr( "Unsuccessful service response: no features were added, deleted or changed." ) );
return;
}
if ( exceptionElem.tagName() == QLatin1String( "ExceptionReport" ) )
{
QDomElement exception = exceptionElem.firstChildElement( QStringLiteral( "Exception" ) );
// the "exceptionCode" attribute, but http://docs.opengeospatial.org/is/04-094r1/04-094r1.html
// mentions "code". Accept both...
pushError( tr( "WFS exception report (code=%1 text=%2)" )
.arg( exception.attribute( QStringLiteral( "exceptionCode" ),
exception.attribute( QStringLiteral( "code" ), tr( "missing" ) ) ),
exception.firstChildElement( QStringLiteral( "ExceptionText" ) ).text() )
);
return;
}
pushError( tr( "Unhandled response: %1" ).arg( exceptionElem.tagName() ) );
}
QgsWFSProvider *<API key>::createProvider( const QString &uri, const QgsDataProvider::ProviderOptions &options, QgsDataProvider::ReadFlags flags )
{
Q_UNUSED( flags );
return new QgsWFSProvider( uri, options );
}
QList<QgsDataItemProvider *> <API key>::dataItemProviders() const
{
QList<QgsDataItemProvider *> providers;
providers << new <API key>;
return providers;
}
<API key>::<API key>():
QgsProviderMetadata( QgsWFSProvider::WFS_PROVIDER_KEY, QgsWFSProvider::<API key> ) {}
QGISEXTERN void *<API key>()
{
return new std::vector<QgsProviderMetadata *> { new <API key>(), new <API key>() };
}
|
# <API key>: true
require 'sidekiq/extensions/generic_proxy'
module Sidekiq
module Extensions
# Adds 'delay', 'delay_for' and `delay_until` methods to ActiveRecord to offload instance method
# execution to Sidekiq. Examples:
# User.recent_signups.each { |user| user.delay.mark_as_awesome }
# Please note, this is not recommended as this will serialize the entire
# object to Redis. Your Sidekiq jobs should pass IDs, not entire instances.
# This is here for backwards compatibility with Delayed::Job only.
class DelayedModel
include Sidekiq::Worker
def perform(yml)
(target, method_name, args) = YAML.load(yml)
target.__send__(method_name, *args)
end
end
module ActiveRecord
def sidekiq_delay(options={})
Proxy.new(DelayedModel, self, options)
end
def sidekiq_delay_for(interval, options={})
Proxy.new(DelayedModel, self, options.merge('at' => Time.now.to_f + interval.to_f))
end
def sidekiq_delay_until(timestamp, options={})
Proxy.new(DelayedModel, self, options.merge('at' => timestamp.to_f))
end
alias_method :delay, :sidekiq_delay
alias_method :delay_for, :sidekiq_delay_for
alias_method :delay_until, :sidekiq_delay_until
end
end
end
|
#! /bin/sh
## Quit immediately an error
set -e
## Build the R package from a github branch.
## We assume that all the build tools, and the
## igraph dependencies are already installed,
## but the R packages we depend on are not.
## If not specified, we build the master branch
branch=${1-master}
## If not specified, we use the system R version
R=${2-R}
## We freshly clone the repo from github and build igraph from scratch.
builddir=`mktemp -d`
trap "rm -rf $builddir" EXIT
cd $builddir
git clone -b $branch https://github.com/igraph/igraph.git
cd igraph
./bootstrap.sh
./configure
./bootstrap.sh
make parsersources
version=`grep " VERSION " config.h | cut -f3 -d" " | tr -d '"'`
commit=`git rev-parse --short HEAD`
cd interfaces/R
make
## Canonical filename
package=`cat igraph/DESCRIPTION | grep ^Package: | cut -f2 -d" "`
filename=${package}_${version}-${branch}-$commit.tar.gz
mv ${package}_${version}.tar.gz $filename
## Upload file to igraph.org
eval `ssh-agent -s`
trap "kill $SSH_AGENT_PID" EXIT
ssh-add
scp -P 2222 ${filename} csardi@igraph.org:www/nightly/files/r/
## Clean up
rm -rf $builddir
kill $SSH_AGENT_PID
|
// File name : CxxScannerTokens.h
// F i l e
// This program is free software; you can redistribute it and/or modify
// (at your option) any later version.
#ifndef ScannerTokens_H__
#define ScannerTokens_H__
enum { T_FIRST = 297, T_IDENTIFIER, T_STRING };
// Range 300-400 are for C++ keywords and operators
enum {
T_ALIGNAS = 300,
T_ALIGNOF,
T_AND,
T_AND_EQ,
T_ASM,
T_AUTO,
T_BITAND,
T_BITOR,
T_BOOL,
T_BREAK,
T_CASE,
T_CATCH,
T_CHAR,
T_CHAR16_T,
T_CHAR32_T,
T_CLASS,
T_COMPL,
T_CONST,
T_CONSTEXPR,
T_CONST_CAST,
T_CONTINUE,
T_DECLTYPE,
T_DEFAULT,
T_DELETE,
T_DO,
T_DOUBLE,
T_DYNAMIC_CAST,
T_ELSE,
T_ENUM,
T_EXPLICIT,
T_EXPORT,
T_EXTERN,
T_FALSE,
T_FINAL,
T_FLOAT,
T_FOR,
T_FRIEND,
T_GOTO,
T_IF,
T_INLINE,
T_INT,
T_LONG,
T_MUTABLE,
T_NAMESPACE,
T_NEW,
T_NOEXCEPT,
T_NOT,
T_NOT_EQ,
T_NULLPTR,
T_OPERATOR,
T_OR,
T_OR_EQ,
T_OVERRIDE,
T_PRIVATE,
T_PROTECTED,
T_PUBLIC,
T_REGISTER,
T_REINTERPRET_CAST,
T_RETURN,
T_SHORT,
T_SIGNED,
T_SIZEOF,
T_STATIC,
T_STATIC_ASSERT,
T_STATIC_CAST,
T_STRUCT,
T_SWITCH,
T_TEMPLATE,
T_THIS,
T_THREAD_LOCAL,
T_THROW,
T_TRUE,
T_TRY,
T_TYPEDEF,
T_TYPEID,
T_TYPENAME,
T_UNION,
T_UNSIGNED,
T_USING,
T_VIRTUAL,
T_VOID,
T_VOLATILE,
T_WCHAR_T,
T_WHILE,
T_XOR,
T_XOR_EQ,
};
// Range 400-? are for PP
enum {
T_PP_DEFINE = 400,
T_PP_DEFINED,
T_PP_IF,
T_PP_IFNDEF,
T_PP_IFDEF,
T_PP_ELSE,
T_PP_ELIF,
T_PP_LINE,
T_PP_PRAGMA,
T_PP_UNDEF,
T_PP_ERROR,
T_PP_ENDIF,
T_PP_IDENTIFIER,
T_PP_DEC_NUMBER,
T_PP_OCTAL_NUMBER,
T_PP_HEX_NUMBER,
T_PP_FLOAT_NUMBER,
T_PP_STRING,
T_PP_AND,
T_PP_OR,
T_PP_STATE_EXIT, // Special token that indicates that we have left the PP state
<API key>,
T_PP_INCLUDE,
T_PP_GT,
T_PP_GTEQ,
T_PP_LT,
T_PP_LTEQ,
};
// Numbers
enum {
T_DEC_NUMBER = 500,
T_OCTAL_NUMBER,
T_HEX_NUMBER,
T_FLOAT_NUMBER,
};
// Operators
enum {
T_DOT_STAR = 600,
T_DOUBLE_COLONS,
T_ARROW,
T_ARROW_STAR,
T_PLUS_PLUS,
T_MINUS_MINUS,
T_LS, // left Shift
// T_RS, // Right Shift
T_LE, // less equal
T_GE, // greater than-equal
T_EQUAL,
T_NOT_EQUAL,
T_AND_AND,
T_OR_OR,
T_STAR_EQUAL,
T_SLASH_EQUAL,
T_DIV_EQUAL,
T_PLUS_EQUAL,
T_MINUS_EQUAL,
T_LS_ASSIGN,
T_RS_ASSIGN,
T_AND_EQUAL,
T_POW_EQUAL,
T_OR_EQUAL,
T_3_DOTS,
};
// Special tokens
enum { T_C_COMMENT = 700, T_CXX_COMMENT, T_NEWLINE, T_WHITESPACE };
#endif
|
#ifndef QGSADDATTRDIALOG_H
#define QGSADDATTRDIALOG_H
#include "<API key>.h"
#include "qgisgui.h"
#include "qgsfield.h"
class QgsVectorLayer;
class QgsAddAttrDialog: public QDialog, private Ui::<API key>
{
Q_OBJECT
public:
QgsAddAttrDialog( QgsVectorLayer *vlayer,
QWidget *parent = 0, Qt::WFlags fl = QgisGui::ModalDialogFlags );
QgsAddAttrDialog( const std::list<QString>& typelist,
QWidget *parent = 0, Qt::WFlags fl = QgisGui::ModalDialogFlags );
QgsField field() const;
public slots:
void <API key>( int idx );
};
#endif
|
#include "config.h"
#if ENABLE(SVG) && ENABLE(<API key>)
#include "<API key>.h"
#include "SVGFilterElement.h"
#include "SVGFilterEffect.h"
#include "SVGLength.h"
#include "SVGNames.h"
#include "SVGStyledElement.h"
#include "SVGUnitTypes.h"
namespace WebCore {
<API key>::<API key>(const QualifiedName& tagName, Document* doc)
: SVGStyledElement(tagName, doc)
, m_x(this, LengthModeWidth)
, m_y(this, LengthModeHeight)
, m_width(this, LengthModeWidth)
, m_height(this, LengthModeHeight)
{
// Spec: If the attribute is not specified, the effect is as if a value of "100%" were specified.
setWidthBaseValue(SVGLength(this, LengthModeWidth, "100%"));
setHeightBaseValue(SVGLength(this, LengthModeHeight, "100%"));
}
<API key>::~<API key>()
{
}
<API key>(<API key>, SVGLength, Length, length, X, x, SVGNames::xAttr.localName(), m_x)
<API key>(<API key>, SVGLength, Length, length, Y, y, SVGNames::yAttr.localName(), m_y)
<API key>(<API key>, SVGLength, Length, length, Width, width, SVGNames::widthAttr.localName(), m_width)
<API key>(<API key>, SVGLength, Length, length, Height, height, SVGNames::heightAttr.localName(), m_height)
<API key>(<API key>, String, String, string, Result, result, SVGNames::resultAttr.localName(), m_result)
void <API key>::<API key>(MappedAttribute* attr)
{
const AtomicString& value = attr->value();
if (attr->name() == SVGNames::xAttr)
setXBaseValue(SVGLength(this, LengthModeWidth, value));
else if (attr->name() == SVGNames::yAttr)
setYBaseValue(SVGLength(this, LengthModeHeight, value));
else if (attr->name() == SVGNames::widthAttr)
setWidthBaseValue(SVGLength(this, LengthModeWidth, value));
else if (attr->name() == SVGNames::heightAttr)
setHeightBaseValue(SVGLength(this, LengthModeHeight, value));
else if (attr->name() == SVGNames::resultAttr)
setResultBaseValue(value);
else
return SVGStyledElement::<API key>(attr);
}
void <API key>::<API key>(SVGFilterEffect* filterEffect) const
{
ASSERT(filterEffect);
if (!filterEffect)
return;
bool bbox = false;
if (parentNode() && parentNode()->hasTagName(SVGNames::filterTag))
bbox = static_cast<SVGFilterElement*>(parentNode())->primitiveUnits() == SVGUnitTypes::<API key>;
float _x, _y, _width, _height;
if (bbox) {
_x = x().<API key>();
_y = y().<API key>();
_width = width().<API key>();
_height = height().<API key>();
} else {
_x = x().value();
_y = y().value();
_width = width().value();
_height = height().value();
}
filterEffect->setSubRegion(FloatRect(_x, _y, _width, _height));
filterEffect->setResult(result());
}
}
#endif // ENABLE(SVG)
// vim:ts=4:noet
|
from django.contrib import admin
from membership.models import JoinRequest
admin.site.register(JoinRequest)
|
#ifndef <API key>
#define <API key>
#include <boost/config.hpp>
#include <boost/random/uniform_01.hpp>
namespace boost {
namespace random {
namespace detail {
template<class <API key>, class IntType = unsigned long>
class uniform_int_float
{
public:
typedef <API key> base_type;
typedef IntType result_type;
uniform_int_float(base_type rng, IntType min = 0, IntType max = 0xffffffff)
: _rng(rng), _min(min), _max(max)
{
init();
}
result_type min <API key> () const { return _min; }
result_type max <API key> () const { return _max; }
base_type& base() { return _rng.base(); }
const base_type& base() const { return _rng.base(); }
result_type operator()()
{
return static_cast<IntType>(_rng() * _range) + _min;
}
#if !defined(<API key>) && !defined(<API key>)
template<class CharT, class Traits>
friend std::basic_ostream<CharT,Traits>&
operator<<(std::basic_ostream<CharT,Traits>& os, const uniform_int_float& ud)
{
os << ud._min << " " << ud._max;
return os;
}
template<class CharT, class Traits>
friend std::basic_istream<CharT,Traits>&
operator>>(std::basic_istream<CharT,Traits>& is, uniform_int_float& ud)
{
is >> std::ws >> ud._min >> std::ws >> ud._max;
ud.init();
return is;
}
#endif
private:
void init()
{
_range = static_cast<base_result>(_max-_min)+1;
}
typedef typename base_type::result_type base_result;
uniform_01<base_type> _rng;
result_type _min, _max;
base_result _range;
};
} // namespace detail
} // namespace random
} // namespace boost
#endif // <API key>
|
package org.onecmdb.core.utils.transform;
public class <API key> extends AAttributeValue {
private DataSet dataSet;
public <API key>(IAttributeSelector selector, DataSet set) {
super(selector);
this.dataSet = set;
}
public DataSet getDataSet() {
return(this.dataSet);
}
public String getText() {
return(null);
}
public boolean isEmpty() {
return false;
}
public boolean isPrimitive() {
return false;
}
public void setText(String text) {
// TODO Auto-generated method stub
}
}
|
<?php
class <API key> implements <API key>
{
/**
*
* @return array;
*/
public function getPicklistOptions()
{
global $wpdb;
$query = 'SELECT pf.id, pf.name AS field_name, pt.name AS pod_name FROM '.$wpdb->prefix.'pod_fields AS pf';
$query .= ' LEFT JOIN '.$wpdb->prefix.'pod_types AS pt ON pt.id = pf.datatype';
$result = $wpdb->get_results($query, OBJECT_K);
foreach($result as $field){
$options[$field->id] = $field->pod_name. ' - '. $field->field_name;
}
return $options;
}
}
|
# plugin/plugin_base.py
# <see AUTHORS file>
# This module is part of SQLAlchemy and is released under
"""Testing extensions.
this module is designed to work as a <API key> library,
created so that multiple test frameworks can be supported at once
(mostly so that we can migrate to new ones). The current target
is pytest.
"""
from __future__ import absolute_import
import abc
import re
import sys
py3k = sys.version_info >= (3, 0)
if py3k:
import configparser
ABC = abc.ABC
else:
import ConfigParser as configparser
import collections as collections_abc # noqa
class ABC(object):
__metaclass__ = abc.ABCMeta
# late imports
fixtures = None
engines = None
exclusions = None
warnings = None
profiling = None
assertions = None
requirements = None
config = None
testing = None
util = None
file_config = None
logging = None
include_tags = set()
exclude_tags = set()
options = None
def setup_options(make_option):
make_option(
"--log-info",
action="callback",
type="string",
callback=_log,
help="turn on info logging for <LOG> (multiple OK)",
)
make_option(
"--log-debug",
action="callback",
type="string",
callback=_log,
help="turn on debug logging for <LOG> (multiple OK)",
)
make_option(
"--db",
action="append",
type="string",
dest="db",
help="Use prefab database uri. Multiple OK, "
"first one is run by default.",
)
make_option(
"--dbs",
action="callback",
zeroarg_callback=_list_dbs,
help="List available prefab dbs",
)
make_option(
"--dburi",
action="append",
type="string",
dest="dburi",
help="Database uri. Multiple OK, " "first one is run by default.",
)
make_option(
"--dropfirst",
action="store_true",
dest="dropfirst",
help="Drop all tables in the target database first",
)
make_option(
"--backend-only",
action="store_true",
dest="backend_only",
help="Run only tests marked with __backend__ or __sparse_backend__",
)
make_option(
"--nomemory",
action="store_true",
dest="nomemory",
help="Don't run memory profiling tests",
)
make_option(
"--<API key>",
type="string",
help="name of template database to use for PostgreSQL "
"CREATE DATABASE (defaults to current database)",
)
make_option(
"--low-connections",
action="store_true",
dest="low_connections",
help="Use a low number of distinct connections - "
"i.e. for Oracle TNS",
)
make_option(
"--write-idents",
type="string",
dest="write_idents",
help="write out generated follower idents to <file>, "
"when -n<num> is used",
)
make_option(
"--reversetop",
action="store_true",
dest="reversetop",
default=False,
help="Use a random-ordering set implementation in the ORM "
"(helps reveal dependency issues)",
)
make_option(
"--requirements",
action="callback",
type="string",
callback=_requirements_opt,
help="requirements class for testing, overrides setup.cfg",
)
make_option(
"--with-cdecimal",
action="store_true",
dest="cdecimal",
default=False,
help="Monkeypatch the cdecimal library into Python 'decimal' "
"for all tests",
)
make_option(
"--include-tag",
action="callback",
callback=_include_tag,
type="string",
help="Include tests with tag <tag>",
)
make_option(
"--exclude-tag",
action="callback",
callback=_exclude_tag,
type="string",
help="Exclude tests with tag <tag>",
)
make_option(
"--write-profiles",
action="store_true",
dest="write_profiles",
default=False,
help="Write/update failing profiling data.",
)
make_option(
"--<API key>",
action="store_true",
dest="<API key>",
default=False,
help="Unconditionally write/update profiling data.",
)
def configure_follower(follower_ident):
"""Configure required state for a follower.
This invokes in the parent process and typically includes
database creation.
"""
from sqlalchemy.testing import provision
provision.FOLLOWER_IDENT = follower_ident
def <API key>(dict_):
"""Store important configuration we will need to send to a follower.
This invokes in the parent process after normal config is set up.
This is necessary as pytest seems to not be using forking, so we
start with nothing in memory, *but* it isn't running our argparse
callables, so we have to just copy all of that over.
"""
dict_["memoized_config"] = {
"include_tags": include_tags,
"exclude_tags": exclude_tags,
}
def <API key>(dict_):
"""Restore important configuration needed by a follower.
This invokes in the follower process.
"""
global include_tags, exclude_tags
include_tags.update(dict_["memoized_config"]["include_tags"])
exclude_tags.update(dict_["memoized_config"]["exclude_tags"])
def read_config():
global file_config
file_config = configparser.ConfigParser()
file_config.read(["setup.cfg", "test.cfg"])
def pre_begin(opt):
"""things to set up early, before coverage might be setup."""
global options
options = opt
for fn in pre_configure:
fn(options, file_config)
def set_coverage_flag(value):
options.has_coverage = value
def post_begin():
"""things to set up later, once we know coverage is running."""
# Lazy setup of other options (post coverage)
for fn in post_configure:
fn(options, file_config)
# late imports, has to happen after config.
global util, fixtures, engines, exclusions, assertions
global warnings, profiling, config, testing
from sqlalchemy import testing # noqa
from sqlalchemy.testing import fixtures, engines, exclusions # noqa
from sqlalchemy.testing import assertions, warnings, profiling # noqa
from sqlalchemy.testing import config # noqa
from sqlalchemy import util # noqa
warnings.setup_filters()
def _log(opt_str, value, parser):
global logging
if not logging:
import logging
logging.basicConfig()
if opt_str.endswith("-info"):
logging.getLogger(value).setLevel(logging.INFO)
elif opt_str.endswith("-debug"):
logging.getLogger(value).setLevel(logging.DEBUG)
def _list_dbs(*args):
print("Available --db options (use --dburi to override)")
for macro in sorted(file_config.options("db")):
print("%20s\t%s" % (macro, file_config.get("db", macro)))
sys.exit(0)
def _requirements_opt(opt_str, value, parser):
_setup_requirements(value)
def _exclude_tag(opt_str, value, parser):
exclude_tags.add(value.replace("-", "_"))
def _include_tag(opt_str, value, parser):
include_tags.add(value.replace("-", "_"))
pre_configure = []
post_configure = []
def pre(fn):
pre_configure.append(fn)
return fn
def post(fn):
post_configure.append(fn)
return fn
@pre
def _setup_options(opt, file_config):
global options
options = opt
@pre
def _set_nomemory(opt, file_config):
if opt.nomemory:
exclude_tags.add("memory_intensive")
@pre
def <API key>(options, file_config):
if options.cdecimal:
import cdecimal
sys.modules["decimal"] = cdecimal
@post
def _init_symbols(options, file_config):
from sqlalchemy.testing import config
config._fixture_functions = _fixture_fn_class()
@post
def _engine_uri(options, file_config):
from sqlalchemy.testing import config
from sqlalchemy import testing
from sqlalchemy.testing import provision
if options.dburi:
db_urls = list(options.dburi)
else:
db_urls = []
if options.db:
for db_token in options.db:
for db in re.split(r"[,\s]+", db_token):
if db not in file_config.options("db"):
raise RuntimeError(
"Unknown URI specifier '%s'. "
"Specify --dbs for known uris." % db
)
else:
db_urls.append(file_config.get("db", db))
if not db_urls:
db_urls.append(file_config.get("db", "default"))
config._current = None
for db_url in db_urls:
if options.write_idents and provision.FOLLOWER_IDENT: # != 'master':
with open(options.write_idents, "a") as file_:
file_.write(provision.FOLLOWER_IDENT + " " + db_url + "\n")
cfg = provision.setup_config(
db_url, options, file_config, provision.FOLLOWER_IDENT
)
if not config._current:
cfg.set_as_current(cfg, testing)
@post
def _requirements(options, file_config):
requirement_cls = file_config.get("sqla_testing", "requirement_cls")
_setup_requirements(requirement_cls)
def _setup_requirements(argument):
from sqlalchemy.testing import config
from sqlalchemy import testing
if config.requirements is not None:
return
modname, clsname = argument.split(":")
# importlib.import_module() only introduced in 2.7, a little
# late
mod = __import__(modname)
for component in modname.split(".")[1:]:
mod = getattr(mod, component)
req_cls = getattr(mod, clsname)
config.requirements = testing.requires = req_cls()
@post
def <API key>(options, file_config):
from sqlalchemy.testing import config, util
from sqlalchemy.testing.exclusions import against
from sqlalchemy import schema, inspect
if options.dropfirst:
for cfg in config.Config.all_configs():
e = cfg.db
inspector = inspect(e)
try:
view_names = inspector.get_view_names()
except NotImplementedError:
pass
else:
for vname in view_names:
e.execute(
schema._DropView(
schema.Table(vname, schema.MetaData())
)
)
if config.requirements.schemas.enabled_for_config(cfg):
try:
view_names = inspector.get_view_names(schema="test_schema")
except NotImplementedError:
pass
else:
for vname in view_names:
e.execute(
schema._DropView(
schema.Table(
vname,
schema.MetaData(),
schema="test_schema",
)
)
)
util.drop_all_tables(e, inspector)
if config.requirements.schemas.enabled_for_config(cfg):
util.drop_all_tables(e, inspector, schema=cfg.test_schema)
if against(cfg, "postgresql"):
from sqlalchemy.dialects import postgresql
for enum in inspector.get_enums("*"):
e.execute(
postgresql.DropEnumType(
postgresql.ENUM(
name=enum["name"], schema=enum["schema"]
)
)
)
@post
def <API key>(options, file_config):
if options.reversetop:
from sqlalchemy.orm.util import <API key>
<API key>()
@post
def _post_setup_options(opt, file_config):
from sqlalchemy.testing import config
config.options = options
config.file_config = file_config
@post
def _setup_profiling(options, file_config):
from sqlalchemy.testing import profiling
profiling._profile_stats = profiling.ProfileStatsFile(
file_config.get("sqla_testing", "profile_file")
)
def want_class(name, cls):
if not issubclass(cls, fixtures.TestBase):
return False
elif name.startswith("_"):
return False
elif (
config.options.backend_only
and not getattr(cls, "__backend__", False)
and not getattr(cls, "__sparse_backend__", False)
):
return False
else:
return True
def want_method(cls, fn):
if not fn.__name__.startswith("test_"):
return False
elif fn.__module__ is None:
return False
elif include_tags:
return (
hasattr(cls, "__tags__")
and exclusions.tags(cls.__tags__).include_test(
include_tags, exclude_tags
)
) or (
hasattr(fn, "<API key>")
and fn.<API key>.include_test(
include_tags, exclude_tags
)
)
elif exclude_tags and hasattr(cls, "__tags__"):
return exclusions.tags(cls.__tags__).include_test(
include_tags, exclude_tags
)
elif exclude_tags and hasattr(fn, "<API key>"):
return fn.<API key>.include_test(include_tags, exclude_tags)
else:
return True
def generate_sub_tests(cls, module):
if getattr(cls, "__backend__", False) or getattr(
cls, "__sparse_backend__", False
):
sparse = getattr(cls, "__sparse_backend__", False)
for cfg in <API key>(cls, sparse=sparse):
orig_name = cls.__name__
# we can have special chars in these names except for the
# pytest junit plugin, which is tripped up by the brackets
# and periods, so sanitize
alpha_name = re.sub(r"[_\[\]\.]+", "_", cfg.name)
alpha_name = re.sub(r"_+$", "", alpha_name)
name = "%s_%s" % (cls.__name__, alpha_name)
subcls = type(
name,
(cls,),
{"_sa_orig_cls_name": orig_name, "__only_on_config__": cfg},
)
setattr(module, name, subcls)
yield subcls
else:
yield cls
def start_test_class(cls):
_do_skips(cls)
_setup_engine(cls)
def stop_test_class(cls):
# from sqlalchemy import inspect
# assert not inspect(testing.db).get_table_names()
engines.testing_reaper._stop_test_ctx()
try:
if not options.low_connections:
assertions.<API key>()
finally:
_restore_engine()
def _restore_engine():
config._current.reset(testing)
def <API key>():
engines.testing_reaper.<API key>()
assertions.<API key>()
_restore_engine()
def _setup_engine(cls):
if getattr(cls, "__engine_options__", None):
eng = engines.testing_engine(options=cls.__engine_options__)
config._current.push_engine(eng, testing)
def before_test(test, test_module_name, test_class, test_name):
# format looks like:
# "test.aaa_profiling.test_compiler.CompileTest.<API key>"
name = getattr(test_class, "_sa_orig_cls_name", test_class.__name__)
id_ = "%s.%s.%s" % (test_module_name, name, test_name)
profiling._current_test = id_
def after_test(test):
engines.testing_reaper._after_test_ctx()
def <API key>(cls, reasons=None, sparse=False):
all_configs = set(config.Config.all_configs())
if cls.__unsupported_on__:
spec = exclusions.db_spec(*cls.__unsupported_on__)
for config_obj in list(all_configs):
if spec(config_obj):
all_configs.remove(config_obj)
if getattr(cls, "__only_on__", None):
spec = exclusions.db_spec(*util.to_list(cls.__only_on__))
for config_obj in list(all_configs):
if not spec(config_obj):
all_configs.remove(config_obj)
if getattr(cls, "__only_on_config__", None):
all_configs.intersection_update([cls.__only_on_config__])
if hasattr(cls, "__requires__"):
requirements = config.requirements
for config_obj in list(all_configs):
for requirement in cls.__requires__:
check = getattr(requirements, requirement)
skip_reasons = check.<API key>(config_obj)
if skip_reasons:
all_configs.remove(config_obj)
if reasons is not None:
reasons.extend(skip_reasons)
break
if hasattr(cls, "__prefer_requires__"):
non_preferred = set()
requirements = config.requirements
for config_obj in list(all_configs):
for requirement in cls.__prefer_requires__:
check = getattr(requirements, requirement)
if not check.enabled_for_config(config_obj):
non_preferred.add(config_obj)
if all_configs.difference(non_preferred):
all_configs.difference_update(non_preferred)
if sparse:
# pick only one config from each base dialect
# sorted so we get the same backend each time selecting the highest
# server version info.
per_dialect = {}
for cfg in reversed(
sorted(
all_configs,
key=lambda cfg: (
cfg.db.name,
cfg.db.dialect.server_version_info,
),
)
):
db = cfg.db.name
if db not in per_dialect:
per_dialect[db] = cfg
return per_dialect.values()
return all_configs
def _do_skips(cls):
reasons = []
all_configs = <API key>(cls, reasons)
if getattr(cls, "__skip_if__", False):
for c in getattr(cls, "__skip_if__"):
if c():
config.skip_test(
"'%s' skipped by %s" % (cls.__name__, c.__name__)
)
if not all_configs:
msg = "'%s' unsupported on any DB implementation %s%s" % (
cls.__name__,
", ".join(
"'%s(%s)+%s'"
% (
config_obj.db.name,
".".join(
str(dig)
for dig in exclusions._server_version(config_obj.db)
),
config_obj.db.driver,
)
for config_obj in config.Config.all_configs()
),
", ".join(reasons),
)
config.skip_test(msg)
elif hasattr(cls, "__prefer_backends__"):
non_preferred = set()
spec = exclusions.db_spec(*util.to_list(cls.__prefer_backends__))
for config_obj in all_configs:
if not spec(config_obj):
non_preferred.add(config_obj)
if all_configs.difference(non_preferred):
all_configs.difference_update(non_preferred)
if config._current not in all_configs:
_setup_config(all_configs.pop(), cls)
def _setup_config(config_obj, ctx):
config._current.push(config_obj, testing)
class FixtureFunctions(ABC):
@abc.abstractmethod
def skip_test_exception(self, *arg, **kw):
raise NotImplementedError()
@abc.abstractmethod
def combinations(self, *args, **kw):
raise NotImplementedError()
@abc.abstractmethod
def param_ident(self, *args, **kw):
raise NotImplementedError()
@abc.abstractmethod
def fixture(self, *arg, **kw):
raise NotImplementedError()
def <API key>(self):
raise NotImplementedError()
_fixture_fn_class = None
def <API key>(fixture_fn_class):
global _fixture_fn_class
_fixture_fn_class = fixture_fn_class
|
#include "precompiled.h"
enum
{
SAY_AGGRO = -1999900,
SAY_BESERK = -1999906,
SAY_PHASE = -1999907,
SPELL_ONE = 64698, //Pyroblast
SPELL_BESERK = 32309,
SPELL_TWO = 57668, //frost nova
SPELL_THREE = 41524, //arcane explosion
SPELL_FOUR = 59159, //thunderstorm
SPELL_ENRAGE = 23537,
SPELL_FIVE = 67996, // ARcane barrage
SPELL_SIX = 33129, // DOT
SPELL_SEVEN = 41410, // DEBUFF
SPELL_EIGHT = 41937 // LOT OF DAMAGE!
};
struct MANGOS_DLL_DECL custom_bossAI : public ScriptedAI
{
custom_bossAI(Creature* pCreature) : ScriptedAI(pCreature) {Reset();}
//Timer for random chat
uint32 m_uiRebuff_Timer; //Timer for rebuffing
uint32 m_uiSpell_1_Timer; //Timer for spell 1 when in combat
uint32 m_uiSpell_2_Timer; //Timer for spell 1 when in combat
uint32 m_uiSpell_3_Timer; //Timer for spell 1 when in combat
uint32 m_uiSpell_4_Timer;
uint32 m_uiSpell_5_Timer;
uint32 m_uiSpell_6_Timer;
uint32 m_uiSpell_7_Timer;
uint32 m_uiSpell_8_Timer;
uint32 m_uiBeserk_Timer; //Timer until we go into Beserk (enraged) mode
uint32 m_uiPhase; //The current battle phase we are in
uint32 m_uiPhase_Timer; //Timer until phase transition
void Reset()
{
m_uiPhase = 1; //Start in phase 1
m_uiPhase_Timer = 100000; //100 seconds
m_uiSpell_1_Timer = 11000; //11 seconds
m_uiSpell_2_Timer = 21000; // 21 sec
m_uiSpell_3_Timer = 14000; // 14 sec
m_uiSpell_4_Timer = 16000;
m_uiSpell_5_Timer = 17000;
m_uiSpell_6_Timer = 10000;
m_uiSpell_7_Timer = 28000;
m_uiSpell_8_Timer = 30000;
m_uiBeserk_Timer = 300000; //120sec
}
void Aggro(Unit* pWho)
{
//Say some stuff
DoScriptText(SAY_AGGRO, m_creature, pWho);
}
|
/* #define VERBOSE_DEBUG */
#include <linux/kallsyms.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/device.h>
#include <linux/utsname.h>
#include <linux/usb/composite.h>
/*
* The code in this file is utility code, used to build a gadget driver
* from one or more "function" drivers, one or more "configuration"
* objects, and a "<API key>" by gluing them together along
* with the relevant device-wide data.
*/
/* big enough to hold our biggest descriptor */
#define USB_BUFSIZ 1024
static struct <API key> *composite;
static int (*<API key>)(struct usb_composite_dev *cdev);
/* Some systems will need runtime overrides for the product identifiers
* published in the device descriptor, either numbers or strings or both.
* String parameters are in UTF-8 (superset of ASCII's 7 bit characters).
*/
static ushort idVendor;
module_param(idVendor, ushort, 0);
MODULE_PARM_DESC(idVendor, "USB Vendor ID");
static ushort idProduct;
module_param(idProduct, ushort, 0);
MODULE_PARM_DESC(idProduct, "USB Product ID");
static ushort bcdDevice;
module_param(bcdDevice, ushort, 0);
MODULE_PARM_DESC(bcdDevice, "USB Device version (BCD)");
static char *iManufacturer;
module_param(iManufacturer, charp, 0);
MODULE_PARM_DESC(iManufacturer, "USB Manufacturer string");
static char *iProduct;
module_param(iProduct, charp, 0);
MODULE_PARM_DESC(iProduct, "USB Product string");
static char *iSerialNumber;
module_param(iSerialNumber, charp, 0);
MODULE_PARM_DESC(iSerialNumber, "SerialNumber string");
static char <API key>[50];
static int gadget_connected = 0;
/**
* usb_add_function() - add a function to a configuration
* @config: the configuration
* @function: the function being added
* Context: single threaded during gadget setup
*
* After initialization, each configuration must have one or more
* functions added to it. Adding a function involves calling its @bind()
* method to allocate resources such as interface and string identifiers
* and endpoints.
*
* This function returns the value of the function's bind(), which is
* zero for success else a negative errno value.
*/
int usb_add_function(struct usb_configuration *config,
struct usb_function *function)
{
int value = -EINVAL;
DBG(config->cdev, "adding '%s'/%p to config '%s'/%p\n",
function->name, function,
config->label, config);
if (!function->set_alt || !function->disable)
goto done;
function->config = config;
list_add_tail(&function->list, &config->functions);
/* REVISIT *require* function->bind? */
if (function->bind) {
value = function->bind(config, function);
if (value < 0) {
list_del(&function->list);
function->config = NULL;
}
} else
value = 0;
/* We allow configurations that don't work at both speeds.
* If we run into a lowspeed Linux system, treat it the same
* as full speed ... it's the function drivers that will need
* to avoid bulk and ISO transfers.
*/
if (!config->fullspeed && function->descriptors)
config->fullspeed = true;
if (!config->highspeed && function->hs_descriptors)
config->highspeed = true;
done:
if (value)
DBG(config->cdev, "adding '%s'/%p
function->name, function, value);
return value;
}
/**
* <API key> - prevent function and gadget enumeration
* @function: the function that isn't yet ready to respond
*
* Blocks response of the gadget driver to host enumeration by
* preventing the data line pullup from being activated. This is
* normally called during @bind() processing to change from the
* initial "ready to respond" state, or when a required resource
* becomes available.
*
* For example, drivers that serve as a passthrough to a userspace
* daemon can block enumeration unless that daemon (such as an OBEX,
* MTP, or print server) is ready to handle host requests.
*
* Not all systems support software control of their USB peripheral
* data pullups.
*
* Returns zero on success, else negative errno.
*/
int <API key>(struct usb_function *function)
{
struct usb_composite_dev *cdev = function->config->cdev;
unsigned long flags;
int status = 0;
spin_lock_irqsave(&cdev->lock, flags);
if (cdev->deactivations == 0)
status = <API key>(cdev->gadget);
if (status == 0)
cdev->deactivations++;
<API key>(&cdev->lock, flags);
return status;
}
/**
* <API key> - allow function and gadget enumeration
* @function: function on which <API key>() was called
*
* Reverses effect of <API key>(). If no more functions
* are delaying their activation, the gadget driver will respond to
* host enumeration procedures.
*
* Returns zero on success, else negative errno.
*/
int <API key>(struct usb_function *function)
{
struct usb_composite_dev *cdev = function->config->cdev;
int status = 0;
spin_lock(&cdev->lock);
if (WARN_ON(cdev->deactivations == 0))
status = -EINVAL;
else {
cdev->deactivations
if (cdev->deactivations == 0)
status = usb_gadget_connect(cdev->gadget);
}
spin_unlock(&cdev->lock);
return status;
}
/**
* usb_interface_id() - allocate an unused interface ID
* @config: configuration associated with the interface
* @function: function handling the interface
* Context: single threaded during gadget setup
*
* usb_interface_id() is called from usb_function.bind() callbacks to
* allocate new interface IDs. The function driver will then store that
* ID in interface, association, CDC union, and other descriptors. It
* will also handle any control requests targeted at that interface,
* particularly changing its altsetting via set_alt(). There may
* also be class-specific or vendor-specific requests to handle.
*
* All interface identifier should be allocated using this routine, to
* ensure that for example different functions don't wrongly assign
* different meanings to the same identifier. Note that since interface
* identifiers are <API key>, functions used in more than
* one configuration (or more than once in a given configuration) need
* multiple versions of the relevant descriptors.
*
* Returns the interface ID which was allocated; or -ENODEV if no
* more interface IDs can be allocated.
*/
int usb_interface_id(struct usb_configuration *config,
struct usb_function *function)
{
unsigned id = config->next_interface_id;
if (id < <API key>) {
config->interface[id] = function;
config->next_interface_id = id + 1;
return id;
}
return -ENODEV;
}
static int config_buf(struct usb_configuration *config,
enum usb_device_speed speed, void *buf, u8 type)
{
struct <API key> *c = buf;
void *next = buf + USB_DT_CONFIG_SIZE;
int len = USB_BUFSIZ - USB_DT_CONFIG_SIZE;
struct usb_function *f;
int status;
/* write the config descriptor */
c = buf;
c->bLength = USB_DT_CONFIG_SIZE;
c->bDescriptorType = type;
/* wTotalLength is written later */
c->bNumInterfaces = config->next_interface_id;
c->bConfigurationValue = config->bConfigurationValue;
c->iConfiguration = config->iConfiguration;
c->bmAttributes = USB_CONFIG_ATT_ONE | config->bmAttributes;
c->bMaxPower = config->bMaxPower ? : (<API key> / 2);
/* There may be e.g. OTG descriptors */
if (config->descriptors) {
status = <API key>(next, len,
config->descriptors);
if (status < 0)
return status;
len -= status;
next += status;
}
/* add each function's descriptors */
list_for_each_entry(f, &config->functions, list) {
struct <API key> **descriptors;
if (speed == USB_SPEED_HIGH)
descriptors = f->hs_descriptors;
else
descriptors = f->descriptors;
if (!descriptors)
continue;
status = <API key>(next, len,
(const struct <API key> **) descriptors);
if (status < 0)
return status;
len -= status;
next += status;
}
len = next - buf;
c->wTotalLength = cpu_to_le16(len);
return len;
}
static int config_desc(struct usb_composite_dev *cdev, unsigned w_value)
{
struct usb_gadget *gadget = cdev->gadget;
struct usb_configuration *c;
u8 type = w_value >> 8;
enum usb_device_speed speed = USB_SPEED_UNKNOWN;
if (gadget_is_dualspeed(gadget)) {
int hs = 0;
if (gadget->speed == USB_SPEED_HIGH)
hs = 1;
if (type == <API key>)
hs = !hs;
if (hs)
speed = USB_SPEED_HIGH;
}
/* This is a lookup by config *INDEX* */
w_value &= 0xff;
list_for_each_entry(c, &cdev->configs, list) {
/* ignore configs that won't work at this speed */
if (speed == USB_SPEED_HIGH) {
if (!c->highspeed)
continue;
} else {
if (!c->fullspeed)
continue;
}
if (w_value == 0)
return config_buf(c, speed, cdev->req->buf, type);
w_value
}
return -EINVAL;
}
static int count_configs(struct usb_composite_dev *cdev, unsigned type)
{
struct usb_gadget *gadget = cdev->gadget;
struct usb_configuration *c;
unsigned count = 0;
int hs = 0;
if (gadget_is_dualspeed(gadget)) {
if (gadget->speed == USB_SPEED_HIGH)
hs = 1;
if (type == <API key>)
hs = !hs;
}
list_for_each_entry(c, &cdev->configs, list) {
/* ignore configs that won't work at this speed */
if (hs) {
if (!c->highspeed)
continue;
} else {
if (!c->fullspeed)
continue;
}
count++;
}
return count;
}
static void device_qual(struct usb_composite_dev *cdev)
{
struct <API key> *qual = cdev->req->buf;
qual->bLength = sizeof(*qual);
qual->bDescriptorType = <API key>;
/* POLICY: same bcdUSB and device type info at both speeds */
qual->bcdUSB = cdev->desc.bcdUSB;
qual->bDeviceClass = cdev->desc.bDeviceClass;
qual->bDeviceSubClass = cdev->desc.bDeviceSubClass;
qual->bDeviceProtocol = cdev->desc.bDeviceProtocol;
/* ASSUME same EP0 fifo size at both speeds */
qual->bMaxPacketSize0 = cdev->desc.bMaxPacketSize0;
qual->bNumConfigurations = count_configs(cdev, <API key>);
qual->bRESERVED = 0;
}
static void reset_config(struct usb_composite_dev *cdev)
{
struct usb_function *f;
DBG(cdev, "reset config\n");
list_for_each_entry(f, &cdev->config->functions, list) {
if (f->disable)
f->disable(f);
bitmap_zero(f->endpoints, 32);
}
cdev->config = NULL;
}
static int set_config(struct usb_composite_dev *cdev,
const struct usb_ctrlrequest *ctrl, unsigned number)
{
struct usb_gadget *gadget = cdev->gadget;
struct usb_configuration *c = NULL;
int result = -EINVAL;
unsigned power = gadget_is_otg(gadget) ? 8 : 100;
int tmp;
if (cdev->config)
reset_config(cdev);
if (number) {
list_for_each_entry(c, &cdev->configs, list) {
if (c->bConfigurationValue == number) {
result = 0;
break;
}
}
if (result < 0)
goto done;
} else
result = 0;
INFO(cdev, "%s speed config #%d: %s\n",
({ char *speed;
switch (gadget->speed) {
case USB_SPEED_LOW: speed = "low"; break;
case USB_SPEED_FULL: speed = "full"; break;
case USB_SPEED_HIGH: speed = "high"; break;
default: speed = "?"; break;
} ; speed; }), number, c ? c->label : "unconfigured");
if (!c)
goto done;
cdev->config = c;
/* reset delay status to zero every time usb reconnect */
cdev->delayed_status = 0;
/* Initialize all interfaces by setting them to altsetting zero. */
for (tmp = 0; tmp < <API key>; tmp++) {
struct usb_function *f = c->interface[tmp];
struct <API key> **descriptors;
if (!f)
break;
/*
* Record which endpoints are used by the function. This is used
* to dispatch control requests targeted at that endpoint to the
* function's setup callback instead of the current
* configuration's setup callback.
*/
if (gadget->speed == USB_SPEED_HIGH)
descriptors = f->hs_descriptors;
else
descriptors = f->descriptors;
for (; *descriptors; ++descriptors) {
struct <API key> *ep;
int addr;
if ((*descriptors)->bDescriptorType != USB_DT_ENDPOINT)
continue;
ep = (struct <API key> *)*descriptors;
addr = ((ep->bEndpointAddress & 0x80) >> 3)
| (ep->bEndpointAddress & 0x0f);
set_bit(addr, f->endpoints);
}
result = f->set_alt(f, tmp, 0);
if (result < 0) {
DBG(cdev, "interface %d (%s/%p) alt 0
tmp, f->name, f, result);
reset_config(cdev);
goto done;
}
if (result == <API key>) {
DBG(cdev,
"%s: interface %d (%s) requested delayed status\n",
__func__, tmp, f->name);
cdev->delayed_status++;
DBG(cdev, "delayed_status count %d\n",
cdev->delayed_status);
}
}
/* when we return, be sure our power usage is valid */
power = c->bMaxPower ? (2 * c->bMaxPower) : <API key>;
/* usb gadget connect flag */
gadget_connected = 1;
done:
<API key>(gadget, power);
if (result >= 0 && cdev->delayed_status)
result = <API key>;
return result;
}
/**
* usb_add_config() - add a configuration to a device.
* @cdev: wraps the USB gadget
* @config: the configuration, with bConfigurationValue assigned
* @bind: the configuration's bind function
* Context: single threaded during gadget setup
*
* One of the main tasks of a composite @bind() routine is to
* add each of the configurations it supports, using this routine.
*
* This function returns the value of the configuration's @bind(), which
* is zero for success else a negative errno value. Binding configurations
* assigns global resources including string IDs, and per-configuration
* resources such as interface IDs and endpoints.
*/
int usb_add_config(struct usb_composite_dev *cdev,
struct usb_configuration *config,
int (*bind)(struct usb_configuration *))
{
int status = -EINVAL;
struct usb_configuration *c;
DBG(cdev, "adding config #%u '%s'/%p\n",
config->bConfigurationValue,
config->label, config);
if (!config->bConfigurationValue || !bind)
goto done;
/* Prevent duplicate configuration identifiers */
list_for_each_entry(c, &cdev->configs, list) {
if (c->bConfigurationValue == config->bConfigurationValue) {
printk("usb_add_config, already configed,everest\n");
status = -EBUSY;
goto done;
}
}
config->cdev = cdev;
list_add_tail(&config->list, &cdev->configs);
INIT_LIST_HEAD(&config->functions);
config->next_interface_id = 0;
memset(config->interface, '\0', sizeof(config->interface));
status = bind(config);
if (status < 0) {
list_del(&config->list);
config->cdev = NULL;
} else {
unsigned i;
DBG(cdev, "cfg %d/%p speeds:%s%s\n",
config->bConfigurationValue, config,
config->highspeed ? " high" : "",
config->fullspeed
? (gadget_is_dualspeed(cdev->gadget)
? " full"
: " full/low")
: "");
for (i = 0; i < <API key>; i++) {
struct usb_function *f = config->interface[i];
if (!f)
continue;
DBG(cdev, " interface %d = %s/%p\n",
i, f->name, f);
}
}
/* set_alt(), or next bind(), sets up
* ep->driver_data as needed.
*/
<API key>(cdev->gadget);
done:
if (status)
DBG(cdev, "added config '%s'/%u --> %d\n", config->label,
config->bConfigurationValue, status);
return status;
}
static int remove_config(struct usb_composite_dev *cdev,
struct usb_configuration *config)
{
while (!list_empty(&config->functions)) {
struct usb_function *f;
f = list_first_entry(&config->functions,
struct usb_function, list);
list_del(&f->list);
if (f->unbind) {
DBG(cdev, "unbind function '%s'/%p\n", f->name, f);
f->unbind(config, f);
/* may free memory for "f" */
}
}
list_del(&config->list);
if (config->unbind) {
DBG(cdev, "unbind config '%s'/%p\n", config->label, config);
config->unbind(config);
/* may free memory for "c" */
}
return 0;
}
int usb_remove_config(struct usb_composite_dev *cdev,
struct usb_configuration *config)
{
unsigned long flags;
spin_lock_irqsave(&cdev->lock, flags);
if (cdev->config == config)
reset_config(cdev);
<API key>(&cdev->lock, flags);
return remove_config(cdev, config);
}
/* We support strings in multiple languages ... string descriptor zero
* says which languages are supported. The typical case will be that
* only one language (probably English) is used, with I18N handled on
* the host side.
*/
static void collect_langs(struct usb_gadget_strings **sp, __le16 *buf)
{
const struct usb_gadget_strings *s;
u16 language;
__le16 *tmp;
while (*sp) {
s = *sp;
language = cpu_to_le16(s->language);
for (tmp = buf; *tmp && tmp < &buf[126]; tmp++) {
if (*tmp == language)
goto repeat;
}
*tmp++ = language;
repeat:
sp++;
}
}
static int lookup_string(
struct usb_gadget_strings **sp,
void *buf,
u16 language,
int id
)
{
struct usb_gadget_strings *s;
int value;
while (*sp) {
s = *sp++;
if (s->language != language)
continue;
value = <API key>(s, id, buf);
if (value > 0)
return value;
}
return -EINVAL;
}
static int get_string(struct usb_composite_dev *cdev,
void *buf, u16 language, int id)
{
struct usb_configuration *c;
struct usb_function *f;
int len;
const char *str;
/* Yes, not only is USB's I18N support probably more than most
* folk will ever care about ... also, it's all supported here.
* (Except for UTF8 support for Unicode's "Astral Planes".)
*/
/* 0 == report all available language codes */
if (id == 0) {
struct <API key> *s = buf;
struct usb_gadget_strings **sp;
memset(s, 0, 256);
s->bDescriptorType = USB_DT_STRING;
sp = composite->strings;
if (sp)
collect_langs(sp, s->wData);
list_for_each_entry(c, &cdev->configs, list) {
sp = c->strings;
if (sp)
collect_langs(sp, s->wData);
list_for_each_entry(f, &c->functions, list) {
sp = f->strings;
if (sp)
collect_langs(sp, s->wData);
}
}
for (len = 0; len <= 126 && s->wData[len]; len++)
continue;
if (!len)
return -EINVAL;
s->bLength = 2 * (len + 1);
return s->bLength;
}
/* Otherwise, look up and return a specified string. First
* check if the string has not been overridden.
*/
if (cdev-><API key> == id)
str = iManufacturer ?: composite->iManufacturer ?:
<API key>;
else if (cdev->product_override == id)
str = iProduct ?: composite->iProduct;
else if (cdev->serial_override == id)
str = iSerialNumber;
else
str = NULL;
if (str) {
struct usb_gadget_strings strings = {
.language = language,
.strings = &(struct usb_string) { 0xff, str }
};
return <API key>(&strings, 0xff, buf);
}
/* String IDs are device-scoped, so we look up each string
* table we're told about. These lookups are infrequent;
* simpler-is-better here.
*/
if (composite->strings) {
len = lookup_string(composite->strings, buf, language, id);
if (len > 0)
return len;
}
list_for_each_entry(c, &cdev->configs, list) {
if (c->strings) {
len = lookup_string(c->strings, buf, language, id);
if (len > 0)
return len;
}
list_for_each_entry(f, &c->functions, list) {
if (!f->strings)
continue;
len = lookup_string(f->strings, buf, language, id);
if (len > 0)
return len;
}
}
return -EINVAL;
}
/**
* usb_string_id() - allocate an unused string ID
* @cdev: the device whose string descriptor IDs are being allocated
* Context: single threaded during gadget setup
*
* @usb_string_id() is called from bind() callbacks to allocate
* string IDs. Drivers for functions, configurations, or gadgets will
* then store that ID in the appropriate descriptors and string table.
*
* All string identifier should be allocated using this,
* @usb_string_ids_tab() or @usb_string_ids_n() routine, to ensure
* that for example different functions don't wrongly assign different
* meanings to the same identifier.
*/
int usb_string_id(struct usb_composite_dev *cdev)
{
if (cdev->next_string_id < 254) {
/* string id 0 is reserved by USB spec for list of
* supported languages */
/* 255 reserved as well? -- mina86 */
cdev->next_string_id++;
return cdev->next_string_id;
}
return -ENODEV;
}
/**
* usb_string_ids() - allocate unused string IDs in batch
* @cdev: the device whose string descriptor IDs are being allocated
* @str: an array of usb_string objects to assign numbers to
* Context: single threaded during gadget setup
*
* @usb_string_ids() is called from bind() callbacks to allocate
* string IDs. Drivers for functions, configurations, or gadgets will
* then copy IDs from the string table to the appropriate descriptors
* and string table for other languages.
*
* All string identifier should be allocated using this,
* @usb_string_id() or @usb_string_ids_n() routine, to ensure that for
* example different functions don't wrongly assign different meanings
* to the same identifier.
*/
int usb_string_ids_tab(struct usb_composite_dev *cdev, struct usb_string *str)
{
int next = cdev->next_string_id;
for (; str->s; ++str) {
if (unlikely(next >= 254))
return -ENODEV;
str->id = ++next;
}
cdev->next_string_id = next;
return 0;
}
/**
* usb_string_ids_n() - allocate unused string IDs in batch
* @c: the device whose string descriptor IDs are being allocated
* @n: number of string IDs to allocate
* Context: single threaded during gadget setup
*
* Returns the first requested ID. This ID and next @n-1 IDs are now
* valid IDs. At least provided that @n is non-zero because if it
* is, returns last requested ID which is now very useful information.
*
* @usb_string_ids_n() is called from bind() callbacks to allocate
* string IDs. Drivers for functions, configurations, or gadgets will
* then store that ID in the appropriate descriptors and string table.
*
* All string identifier should be allocated using this,
* @usb_string_id() or @usb_string_ids_n() routine, to ensure that for
* example different functions don't wrongly assign different meanings
* to the same identifier.
*/
int usb_string_ids_n(struct usb_composite_dev *c, unsigned n)
{
unsigned next = c->next_string_id;
if (unlikely(n > 254 || (unsigned)next + n > 254))
return -ENODEV;
c->next_string_id += n;
return next + 1;
}
static void <API key>(struct usb_ep *ep, struct usb_request *req)
{
if (req->status || req->actual != req->length)
DBG((struct usb_composite_dev *) ep->driver_data,
"setup complete --> %d, %d/%d\n",
req->status, req->actual, req->length);
}
/*
* The setup() callback implements all the ep0 functionality that's
* not handled lower down, in hardware or the hardware driver(like
* device and endpoint feature flags, and their status). It's all
* housekeeping for the gadget function we're implementing. Most of
* the work is in config and function specific setup.
*/
static int
composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl)
{
struct usb_composite_dev *cdev = get_gadget_data(gadget);
struct usb_request *req = cdev->req;
int value = -EOPNOTSUPP;
u16 w_index = le16_to_cpu(ctrl->wIndex);
u8 intf = w_index & 0xFF;
u16 w_value = le16_to_cpu(ctrl->wValue);
u16 w_length = le16_to_cpu(ctrl->wLength);
struct usb_function *f = NULL;
u8 endp;
/* partial re-init of the response message; the function or the
* gadget might need to intercept e.g. a control-OUT completion
* when we delegate to it.
*/
req->zero = 0;
req->complete = <API key>;
req->length = 0;
gadget->ep0->driver_data = cdev;
switch (ctrl->bRequest) {
/* we handle all standard USB descriptors */
case <API key>:
if (ctrl->bRequestType != USB_DIR_IN)
goto unknown;
switch (w_value >> 8) {
case USB_DT_DEVICE:
cdev->desc.bNumConfigurations =
count_configs(cdev, USB_DT_DEVICE);
value = min(w_length, (u16) sizeof cdev->desc);
memcpy(req->buf, &cdev->desc, value);
break;
case <API key>:
if (!gadget_is_dualspeed(gadget))
break;
device_qual(cdev);
value = min_t(int, w_length,
sizeof(struct <API key>));
break;
case <API key>:
if (!gadget_is_dualspeed(gadget))
break;
/* FALLTHROUGH */
case USB_DT_CONFIG:
value = config_desc(cdev, w_value);
if (value >= 0)
value = min(w_length, (u16) value);
break;
case USB_DT_STRING:
value = get_string(cdev, req->buf,
w_index, w_value & 0xff);
if (value >= 0)
value = min(w_length, (u16) value);
break;
}
break;
/* any number of configs can work */
case <API key>:
if (ctrl->bRequestType != 0)
goto unknown;
if (gadget_is_otg(gadget)) {
if (gadget->a_hnp_support)
DBG(cdev, "HNP available\n");
else if (gadget->a_alt_hnp_support)
DBG(cdev, "HNP on another port\n");
else
VDBG(cdev, "HNP inactive\n");
}
spin_lock(&cdev->lock);
value = set_config(cdev, ctrl, w_value);
spin_unlock(&cdev->lock);
break;
case <API key>:
if (ctrl->bRequestType != USB_DIR_IN)
goto unknown;
if (cdev->config)
*(u8 *)req->buf = cdev->config->bConfigurationValue;
else
*(u8 *)req->buf = 0;
value = min(w_length, (u16) 1);
break;
/* function drivers must handle get/set altsetting; if there's
* no get() method, we know only altsetting zero works.
*/
case <API key>:
if (ctrl->bRequestType != USB_RECIP_INTERFACE)
goto unknown;
if (!cdev->config || intf >= <API key>)
break;
f = cdev->config->interface[intf];
if (!f)
break;
if (w_value && !f->set_alt)
break;
value = f->set_alt(f, w_index, w_value);
if (value == <API key>) {
DBG(cdev,
"%s: interface %d (%s) requested delayed status\n",
__func__, intf, f->name);
cdev->delayed_status++;
DBG(cdev, "delayed_status count %d\n",
cdev->delayed_status);
}
break;
case <API key>:
if (ctrl->bRequestType != (USB_DIR_IN|USB_RECIP_INTERFACE))
goto unknown;
if (!cdev->config || intf >= <API key>)
break;
f = cdev->config->interface[intf];
if (!f)
break;
/* lots of interfaces only need altsetting zero... */
value = f->get_alt ? f->get_alt(f, w_index) : 0;
if (value < 0)
break;
*((u8 *)req->buf) = value;
value = min(w_length, (u16) 1);
break;
default:
unknown:
VDBG(cdev,
"non-core control req%02x.%02x v%04x i%04x l%d\n",
ctrl->bRequestType, ctrl->bRequest,
w_value, w_index, w_length);
/* functions always handle their interfaces and endpoints...
* punt other recipients (other, WUSB, ...) to the current
* configuration code.
*
* REVISIT it could make sense to let the composite device
* take such requests too, if that's ever needed: to work
* in config 0, etc.
*/
switch (ctrl->bRequestType & USB_RECIP_MASK) {
case USB_RECIP_INTERFACE:
if (!cdev->config || intf >= <API key>)
break;
f = cdev->config->interface[intf];
break;
case USB_RECIP_ENDPOINT:
endp = ((w_index & 0x80) >> 3) | (w_index & 0x0f);
list_for_each_entry(f, &cdev->config->functions, list) {
if (test_bit(endp, f->endpoints))
break;
}
if (&f->list == &cdev->config->functions)
f = NULL;
break;
}
if (f && f->setup)
value = f->setup(f, ctrl);
else {
struct usb_configuration *c;
c = cdev->config;
if (c && c->setup)
value = c->setup(c, ctrl);
}
goto done;
}
/* respond with data transfer before status phase? */
if (value >= 0 && value != <API key>) {
req->length = value;
req->zero = value < w_length;
value = usb_ep_queue(gadget->ep0, req, GFP_ATOMIC);
if (value < 0) {
DBG(cdev, "ep_queue --> %d\n", value);
req->status = 0;
<API key>(gadget->ep0, req);
}
} else if (value == <API key> && w_length != 0) {
WARN(cdev,
"%s: Delayed status not supported for w_length != 0",
__func__);
}
done:
/* device either stalls (value < 0) or reports success */
return value;
}
static void <API key>(struct usb_gadget *gadget)
{
struct usb_composite_dev *cdev = get_gadget_data(gadget);
unsigned long flags;
/* REVISIT: should we have config and device level
* disconnect callbacks?
*/
spin_lock_irqsave(&cdev->lock, flags);
if (cdev->config)
reset_config(cdev);
if (composite->disconnect)
composite->disconnect(cdev);
/* usb gadget connect flag */
gadget_connected = 0;
<API key>(&cdev->lock, flags);
}
int <API key>( void )
{
return gadget_connected;
}
EXPORT_SYMBOL(<API key>);
static ssize_t <API key>(struct device *dev,
struct device_attribute *attr,
char *buf)
{
struct usb_gadget *gadget = dev_to_usb_gadget(dev);
struct usb_composite_dev *cdev = get_gadget_data(gadget);
return sprintf(buf, "%d\n", cdev->suspended);
}
static DEVICE_ATTR(suspended, 0444, <API key>, NULL);
static void
composite_unbind(struct usb_gadget *gadget)
{
struct usb_composite_dev *cdev = get_gadget_data(gadget);
/* <API key>() must already have been called
* by the underlying peripheral controller driver!
* so there's no i/o concurrency that could affect the
* state protected by cdev->lock.
*/
WARN_ON(cdev->config);
while (!list_empty(&cdev->configs)) {
struct usb_configuration *c;
c = list_first_entry(&cdev->configs,
struct usb_configuration, list);
remove_config(cdev, c);
}
if (composite->unbind)
composite->unbind(cdev);
if (cdev->req) {
kfree(cdev->req->buf);
usb_ep_free_request(gadget->ep0, cdev->req);
}
device_remove_file(&gadget->dev, &dev_attr_suspended);
kfree(cdev);
set_gadget_data(gadget, NULL);
composite = NULL;
}
static u8 override_id(struct usb_composite_dev *cdev, u8 *desc)
{
if (!*desc) {
int ret = usb_string_id(cdev);
if (unlikely(ret < 0))
WARNING(cdev, "failed to override string ID\n");
else
*desc = ret;
}
return *desc;
}
static int composite_bind(struct usb_gadget *gadget)
{
struct usb_composite_dev *cdev;
int status = -ENOMEM;
cdev = kzalloc(sizeof *cdev, GFP_KERNEL);
if (!cdev)
return status;
spin_lock_init(&cdev->lock);
cdev->gadget = gadget;
set_gadget_data(gadget, cdev);
INIT_LIST_HEAD(&cdev->configs);
/* preallocate control response and buffer */
cdev->req = <API key>(gadget->ep0, GFP_KERNEL);
if (!cdev->req)
goto fail;
cdev->req->buf = kmalloc(USB_BUFSIZ, GFP_KERNEL);
if (!cdev->req->buf)
goto fail;
cdev->req->complete = <API key>;
gadget->ep0->driver_data = cdev;
cdev->bufsiz = USB_BUFSIZ;
cdev->driver = composite;
/*
* As per USB compliance update, a device that is actively drawing
* more than 100mA from USB must report itself as bus-powered in
* the GetStatus(DEVICE) call.
*/
if (<API key> <= <API key>)
<API key>(gadget);
/* interface and string IDs start at zero via kzalloc.
* we force endpoints to start unassigned; few controller
* drivers will zero ep->driver_data.
*/
<API key>(cdev->gadget);
/* composite gadget needs to assign strings for whole device (like
* serial number), register function drivers, potentially update
* power state and consumption, etc
*/
status = <API key>(cdev);
if (status < 0)
goto fail;
cdev->desc = *composite->dev;
cdev->desc.bMaxPacketSize0 = gadget->ep0->maxpacket;
/* standardized runtime overrides for device ID data */
if (idVendor)
cdev->desc.idVendor = cpu_to_le16(idVendor);
if (idProduct)
cdev->desc.idProduct = cpu_to_le16(idProduct);
if (bcdDevice)
cdev->desc.bcdDevice = cpu_to_le16(bcdDevice);
/* string overrides */
if (iManufacturer || !cdev->desc.iManufacturer) {
if (!iManufacturer && !composite->iManufacturer &&
!*<API key>)
snprintf(<API key>,
sizeof <API key>,
"%s %s with %s",
init_utsname()->sysname,
init_utsname()->release,
gadget->name);
cdev-><API key> =
override_id(cdev, &cdev->desc.iManufacturer);
}
if (iProduct || (!cdev->desc.iProduct && composite->iProduct))
cdev->product_override =
override_id(cdev, &cdev->desc.iProduct);
if (iSerialNumber)
cdev->serial_override =
override_id(cdev, &cdev->desc.iSerialNumber);
/* has userspace failed to provide a serial number? */
if (composite->needs_serial && !cdev->desc.iSerialNumber)
WARNING(cdev, "userspace failed to provide iSerialNumber\n");
/* finish up */
status = device_create_file(&gadget->dev, &dev_attr_suspended);
if (status)
goto fail;
INFO(cdev, "%s ready\n", composite->name);
return 0;
fail:
composite_unbind(gadget);
return status;
}
static void
composite_suspend(struct usb_gadget *gadget)
{
struct usb_composite_dev *cdev = get_gadget_data(gadget);
struct usb_function *f;
/* REVISIT: should we have config level
* suspend/resume callbacks?
*/
DBG(cdev, "suspend\n");
if (cdev->config) {
list_for_each_entry(f, &cdev->config->functions, list) {
if (f->suspend)
f->suspend(f);
}
}
if (composite->suspend)
composite->suspend(cdev);
cdev->suspended = 1;
<API key>(gadget, 2);
}
static void
composite_resume(struct usb_gadget *gadget)
{
struct usb_composite_dev *cdev = get_gadget_data(gadget);
struct usb_function *f;
u8 maxpower;
/* REVISIT: should we have config level
* suspend/resume callbacks?
*/
DBG(cdev, "resume\n");
if (composite->resume)
composite->resume(cdev);
if (cdev->config) {
list_for_each_entry(f, &cdev->config->functions, list) {
if (f->resume)
f->resume(f);
}
maxpower = cdev->config->bMaxPower;
<API key>(gadget, maxpower ?
(2 * maxpower) : <API key>);
}
cdev->suspended = 0;
}
static struct usb_gadget_driver composite_driver = {
.speed = USB_SPEED_HIGH,
.unbind = composite_unbind,
.setup = composite_setup,
.disconnect = <API key>,
.suspend = composite_suspend,
.resume = composite_resume,
.driver = {
.owner = THIS_MODULE,
},
};
/**
* usb_composite_probe() - register a composite driver
* @driver: the driver to register
* @bind: the callback used to allocate resources that are shared across the
* whole device, such as string IDs, and add its configurations using
* @usb_add_config(). This may fail by returning a negative errno
* value; it should return zero on successful initialization.
* Context: single threaded during gadget setup
*
* This function is used to register drivers using the composite driver
* framework. The return value is zero, or a negative errno value.
* Those values normally come from the driver's @bind method, which does
* all the work of setting up the driver to match the hardware.
*
* On successful return, the gadget is ready to respond to requests from
* the host, unless one of its components invokes <API key>()
* while it was binding. That would usually be done in order to wait for
* some userspace participation.
*/
int usb_composite_probe(struct <API key> *driver,
int (*bind)(struct usb_composite_dev *cdev))
{
if (!driver || !driver->dev || !bind || composite)
return -EINVAL;
if (!driver->name)
driver->name = "composite";
if (!driver->iProduct)
driver->iProduct = driver->name;
composite_driver.function = (char *) driver->name;
composite_driver.driver.name = driver->name;
composite = driver;
<API key> = bind;
return <API key>(&composite_driver, composite_bind);
}
/**
* <API key>() - unregister a composite driver
* @driver: the driver to unregister
*
* This function is used to unregister drivers using the composite
* driver framework.
*/
void <API key>(struct <API key> *driver)
{
if (composite != driver)
return;
<API key>(&composite_driver);
}
/**
* <API key>() - Continue with the control transfer
* @cdev: the composite device who's control transfer was kept waiting
*
* This function must be called by the USB function driver to continue
* with the control transfer's data/status stage in case it had requested to
* delay the data/status stages. A USB function's setup handler (e.g. set_alt())
* can request the composite framework to delay the setup request's data/status
* stages by returning <API key>.
*/
void <API key>(struct usb_composite_dev *cdev)
{
int value;
struct usb_request *req = cdev->req;
unsigned long flags;
DBG(cdev, "%s\n", __func__);
spin_lock_irqsave(&cdev->lock, flags);
if (cdev->delayed_status == 0) {
WARN(cdev, "%s: Unexpected call\n", __func__);
} else if (--cdev->delayed_status == 0) {
DBG(cdev, "%s: Completing delayed status\n", __func__);
req->length = 0;
value = usb_ep_queue(cdev->gadget->ep0, req, GFP_ATOMIC);
if (value < 0) {
DBG(cdev, "ep_queue --> %d\n", value);
req->status = 0;
<API key>(cdev->gadget->ep0, req);
}
}
else{
WARN(cdev, "%s: Unexpected delayed status 0x%x\n", __func__, cdev->delayed_status);
}
<API key>(&cdev->lock, flags);
}
|
#include <linux/err.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/irqdomain.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/of_platform.h>
#include <linux/memory.h>
#include <linux/regulator/machine.h>
#include <linux/regulator/krait-regulator.h>
#include <linux/msm_tsens.h>
#include <linux/msm_thermal.h>
#include <asm/mach/map.h>
#include <asm/hardware/gic.h>
#include <asm/mach/map.h>
#include <asm/mach/arch.h>
#include <mach/board.h>
#include <mach/gpiomux.h>
#include <mach/msm_iomap.h>
#ifdef CONFIG_ION_MSM
#include <mach/ion.h>
#endif
#include <mach/msm_memtypes.h>
#include <mach/msm_smd.h>
#include <mach/restart.h>
#include <mach/rpm-smd.h>
#ifdef CONFIG_SEC_DEBUG
#include <mach/sec_debug.h>
#endif
#include <mach/rpm-regulator-smd.h>
#include <mach/socinfo.h>
#include <mach/msm_smem.h>
#include <linux/module.h>
#include "board-dt.h"
#include "clock.h"
#include "devices.h"
#include "spm.h"
#include "pm.h"
#include "modem_notifier.h"
#include "platsmp.h"
#if defined(<API key>)
extern void vienna_motor_init(void);
#endif
#ifdef CONFIG_PROC_AVC
#include <linux/proc_avc.h>
#endif
#ifdef CONFIG_SEC_PM_DEBUG
extern int <API key>;
#endif
#ifdef CONFIG_SEC_PM_DEBUG
extern int <API key>;
#endif
#ifdef <API key>
#include <linux/regulator/max77826.h>
#endif
#ifdef <API key>
#include <linux/leds-max77804k.h>
#endif
#ifdef <API key>
#include <linux/leds-max77888.h>
#endif
#ifdef <API key>
#include <linux/leds-max77828.h>
#include <linux/leds.h>
#endif
#include <linux/i2c.h>
#ifdef CONFIG_MFD_MAX77803
#ifdef <API key>
#include <linux/leds-max77803.h>
#endif
#endif
#ifdef <API key>
#include <mach/sec_thermistor.h>
#include <mach/msm8974-thermistor.h>
#endif
#ifdef <API key>
#include "board-patek-keypad.c"
#endif
extern int poweroff_charging;
#ifdef <API key>
static struct regulator *vsensor_1p8;
static int __init sensor_init(void)
{
int ret;
if(poweroff_charging)
return 0;
vsensor_1p8 = regulator_get(NULL, "8084_lvs1");
if (IS_ERR(vsensor_1p8))
pr_err("[SENSOR] could not get 8084_lvs1, %ld\n",
PTR_ERR(vsensor_1p8));
ret = regulator_enable(vsensor_1p8);
if (ret)
pr_err("%s: error enabling regulator 1p8\n", __func__);
pr_info("%s: power on\n", __func__);
return 0;
}
#endif
#ifdef CONFIG_SENSORS_SSP
static struct regulator *vsensor_2p85, *vsensor_1p8;
static int __init sensor_hub_init(void)
{
int ret;
if(poweroff_charging)
return 0;
#ifdef <API key>
vsensor_2p85 = regulator_get(NULL, "8084_l18");
if (IS_ERR(vsensor_2p85))
pr_err("[SSP] could not get 8084_l18, %ld\n",
PTR_ERR(vsensor_2p85));
vsensor_1p8 = regulator_get(NULL, "8084_lvs1");
if (IS_ERR(vsensor_1p8))
pr_err("[SSP] could not get 8084_lvs1, %ld\n",
PTR_ERR(vsensor_1p8));
#else
vsensor_2p85 = regulator_get(NULL, "8941_l18");
if (IS_ERR(vsensor_2p85))
pr_err("[SSP] could not get 8941_l18, %ld\n",
PTR_ERR(vsensor_2p85));
vsensor_1p8 = regulator_get(NULL, "8941_lvs1");
if (IS_ERR(vsensor_1p8))
pr_err("[SSP] could not get 8941_lvs1, %ld\n",
PTR_ERR(vsensor_1p8));
#endif
ret = regulator_enable(vsensor_2p85);
if (ret)
pr_err("%s: error enabling regulator 2p85\n", __func__);
ret = regulator_enable(vsensor_1p8);
if (ret)
pr_err("%s: error enabling regulator 1p8\n", __func__);
pr_info("%s: power on\n", __func__);
return 0;
}
#endif
#ifdef <API key>
struct <API key> max77804k_led_pdata = {
.num_leds = 2,
.leds[0].name = "leds-sec1",
.leds[0].id = <API key>,
.leds[0].timer = <API key>,
.leds[0].timer_mode = <API key>,
.leds[0].cntrl_mode = <API key>,
.leds[0].brightness = 0x3D,
.leds[1].name = "torch-sec1",
.leds[1].id = <API key>,
.leds[1].cntrl_mode = <API key>,
.leds[1].brightness = 0x06,
};
#endif
#ifdef <API key>
struct <API key> max77888_led_pdata = {
.num_leds = 2,
.leds[0].name = "leds-sec1",
.leds[0].id = <API key>,
.leds[0].timer = <API key>,
.leds[0].timer_mode = <API key>,
.leds[0].cntrl_mode = <API key>,
.leds[0].brightness = 0x3D,
.leds[1].name = "torch-sec1",
.leds[1].id = <API key>,
.leds[1].cntrl_mode = <API key>,
.leds[1].brightness = 0x06,
};
#endif
#ifdef <API key>
struct <API key> max77828_led_pdata = {
.num_leds = 5,
.leds[0].name = "leds-sec1",
.leds[0].default_trigger = "flash",
.leds[0].id = MAX77828_FLASH,
.leds[0].brightness = MAX77828_FLASH_IOUT,
.leds[1].name = "torch-sec1",
.leds[1].default_trigger = "torch",
.leds[1].id = MAX77828_TORCH,
.leds[1].brightness = MAX77828_TORCH_IOUT,
.leds[2].name = "led_r",
.leds[2].id = MAX77828_RGB_R,
.leds[2].brightness = (int)LED_OFF,
.leds[2].max_brightness = <API key>,
.leds[3].name = "led_g",
.leds[3].id = MAX77828_RGB_G,
.leds[3].brightness = (int)LED_OFF,
.leds[3].max_brightness = <API key>,
.leds[4].name = "led_b",
.leds[4].id = MAX77828_RGB_B,
.leds[4].brightness = (int)LED_OFF,
.leds[4].max_brightness = <API key>,
};
#endif
#ifdef <API key>
#define MAX77826_I2C_BUS_ID 16
#define <API key>(_id) \
static struct <API key> <API key>
#define MAX77826_VREG_INIT(_id, _min_uV, _max_uV, _always_on) \
static struct regulator_init_data max77826_##_id##_init_data = { \
.constraints = { \
.min_uV = _min_uV, \
.max_uV = _max_uV, \
.apply_uV = 1, \
.always_on = _always_on, \
.valid_modes_mask = <API key>, \
.valid_ops_mask = <API key> | \
<API key>, \
}, \
.<API key> = ARRAY_SIZE(<API key>
.consumer_supplies = <API key>
}
#define <API key>(_id) \
(struct regulator_init_data *)&max77826_##_id##_init_data
<API key>(LDO1) = {
REGULATOR_SUPPLY("max77826_ldo1", NULL),
};
<API key>(LDO2) = {
REGULATOR_SUPPLY("max77826_ldo2", NULL),
};
<API key>(LDO3) = {
REGULATOR_SUPPLY("max77826_ldo3", NULL),
};
<API key>(LDO4) = {
REGULATOR_SUPPLY("max77826_ldo4", NULL),
};
<API key>(LDO5) = {
REGULATOR_SUPPLY("max77826_ldo5", NULL),
};
<API key>(LDO6) = {
REGULATOR_SUPPLY("max77826_ldo6", NULL),
};
<API key>(LDO7) = {
REGULATOR_SUPPLY("max77826_ldo7", NULL),
};
<API key>(LDO8) = {
REGULATOR_SUPPLY("max77826_ldo8", NULL),
};
<API key>(LDO9) = {
REGULATOR_SUPPLY("max77826_ldo9", NULL),
};
<API key>(LDO10) = {
REGULATOR_SUPPLY("max77826_ldo10", NULL),
};
<API key>(LDO11) = {
REGULATOR_SUPPLY("max77826_ldo11", NULL),
};
<API key>(LDO12) = {
REGULATOR_SUPPLY("max77826_ldo12", NULL),
};
<API key>(LDO13) = {
REGULATOR_SUPPLY("max77826_ldo13", NULL),
};
<API key>(LDO14) = {
REGULATOR_SUPPLY("max77826_ldo14", NULL),
};
<API key>(LDO15) = {
REGULATOR_SUPPLY("max77826_ldo15", NULL),
};
<API key>(BUCK1) = {
REGULATOR_SUPPLY("max77826_buck1", NULL),
};
<API key>(BUCK2) = {
REGULATOR_SUPPLY("max77826_buck2", NULL),
};
#if defined(<API key>)
MAX77826_VREG_INIT(LDO1, 1100000, 1100000, 0); /* ES705 VDD_CORE 1.1V */
#else
MAX77826_VREG_INIT(LDO1, 1200000, 1200000, 0);
#endif
MAX77826_VREG_INIT(LDO2, 1000000, 1000000, 0);
#if defined(<API key>)
MAX77826_VREG_INIT(LDO3, 1800000, 1800000, 0);
MAX77826_VREG_INIT(LDO4, 1800000, 2950000, 0);
#else
MAX77826_VREG_INIT(LDO3, 1200000, 1200000, 0);
MAX77826_VREG_INIT(LDO4, 1800000, 1800000, 0);
#endif
#if defined(<API key>)
MAX77826_VREG_INIT(LDO5, 2800000, 2800000, 0);
#else
MAX77826_VREG_INIT(LDO5, 1800000, 1800000, 0);
#endif
MAX77826_VREG_INIT(LDO6, 1800000, 3300000, 0);
#if defined(<API key>)
MAX77826_VREG_INIT(LDO7, 2500000, 2500000, 0);
#else
MAX77826_VREG_INIT(LDO7, 1800000, 1800000, 0);
#endif
MAX77826_VREG_INIT(LDO8, 1800000, 3300000, 0);
#if defined(<API key>)
MAX77826_VREG_INIT(LDO9, 1800000, 1800000, 0);
MAX77826_VREG_INIT(LDO10, 2950000, 2950000, 0);
#else
MAX77826_VREG_INIT(LDO9, 1800000, 1800000, 0);
MAX77826_VREG_INIT(LDO10, 2800000, 2950000, 0);
#endif
#if defined(<API key>)
MAX77826_VREG_INIT(LDO11, 1800000, 3000000, 0);
#else
MAX77826_VREG_INIT(LDO11, 2700000, 2950000, 0);
#endif
MAX77826_VREG_INIT(LDO12, 2500000, 3300000, 0);
#if defined(<API key>)
MAX77826_VREG_INIT(LDO13, 3000000, 3000000, 0);
#else
MAX77826_VREG_INIT(LDO13, 3300000, 3300000, 0);
#endif
#if defined(<API key>)
MAX77826_VREG_INIT(LDO14, 2800000, 2800000, 0); /* EAR MICBIAS 2.8V */
#elif defined(<API key>)
MAX77826_VREG_INIT(LDO14, 1800000, 3300000, 0);
#else
MAX77826_VREG_INIT(LDO14, 3300000, 3300000, 0);
#endif
MAX77826_VREG_INIT(LDO15, 1800000, 3300000, 0);
MAX77826_VREG_INIT(BUCK1, 1225000, 1225000, 0);
MAX77826_VREG_INIT(BUCK2, 3400000, 3400000, 0);
static struct <API key> max77826_regulators[] = {
{MAX77826_LDO1, <API key>(LDO1)},
{MAX77826_LDO2, <API key>(LDO2)},
{MAX77826_LDO3, <API key>(LDO3)},
{MAX77826_LDO4, <API key>(LDO4)},
{MAX77826_LDO5, <API key>(LDO5)},
{MAX77826_LDO6, <API key>(LDO6)},
{MAX77826_LDO7, <API key>(LDO7)},
{MAX77826_LDO8, <API key>(LDO8)},
{MAX77826_LDO9, <API key>(LDO9)},
{MAX77826_LDO10, <API key>(LDO10)},
{MAX77826_LDO11, <API key>(LDO11)},
{MAX77826_LDO12, <API key>(LDO12)},
{MAX77826_LDO13, <API key>(LDO13)},
{MAX77826_LDO14, <API key>(LDO14)},
{MAX77826_LDO15, <API key>(LDO15)},
{MAX77826_BUCK1, <API key>(BUCK1)},
{MAX77826_BUCK2, <API key>(BUCK2)},
};
static struct <API key> max77826_pmic_pdata = {
.name = "max77826",
.num_regulators = ARRAY_SIZE(max77826_regulators),
.regulators = max77826_regulators,
};
static struct i2c_board_info max77826_pmic_info[] __initdata = {
{
I2C_BOARD_INFO("max77826", 0x60),
.platform_data = &max77826_pmic_pdata,
},
};
#endif /* <API key> */
static struct memtype_reserve <API key>[] __initdata = {
[MEMTYPE_SMI] = {
},
[MEMTYPE_EBI0] = {
.flags = <API key>,
},
[MEMTYPE_EBI1] = {
.flags = <API key>,
},
};
static int <API key>(phys_addr_t paddr)
{
return MEMTYPE_EBI1;
}
static struct reserve_info <API key> __initdata = {
.<API key> = <API key>,
.paddr_to_memtype = <API key>,
};
void __init msm_8974_reserve(void)
{
reserve_info = &<API key>;
of_scan_flat_dt(<API key>, <API key>);
msm_reserve();
}
static void __init <API key>(void)
{
reserve_info = &<API key>;
of_scan_flat_dt(<API key>, <API key>);
}
#ifdef CONFIG_MFD_MAX77803
#ifdef <API key>
struct <API key> max77803_led_pdata = {
.num_leds = 2,
.leds[0].name = "leds-sec1",
.leds[0].id = <API key>,
.leds[0].timer = <API key>,
.leds[0].timer_mode = <API key>,
.leds[0].cntrl_mode = <API key>,
.leds[0].brightness = 0x3D,
.leds[1].name = "torch-sec1",
.leds[1].id = <API key>,
.leds[1].cntrl_mode = <API key>,
.leds[1].brightness = 0x06,
};
#endif
#endif
static struct platform_device *common_devices[] __initdata = {
#ifdef <API key>
&<API key>,
#endif
};
struct class *sec_class;
EXPORT_SYMBOL(sec_class);
static void <API key>(void)
{
sec_class = class_create(THIS_MODULE, "sec");
if (IS_ERR(sec_class)) {
pr_err("Failed to create class(sec)!\n");
return;
}
};
/*
* Used to satisfy dependencies for devices that need to be
* run early or in a particular order. Most likely your device doesn't fall
* into this category, and thus the driver should not be added here. The
* EPROBE_DEFER can satisfy most dependency problems.
*/
void __init msm8974_add_drivers(void)
{
msm_smem_init();
<API key>();
msm_smd_init();
msm_rpm_driver_init();
<API key>();
<API key>();
msm_spm_device_init();
krait_power_init();
if (of_board_is_rumi())
msm_clock_init(&<API key>);
else
msm_clock_init(&<API key>);
<API key>();
#ifdef <API key>
msm_thermal_init(NULL);
#else
<API key>();
#endif
}
static struct of_dev_auxdata msm_hsic_host_adata[] = {
OF_DEV_AUXDATA("qcom,hsic-host", 0xF9A00000, "msm_hsic_host", NULL),
{}
};
static struct of_dev_auxdata <API key>[] __initdata = {
OF_DEV_AUXDATA("qcom,hsusb-otg", 0xF9A55000, \
"msm_otg", NULL),
OF_DEV_AUXDATA("qcom,ehci-host", 0xF9A55000, \
"msm_ehci_host", NULL),
OF_DEV_AUXDATA("qcom,dwc-usb3-msm", 0xF9200000, \
"msm_dwc3", NULL),
OF_DEV_AUXDATA("qcom,usb-bam-msm", 0xF9304000, \
"usb_bam", NULL),
OF_DEV_AUXDATA("qcom,spi-qup-v2", 0xF9924000, \
"spi_qsd.1", NULL),
OF_DEV_AUXDATA("qcom,msm-sdcc", 0xF9824000, \
"msm_sdcc.1", NULL),
OF_DEV_AUXDATA("qcom,msm-sdcc", 0xF98A4000, \
"msm_sdcc.2", NULL),
OF_DEV_AUXDATA("qcom,msm-sdcc", 0xF9864000, \
"msm_sdcc.3", NULL),
OF_DEV_AUXDATA("qcom,msm-sdcc", 0xF98E4000, \
"msm_sdcc.4", NULL),
OF_DEV_AUXDATA("qcom,sdhci-msm", 0xF9824900, \
"msm_sdcc.1", NULL),
OF_DEV_AUXDATA("qcom,sdhci-msm", 0xF98A4900, \
"msm_sdcc.2", NULL),
OF_DEV_AUXDATA("qcom,sdhci-msm", 0xF9864900, \
"msm_sdcc.3", NULL),
OF_DEV_AUXDATA("qcom,sdhci-msm", 0xF98E4900, \
"msm_sdcc.4", NULL),
OF_DEV_AUXDATA("qcom,msm-rng", 0xF9BFF000, \
"msm_rng", NULL),
OF_DEV_AUXDATA("qcom,qseecom", 0xFE806000, \
"qseecom", NULL),
OF_DEV_AUXDATA("qcom,mdss_mdp", 0xFD900000, "mdp.0", NULL),
OF_DEV_AUXDATA("qcom,msm-tsens", 0xFC4A8000, \
"msm-tsens", NULL),
OF_DEV_AUXDATA("qcom,qcedev", 0xFD440000, \
"qcedev.0", NULL),
OF_DEV_AUXDATA("qcom,hsic-host", 0xF9A00000, \
"msm_hsic_host", NULL),
OF_DEV_AUXDATA("qcom,hsic-smsc-hub", 0, "msm_smsc_hub",
msm_hsic_host_adata),
{}
};
static void __init msm8974_map_io(void)
{
msm_map_8974_io();
}
void __init msm8974_init(void)
{
struct of_dev_auxdata *adata = <API key>;
#ifdef CONFIG_SEC_DEBUG
sec_debug_init();
#endif
#ifdef CONFIG_PROC_AVC
sec_avc_log_init();
#endif
if (socinfo_init() < 0)
pr_err("%s: socinfo_init() failed\n", __func__);
<API key>();
<API key>();
<API key>();
board_dt_populate(adata);
msm8974_add_drivers();
<API key>(common_devices, ARRAY_SIZE(common_devices));
#if defined (<API key>)
vienna_motor_init();
#endif
#ifdef <API key>
<API key>(MAX77826_I2C_BUS_ID, max77826_pmic_info,
ARRAY_SIZE(max77826_pmic_info));
#endif
#ifdef <API key>
sensor_init();
#endif
#ifdef CONFIG_SENSORS_SSP
sensor_hub_init();
#endif
#ifdef <API key>
<API key>(&<API key>);
#endif
#ifdef CONFIG_SEC_PM_DEBUG
<API key> = 1;
#endif
#if defined(CONFIG_BT_BCM4335) || defined(CONFIG_BT_BCM4339)
msm8974_bt_init();
#endif
}
void __init <API key>(void)
{
<API key>();
}
static const char *msm8974_dt_match[] __initconst = {
"qcom,msm8974",
"qcom,apq8074",
NULL
};
DT_MACHINE_START(MSM8974_DT, "Qualcomm MSM 8974 (Flattened Device Tree)")
.map_io = msm8974_map_io,
.init_irq = msm_dt_init_irq,
.init_machine = msm8974_init,
.handle_irq = gic_handle_irq,
.timer = &msm_dt_timer,
.dt_compat = msm8974_dt_match,
.reserve = msm_8974_reserve,
.init_very_early = <API key>,
.restart = msm_restart,
.smp = &msm8974_smp_ops,
MACHINE_END
|
<?php
defined('_JEXEC') or die('Restricted access');
class CfactionDbSave{
var $formname;
var $formid;
var $group = array('id' => 'data_operations', 'title' => 'Data/DB Operations');
var $details = array('title' => 'DB Table save', 'tooltip' => 'Create/Update a DB table record using the available form data.');
function run($form, $actiondata){
$mainframe = JFactory::getApplication();
$database = JFactory::getDBO();
$params = new JParameter($actiondata->params);
$return = true;
//check if a different database connection is needed
if($params->get('ndb_enable', 0)){
$option = array();
$option['driver'] = $params->get('ndb_driver', 'mysql');// Database driver name
$option['host'] = $params->get('ndb_host', 'localhost');// Database host name
$option['user'] = $params->get('ndb_user', '');// User for database authentication
$option['password'] = $params->get('ndb_password', '');// Password for database authentication
$option['database'] = $params->get('ndb_database', '');// Database name
$option['prefix'] = $params->get('ndb_prefix', 'jos_');// Database prefix (may be empty)
$database = & JDatabase::getInstance($option);
$params->set('table_name', $params->get('ndb_table_name', ''));
}
//end new db connection
$table_name = $params->get('table_name', '');
if(!empty($table_name)){
$model_id = $params->get('model_id', '');
if(empty($model_id)){
$model_id = 'chronoform_data';
}
//generate a dynamic model for the table
$result = $database->getTableFields(array($table_name), false);
$table_fields = $result[$table_name];
$dynamic_model_code = array();
$dynamic_model_code[] = "<?php";
$dynamic_model_code[] = "if (!class_exists('Table".str_replace($mainframe->getCfg('dbprefix'), '', $table_name)."')) {";
$dynamic_model_code[] = "class Table".str_replace($mainframe->getCfg('dbprefix'), '', $table_name)." extends JTable {";
$primary = 'id';
foreach($table_fields as $table_field => $field_data){
$dynamic_model_code[] = "var \$".$table_field." = null;";
if($field_data->Key == 'PRI')$primary = $table_field;
}
$dynamic_model_code[] = "function __construct(&\$database) {";
if($params->get('ndb_enable', 0)){
$dynamic_model_code[] = "\$db_inst = JDatabase::getInstance(".var_export($option, true).");";
$dynamic_model_code[] = "parent::__construct('".$table_name."', '".$primary."', \$db_inst);";
}else{
$dynamic_model_code[] = "parent::__construct('".$table_name."', '".$primary."', \$database);";
}
$dynamic_model_code[] = "}";
$dynamic_model_code[] = "}";
$dynamic_model_code[] = "}";
$dynamic_model_code[] = "?>";
$dynamic_model = implode("\n", $dynamic_model_code);
eval("?>".$dynamic_model);
//load some variables
$user = JFactory::getUser();
$defaults = array(
'cf_uid' => md5(uniqid(rand(), true)),
'cf_created' => date('Y-m-d H:i:s', time()),
'cf_created_by' => $user->id,
'cf_ipaddress' => $_SERVER["REMOTE_ADDR"],
'cf_user_id' => $user->id
);
$row = JTable::getInstance(str_replace($mainframe->getCfg('dbprefix'), '', $table_name), 'Table');
//get the data array under the model id if exists
$form_data = $form->get_array_value($form->data, explode('.', $model_id));
if((bool)$params->get('save_under_modelid', 0) === false){
$form_data = $form->data;// = $form->set_array_value($form->data, explode('.', $model_id), $form->data);
}else{
//if it didn't exist then create an empty one
if(!isset($form_data)){
$form_data = array();
//$form->data = $form->set_array_value($form->data, explode('.', $model_id), $form_data);
}
}
//check Parameters fields list
if(strlen(trim($params->get('params_fields', ''))) > 0){
$params_fields = explode(",", trim($params->get('params_fields', '')));
foreach($params_fields as $params_field){
if(isset($form_data[$params_field])){
$param_value = $form_data[$params_field];//$form->get_array_value($form->data, explode('.', $params_field));
if(!is_null($param_value) && is_array($param_value)){
$params_field_data = new JParameter('');
foreach($param_value as $k => $v){
if(is_array($v)){
$v = implode(",", $v);
}
$params_field_data->set($k, $v);
}
$form_data[$params_field] = $params_field_data->toString();
//$form->data = $form->set_array_value($form->data, explode('.', $params_field), $params_field_data->toString());
}
}
}
}
//check if new record or updated one
if(isset($form_data[$primary]) && !empty($form_data[$primary])){
//don't merge, just set a modified date
$form_data = array_merge(array('cf_modified' => date('Y-m-d H:i:s', time()), 'cf_modified_by' => $user->id), $form_data);
$form->data = $form->set_array_value($form->data, explode('.', $model_id), $form_data);
}else{
$form_data = array_merge($defaults, $form_data);
$form->data = $form->set_array_value($form->data, explode('.', $model_id), $form_data);
}
if(!$row->bind($form_data)){
$form->debug[] = $row->getError();
$return = false;
}
if(!$row->store()){
$form->debug[] = $row->getError();
$return = false;
}
$form->data[strtolower($model_id.'_'.$primary)] = $row->$primary;
$form->data = $form->set_array_value($form->data, explode('.', $model_id.'.'.$primary), $row->$primary);
return $return;
}
}
function load_tables(){
//print_r2($_GET);
$option = array();
$option['driver'] = JRequest::getVar('dbdriver', 'mysql');// Database driver name
$option['host'] = JRequest::getVar('dbhost', 'localhost');// Database host name
$option['user'] = JRequest::getVar('dbuser', '');// User for database authentication
$option['password'] = JRequest::getVar('dbpass', '');// Password for database authentication
$option['database'] = JRequest::getVar('dbname', '');// Database name
$option['prefix'] = JRequest::getVar('dbprefix', 'jos_');// Database prefix (may be empty)
//print_r2($option);
$database = & JDatabase::getInstance($option);
if(get_class($database) == 'JDatabase'){
$tables = $database->getTableList();
$options = array();
foreach($tables as $table){
$options[$table] = $table;
}
return implode(",", $options);
}else{
return "DB Connection Failed!";
}
}
function load($clear){
if($clear){
$action_params = array(
'table_name' => '',
'enabled' => 1,
'model_id' => 'chronoform_data',
'save_under_modelid' => 0,
'params_fields' => '',
'ndb_enable' => 0,
'ndb_driver' => 'mysql',
'ndb_host' => 'localhost',
'ndb_user' => '',
'ndb_password' => '',
'ndb_database' => '',
'ndb_table_name' => '',
'ndb_prefix' => 'jos_'
);
}
return array('action_params' => $action_params);
}
}
?>
|
<?php defined("SYSPATH") or die("No direct script access.");
class Cache_Model_Core extends ORM {}
|
# This file is part of WhatWeb and may be subject to
# web site for more information on licensing and terms of use.
# Version 0.2 # 2016-04-21 # Andrew Horton
# Moved patterns from passive function to matches[]
Plugin.define "MeetingPlaza" do
author "Brendan Coles <bcoles@gmail.com>" # 2011-07-21
version "0.2"
description "MeetingPlaza Distance Conference Service for internet conferencing, meeting, presentations, seminars, collaboration, events, and training."
website "http:
# ShodanHQ results as at 2011-07-21 #
# 20 for InterSpace HTTP Tunneling
# Google results as at 2011-07-21 #
# 5 for "Hello. I'm MeetingPlaza HTTP Tunneling Server." +Date
# Dorks #
dorks [
'"Hello. I\'m MeetingPlaza HTTP Tunneling Server." "Date"'
]
# Matches #
matches [
{ :certainty=>25, :text=>'<html> <body> Hello. I\'m MeetingPlaza HTTP Tunneling Server.<br>Date: ' },
# Version Detection # HTTP Server Header
{ :version=>/^InterSpace HTTP Tunneling\/([^\s]+)$/, :search=>"headers[server]" },
# HTTP Server Header
{ :regexp=>/^InterSpace HTTP Tunneling/, :search=>"headers[server]" },
]
end
|
#ifndef <API key>
#define <API key>
#include "Base.hpp"
#include "Time/PeriodClock.hpp"
#include "Math/fixed.hpp"
class DataFieldTime final : public DataField {
private:
int value;
int min;
int max;
unsigned step;
unsigned max_tokens;
PeriodClock last_step;
uint8_t speedup;
mutable TCHAR string_buffer[OUTBUFFERSIZE + 1];
protected:
int SpeedUp(bool keyup);
public:
DataFieldTime(int _min, int _max, int _value, unsigned _step,
DataAccessCallback OnDataAccess)
:DataField(Type::TIME, true, OnDataAccess),
value(_value), min(_min), max(_max), step(_step), max_tokens(2),
speedup(0) {}
DataFieldTime(int _min, int _max, int _value, unsigned _step,
DataFieldListener *listener)
:DataField(Type::TIME, true, listener),
value(_value), min(_min), max(_max), step(_step), max_tokens(2),
speedup(0) {}
protected:
void SetValue(int _value) {
if (_value == value)
return;
value = _value;
Modified();
}
public:
void SetMin(int _min) {
min = _min;
}
void SetMax(int _max) {
max = _max;
}
void SetStep(unsigned _step) {
step = _step;
}
void SetMaxTokenNumber(unsigned _max_tokens) {
assert(max_tokens > 0 && max_tokens <= 4);
max_tokens = _max_tokens;
}
void Set(int _value) {
value = _value;
}
/* virtual methods from class DataField */
void Inc() override;
void Dec() override;
int GetAsInteger() const override {
return value;
}
const TCHAR *GetAsString() const override;
const TCHAR *GetAsDisplayString() const override;
void SetAsInteger(int _value) override {
SetValue(_value);
}
ComboList CreateComboList(const TCHAR *reference) const override;
void SetFromCombo(int data_field_index, TCHAR *value_string) override;
protected:
void AppendComboValue(ComboList &combo_list, int value) const;
};
#endif
|
<?php
namespace Drupal\Tests\datetime\Functional\Views;
use Drupal\Core\Datetime\DrupalDateTime;
use Drupal\datetime\Plugin\Field\FieldType\DateTimeItem;
use Drupal\datetime\Plugin\Field\FieldType\<API key>;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\field\Entity\FieldConfig;
use Drupal\Tests\BrowserTestBase;
use Drupal\views\Tests\ViewTestData;
/**
* Tests Views filters for datetime fields.
*
* @group datetime
*/
class FilterDateTest extends BrowserTestBase {
/**
* Name of the field.
*
* Note, this is used in the default test view.
*
* @var string
*/
protected $fieldName = 'field_date';
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'classy';
/**
* Nodes to test.
*
* @var \Drupal\node\NodeInterface[]
*/
protected $nodes = [];
/**
* {@inheritdoc}
*/
public static $modules = [
'datetime',
'datetime_test',
'node',
'views',
'views_ui',
];
/**
* {@inheritdoc}
*/
public static $testViews = ['<API key>'];
/**
* {@inheritdoc}
*
* Create nodes with relative dates of yesterday, today, and tomorrow.
*/
protected function setUp() {
parent::setUp();
$now = \Drupal::time()->getRequestTime();
$admin_user = $this->drupalCreateUser(['administer views']);
$this->drupalLogin($admin_user);
$this-><API key>(['type' => 'page', 'name' => 'Basic page']);
// Add a date field to page nodes.
$fieldStorage = FieldStorageConfig::create([
'field_name' => $this->fieldName,
'entity_type' => 'node',
'type' => 'datetime',
'settings' => ['datetime_type' => DateTimeItem::<API key>],
]);
$fieldStorage->save();
$field = FieldConfig::create([
'field_storage' => $fieldStorage,
'bundle' => 'page',
'required' => TRUE,
]);
$field->save();
// Create some nodes.
$dates = [
// Tomorrow.
DrupalDateTime::createFromTimestamp($now + 86400, <API key>::STORAGE_TIMEZONE)->format(<API key>::DATE_STORAGE_FORMAT),
// Today.
DrupalDateTime::createFromTimestamp($now, <API key>::STORAGE_TIMEZONE)->format(<API key>::DATE_STORAGE_FORMAT),
// Yesterday.
DrupalDateTime::createFromTimestamp($now - 86400, <API key>::STORAGE_TIMEZONE)->format(<API key>::DATE_STORAGE_FORMAT),
];
$this->nodes = [];
foreach ($dates as $date) {
$this->nodes[] = $this->drupalCreateNode([
$this->fieldName => [
'value' => $date,
],
]);
}
// Add a node where the date field is empty.
$this->nodes[] = $this->drupalCreateNode();
// Views needs to be aware of the new field.
$this->container->get('views.views_data')->clear();
// Load test views.
ViewTestData::createTestViews(get_class($this), ['datetime_test']);
}
/**
* Tests exposed grouped filters.
*/
public function <API key>() {
// Expose the empty and not empty operators in a grouped filter.
$this->drupalPostForm('admin/structure/views/nojs/handler/<API key>/default/filter/' . $this->fieldName . '_value', [], t('Expose filter'));
$this->drupalPostForm(NULL, [], 'Grouped filters');
$edit = [];
$edit['options[group_info][group_items][1][title]'] = 'empty';
$edit['options[group_info][group_items][1][operator]'] = 'empty';
$edit['options[group_info][group_items][2][title]'] = 'not empty';
$edit['options[group_info][group_items][2][operator]'] = 'not empty';
$this->drupalPostForm(NULL, $edit, 'Apply');
// Test that the exposed filter works as expected.
$path = '<API key>';
$this->drupalPostForm('admin/structure/views/view/<API key>/edit', [], 'Add Page');
$this->drupalPostForm('admin/structure/views/nojs/display/<API key>/page_1/path', ['path' => $path], 'Apply');
$this->drupalPostForm(NULL, [], t('Save'));
$this->drupalGet($path);
// Filter the Preview by 'empty'.
$this->getSession()->getPage()->findField($this->fieldName . '_value')->selectOption(1);
$this->getSession()->getPage()->pressButton('Apply');
$results = $this->cssSelect('.view-content .field-content');
$this->assertCount(1, $results);
// Filter the Preview by 'not empty'.
$this->getSession()->getPage()->findField($this->fieldName . '_value')->selectOption(2);
$this->getSession()->getPage()->pressButton('Apply');
$results = $this->cssSelect('.view-content .field-content');
$this->assertCount(3, $results);
}
}
|
#!/bin/sh
. ${srcdir}/tests/common.shi
${RUNENV} ${MEMCHECK} ./rwfile ${SRCDIR}/input_pallette.miff GRAY
|
#ifndef <API key>
#define <API key>
#include <string>
#include <sstream>
#include <iostream>
#include <apt-pkg/strutl.h>
#include "i18n.h"
using namespace std;
string trans_section(string sec);
#endif
|
<?php
class KiTT_Mustache extends Mustache
{
/**
* @var KiTT_TemplateLoader
*/
private $_loader;
/**
* Create an instance of KiTT_Mustache
*
* @param KiTT_TemplateLoader $loader Template Loader
*
* @return void
*/
public function __construct(KiTT_TemplateLoader $loader)
{
$this->_loader = $loader;
}
/**
* Override _getPartial to autoload partials.
*
* @param string $tag_name partial name
*
* @return string
*/
protected function _getPartial($tag_name)
{
return $this->_loader->load($tag_name . '.mustache')->getTemplate();
}
}
class KiTT_Template
{
/**
* @var KiTT_Mustache
*/
private $_mustache;
/**
* @var string
*/
private $_path;
/**
* @var string
*/
private $_template;
/**
* Create a template object.
*
* @param KiTT_TemplateLoader $loader Template Loader object
* @param string $path path
* @param string $template template
*
* @return void
*/
public function __construct(KiTT_TemplateLoader $loader, $path, $template)
{
$this->_mustache = new KiTT_Mustache($loader);
$this->_path = $path;
$this->_template = $template;
}
/**
* Get the path of the template
*
* @return string
*/
public function getPath()
{
return $this->_path;
}
/**
* Get the template
*
* @return string
*/
public function getTemplate()
{
return $this->_template;
}
/**
* Fill the template with the supplied data and render it.
*
* @param mixed $data data to fill the template with
*
* @return string
*/
public function render($data)
{
return $this->_mustache->render(
$this->_template,
$data
);
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.