停止手风琴扩展页面加载

时间:2017-06-07 14:45:12

标签: javascript jquery accordion

我对JS毫无用处,因为我不知道我在做什么,但我已经碰到了CSS不会让我过去的墙。

我在网站上有一个页面,其中有一些手风琴文字部分。我遇到的问题是我想要这样做,以便在页面加载时不会扩展它们,我希望它们都被隐藏。目前,该页面打开,顶部选项已展开。

以下是我认为是负责任的剧本,任何人都可以为我揭光吗?

提前致谢。

from config.config import get_config

init = tf.global_variables_initializer()
config = get_config()

filename_queue = tf.train.string_input_producer(['data0.tfrecord,data1.tfrecord'], 5, capacity=16384)
reader = tf.TFRecordReader()

(keys, values) = reader.read_up_to(filename_queue, config.batch_size)

context_features = {
    "seq_len": tf.FixedLenFeature([1], dtype=tf.int64),
}
audio_features = {
    "audio": tf.FixedLenSequenceFeature([config.num_features], dtype=tf.float32),
    "label": tf.FixedLenSequenceFeature([config.num_classes], dtype=tf.float32)
}
audio_list = []
label_list = []
len_list = []

for i in range(config.batch_size):
    print(i)
    context, sequence = tf.parse_single_sequence_example(
        serialized=values[i],
        context_features=context_features,
        sequence_features=audio_features
    )
    audio = sequence['audio']
    label = sequence['label']
    # seq_len = context['seq_len'][0]
    seq_len = tf.shape(audio)[0]
    audio_list.append(audio)
    label_list.append(label)
    len_list.append(seq_len)

audio_tensor = tf.stack(audio_list)
label_tenor = tf.stack(label_list)
len_tensor = tf.stack(len_list)

with tf.Session() as sess:
    sess.run(init)

    threads = tf.train.start_queue_runners(sess=sess)
    for i in range(3):
        x, y, z = sess.run([audio_tensor, label_tenor, len_tensor])
        print(z)

})(jQuery的);

1 个答案:

答案 0 :(得分:1)

如果您拥有与文件顶部完全相同的HTML,请从第一支手风琴中删除open课程:

<div class="accordion-container">
    <!-- The next accordion-section also had the open class -->
    <div class="accordion-section">
        <h3 class="accordion-section-title"></h3>
        <div class="accordion-section-content">
        </div>
    </div>
    <div class="accordion-section">
        <h3 class="accordion-section-title"></h3>
        <div class="accordion-section-content">
        </div>
    </div>
    <div class="accordion-section">
        <h3 class="accordion-section-title"></h3>
        <div class="accordion-section-content">
        </div>
    </div>
</div>