<div class="field hash-tag col-md-12">
<%= form.label :hash_tags, '#Hashtags' %>
<span class="samples">(e.g #smile #food #life)
</span>
<%= form.text_area :hash_tags, class: 'form-control' %>
</div>
.samples{
color: #4cae4c;
}
*= require_tree .
*= require_self
*= require bootstrap.min.css
*= require font-awesome.min.css
*= require bootstrap
*= require font-awesome
*= require jquery-ui/accordion
在视图文件中,我给了'samples'类来设置跨度,在样式表文件中,我将颜色应用于该跨度。它在localhost中工作,但不在生产中工作。当我使用ctrl + shift + i检查时,它会显示所有样式,但示例类样式除外。
答案 0 :(得分:0)
如果您不介意,我会将我的评论转换为答案。
清单文件中要求的顺序确实很重要,您的css规则是一个一个地应用的,最新的优先于第一个。因此,有时您必须完全删除const record = require('node-record-lpcm16');
// Imports the Google Cloud client library
const speech = require('@google-cloud/speech');
// Creates a client
const client = new speech.SpeechClient();
/**
* TODO(developer): Uncomment the following lines before running the sample.
*/
const encoding = 'LINEAR16';
const sampleRateHertz = 16000;
const languageCode = 'en-US';
const request = {
config: {
encoding: encoding,
sampleRateHertz: sampleRateHertz,
languageCode: languageCode,
},
interimResults: false, // If you want interim results, set this to true
};
// Create a recognize stream
const recognizeStream = client
.streamingRecognize(request)
.on('error', console.error)
.on('data', data =>
process.stdout.write(
data.results[0] && data.results[0].alternatives[0]
? `Transcription: ${data.results[0].alternatives[0].transcript}\n`
: `\n\nReached transcription time limit, press Ctrl+C\n`
)
);
// Start recording and send the microphone input to the Speech API
record
.start({
sampleRateHertz: sampleRateHertz,
threshold: 0,
// Other options, see https://www.npmjs.com/package/node-record-lpcm16#options
verbose: false,
recordProgram: 'rec', // Try also "arecord" or "sox"
silence: '10.0',
})
.on('error', console.error)
.pipe(recognizeStream);
console.log('Listening, press Ctrl+C to stop.');
并按需要的顺序手动要求所有文件。
好像您的<a href="{{ route('b2c.policy') }}"
download="Monthly Report for March 2014.pdf" id="policyDownload">Download Policy</a>
被某个地方覆盖了。也许复制真棒字体和引导程序会导致此问题。删除重复项并将$( "a#policyDownload" ).mousedown(
function(e) {
//Get current time
var downloadID = ( new Date() ).getTime();
// Update the URL that is *currently being requested
$( "a#policyDownload" ).href += ( "?downloadID=" + downloadID );
//search for the name-value pattern with the above ID.
var cookiePattern = new RegExp( ( "downloadID=" + downloadID ), "i" );
//watch the local Cookies to see when the download ID has been updated by the response headers.
var cookieTimer = setInterval( checkCookies, 500 );
//check the local cookies for an update.
function checkCookies() {
// If the local cookies have been updated
if ( document.cookie.search( cookiePattern ) >= 0 ) {
clearInterval( cookieTimer );
alert('Downloaded');
}
}
}
);
移至最后一行:
require tree .